[GLASSFISH-18771] [PERF] Remote EJB lookups are slow due to repeated class loading Created: 31/May/12 Updated: 19/Sep/14
|Reporter:||Scott Oaks||Assignee:||Harshad Vilekar|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Performance tests of remote lookups of EJBs are lagging.
One key contributor to this is the excessive time spent in looking up classes in the class loader; the JDKBridge class pends a lot of time loading classes (which is in turn quite expensive because the lower classes throw a lot of ClassNotFoundExceptions along the way). We need to cache the classes better to avoid these lookups.
In fact, I see that in the JDKBridge class there already is a class cache, but it has been disabled because it doesn't work correctly between applications. We must fix that; when I enabled it for our throughput test of EJB lookups, performance improved by 25%.
|Comment by Tom Mueller [ 07/Feb/13 ]|
Targeting for 4.0.1 as bugs related to the orb do not need to be fixed for the RI/SDK.