JAVA memory leak - how to use 'heap inspection tool' on Solaris?

From: Vlado (vladislav74_at_abv.bg)
Date: 10/15/03

  • Next message: David Rabinowitz: "Re: Factory for EJB Interfaces"
    Date: 14 Oct 2003 16:58:25 -0700
    
    

    Hello ,
    We are running currently Weblogic 5.1 with jdk 1.3.1_01, Solaris 7
    (not Intel)
    I am trying to investigate a java memory leak, which is reprodusable
    after long running of the Weblogic server.
    I tried using JProbe as a profiler, but then the speed goes down 10
    times and I even can not think of reproducing the problem.Now I am
    looking for test case and script,that can reproduce the leak faster.

    I have questions about the integrated jdk possibilities for profiling.
    In the official sun documentation for J2SE 2 (jdk 1.2.2), they
    describe some of the new feautures and tools in Java 2.
    I read the following(NOTE that I found this description only in docs
    for SOLARIS) :
    "Increased performance is largely due to the scalable architecture of
    the JVM which has improved in bytecode execution, memory management
    and thread synchronization performance as a result of the following
    features:....
    ..A heap inspection tool
    This diagnostic tool for interactively killed programs is accessible
    from the SIGQUIT handler menu. It can be used to find memory leaks in
    your programs. A memory leak occurs when a program inadvertently
    retains objects, preventing the garbage collector from reclaiming the
    memory. Heap inspection presents a per-class breakdown of the objects
    in the heap, sorted by total amount of memory consumed. You can then
    examine reference chains to selected objects to see what is keeping
    them alive."

    Do they speak here about the java -hprof (-runhprof) parameters ,that
    you can use?? But then why I can find this description
    in the Solaris section?
    If yes, do you know ,if it can help me.What I need is information
    about the existing objects in JVM (after several days working
    Weblogic).I read that "-hprof", when generating in text mode,will
    generate file,which after 2 days working of JVM will be extremely
    large.Is this so?
    Can you give me some ideas,how to proceed?
    Thanks a lot
    Vlado


  • Next message: David Rabinowitz: "Re: Factory for EJB Interfaces"

    Relevant Pages

    • What is "heap inspection tool " as described by Sun for J2SE for Solaris?
      ... We are running currently Weblogic 5.1 with jdk 1.3.1_01, Solaris 7 ... I am trying to investigate a java memory leak, ... times and I even can not think of reproducing the problem.Now I am ...
      (comp.lang.java.softwaretools)
    • Java memory leak on Solaris - what is "heap inspection tool"
      ... We are running currently Weblogic 5.1 with jdk 1.3.1_01, Solaris 7 ... I am trying to investigate a java memory leak, ... times and I even can not think of reproducing the problem.Now I am ...
      (comp.unix.solaris)
    • Java memory leak-using runhprof?
      ... We are running currently Weblogic 5.1 with jdk 1.3.1_01, Solaris 7 ... I am trying to investigate a java memory leak, ... times and I even can not think of reproducing the problem.Now I am ...
      (comp.lang.java.programmer)
    • Memory leak detection on Solaris
      ... Is there a freeware tool to detect memory leak on Solaris. ... We are using purify to detect memory leaks but the leak point shown by ... Purify is showing memory leak against objects held by smart pointers. ...
      (comp.unix.solaris)