IBM Support

LO49880: MEMORY LEAK IN JAVA AGENT WITH ATTACHED JAR FILE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • 1.  Create a new java agent.
    2.  Place the following code in the agent:
    
    import java.sql.*;
    import java.util.*;
    import lotus.domino.*;
    import com.ibm.as400.access.AS400JDBCDriver;
    
    public class JavaAgent extends AgentBase {
    public void NotesMain() {
    
     try {
    
      DriverManager.registerDriver(new AS400JDBCDriver());
     }
     catch (Exception e) {
      System.out.println (e);
      e.printStackTrace(System.out);
     }
     finally {
      try {
       for (Enumeration e = DriverManager.getDrivers();
    e.hasMoreElements();) {
              Driver driver = (Driver) e.nextElement();
              if (driver.getClass().getClassLoader() ==
    getClass().getClassLoader()) {
                DriverManager.deregisterDriver(driver);
              }
            }
       System.runFinalization();
       System.gc();
      }
      catch (Exception e) {
       System.out.println (e);
       e.printStackTrace(System.out);
      }
     }
    }
    }
    
    3.  Attach as400.jar to the Java project in the agent.
    4.  Compile and save the agent.
    5.  Run the agent several times until the Java heap runs out of
    memory.
    
    Memory analysis on a heap dump at this point will show several
    entries like the
    following:
    
    The classloader/component "lotus.domino.AgentLoader @ 0xa581c70"
    occupies
    10,062,064 (15.35%) bytes. The memory is accumulated in one
    instance of
    "java.util.Hashtable$Entry[]" loaded by
    "com.ibm.oti.vm.BootstrapClassLoader @
    0x9e30828".
    

Local fix

  • Remove the JAR file from the project of the Java Agent and place
    it in the
    jvm/lib/ext folder.
    

Problem summary

  • A programming error was found and will be corrected in a future
     release.
    

Problem conclusion

  • A programming error was found and will be corrected in a future
     release.
    

Temporary fix

Comments

  • This APAR is associated with SPR# MCOA8C7CNX.
    

APAR Information

  • APAR number

    LO49880

  • Reported component name

    DOMINO SERVER

  • Reported component ID

    5724E6200

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-03-17

  • Closed date

    2011-04-16

  • Last modified date

    2011-04-16

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DOMINO SERVER

  • Fixed component ID

    5724E6200

Applicable component levels

  • R850 PSN

       UP

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSKTMJ","label":"Lotus Domino"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
16 April 2011