[GLASSFISH-18771] [PERF] Remote EJB lookups are slow due to repeated class loading Created: 31/May/12  Updated: 19/Sep/14

Status: Open
Project: glassfish
Component/s: orb
Affects Version/s: None
Fix Version/s: 4.1

Type: Bug Priority: Major
Reporter: Scott Oaks Assignee: Harshad Vilekar
Resolution: Unresolved Votes: 0
Labels: None
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.

Generated at Mon Mar 02 20:12:23 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.