glassfish
  1. glassfish
  2. GLASSFISH-18771

[PERF] Remote EJB lookups are slow due to repeated class loading

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.1.1
    • Component/s: orb
    • Labels:
      None

      Description

      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%.

        Activity

        Scott Oaks created issue -
        Scott Oaks made changes -
        Field Original Value New Value
        Summary [PERF] ORB Class lookup is too slow [PERF] Remote EJB lookups are slow due to repeated class loading
        Scott Oaks made changes -
        Tags PSRBUG
        Tom Mueller made changes -
        Fix Version/s 4.0.1 [ 16061 ]
        Fix Version/s 3.1_b37 [ 11268 ]
        Romain Grécourt made changes -
        Fix Version/s 4.1 [ 16387 ]
        Fix Version/s 4.0.1 [ 16061 ]
        Romain Grécourt made changes -
        Fix Version/s 4.1.1 [ 17211 ]
        Fix Version/s 4.1 [ 16387 ]

          People

          • Assignee:
            Harshad Vilekar
            Reporter:
            Scott Oaks
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: