1 Reply Latest reply on Aug 16, 2002 8:12 PM by Dain Sundstrom

    CMP Performance with commit stragety A.

    Vesa Varimo Newbie


      Hi!

      I'm running JBoss 3.0.1 (compiled sources checkouted two days ago) on ultrasparc II 296 mhz with Solaris 2.8.

      I have following code which fetches values from entity bean:

      --
      long time4 = System.currentTimeMillis();
      String firstName = source.getFirstName();
      String surName = source.getSurName();
      String email = source.getEmail();
      Integer isActive = source.getIsActive();
      String username = source.getUsername();
      String password = source.getPassword();
      String title = source.getTitle();
      System.out.println("Time: " + (System.currentTimeMillis() - time4) + " ms");
      --

      I'm using commit strategy A and the test has been run twice so that JBoss has entity cached in memory.
      The problem is that even thought the entity bean exists in memory the code above takes 15 ms to execute! That is 2.14 ms for each CMP property method call. That is far too much.

      So how is it possible that fetching values from entity bean using _local interface_ in the same JVM takes so long?!


      Thanks,

      -Vesa-