Solved

heap analyzer fails--out of memroy

Posted on 2010-11-11
24
6,193 Views
Last Modified: 2013-12-10
hi

i have a java heap dump file (phd format) whose size is 70 mb, when i load it in
IBM heap analyzer (included inside IBM Support Assistant workbench) it fails.

It generates a dump which is

NULL           ------------------------------------------------------------------------
0SECTION       TITLE subcomponent dump routine
NULL           ===============================
1TISIGINFO     Dump Event "gpf" (00002000) received
1TIDATETIME    Date:                 2010/11/11 at 17:40:18
1TIFILENAME    Javacore filename:    C:/Documents and Settings/sania/IBM/ISAv41/logs\javacore.20101111.174017.2728.0003.txt
NULL           ------------------------------------------------------------------------
0SECTION       GPINFO subcomponent dump routine
NULL           ================================
2XHOSLEVEL     OS Level         : Windows 95 4.0 build 950
2XHCPUS        Processors -
3XHCPUARCH       Architecture   : x86
3XHNUMCPUS       How Many       : 4
3XHNUMASUP       NUMA is either not supported or has been disabled by user
NULL          
1XHEXCPCODE    J9Generic_Signal_Number: 00000004
1XHEXCPCODE    ExceptionCode: C0000005
1XHEXCPCODE    ExceptionAddress: 439F7957
1XHEXCPCODE    ContextFlags: 0001003F
1XHEXCPCODE    Handler1: 7FEE91A0
1XHEXCPCODE    Handler2: 7FEC94E0
1XHEXCPCODE    InaccessibleAddress: 00000004
NULL          
1XHEXCPMODULE  Module: C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\bin\awt.dll
1XHEXCPMODULE  Module_base_address: 43990000
1XHEXCPMODULE  Offset_in_DLL: 00067957
NULL          
1XHREGISTERS   Registers:
2XHREGISTER      EDI: 00000000
2XHREGISTER      ESI: 0165FE90
2XHREGISTER      EAX: 00000000
2XHREGISTER      EBX: 00010001
2XHREGISTER      ECX: 01CED734  
2XHREGISTER      EDX: 43A76FB4
2XHREGISTER      EIP: 439F7957
2XHREGISTER      ESP: 01CED1C0
2XHREGISTER      EBP: 00000000
2XHREGISTER      EFLAGS: 00210202
NULL          
1XHFLAGS       VM flags:00040000
NULL          
NULL           ------------------------------------------------------------------------
0SECTION       ENVINFO subcomponent dump routine
NULL           =================================
1CIJAVAVERSION J2RE 6.0 IBM J9 2.4 Windows 95 x86-32 build jvmwi3260ifx-20090128_28959
1CIVMVERSION   VM build 20090128_028959_lHdSMr
1CIJITVERSION  JIT enabled, AOT enabled - r9_20080415_1520ifx7
1CIGCVERSION   GC - 20080415_AA
1CIRUNNINGAS   Running as a standalone JVM
1CICMDLINE     C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\bin\java.exe -Xmx1024M -jar ha.jar C:\Program Files\ibm\SDP\runtimes\base_v7\profiles\was70profile1\heapdump.20101111.151601.3308.0002.phd
1CIJAVAHOMEDIR Java Home Dir:   C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre
1CIJAVADLLDIR  Java DLL Dir:    C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\bin
1CISYSCP       Sys Classpath:   C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\vm.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\annotation.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\beans.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\java.util.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\jndi.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\logging.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\security.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\sql.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmorb.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmorbapi.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmcfw.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\rt.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\charsets.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\resources.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmpkcs.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmcertpathfw.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmjgssfw.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmjssefw.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmsaslfw.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmjcefw.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmjgssprovider.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmjsseprovider2.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmcertpathprovider.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ibmxmlcrypto.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\management-agent.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\xml.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\jlm.jar;C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\javascript.jar;
1CIUSERARGS    UserArgs:
2CIUSERARG               -Xjcl:jclscar_24
2CIUSERARG               -Dcom.ibm.oti.vm.bootstrap.library.path=C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\bin
2CIUSERARG               -Dsun.boot.library.path=C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\bin
2CIUSERARG               -Djava.library.path=C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\bin;.;C:/Program Files/ibm/IBM Support Assistant v41/rcp/eclipse/plugins/com.ibm.rcp.j2se.win32.x86_1.6.0.20090211a-200903301321/jre/bin/classic;C:/Program Files/ibm/IBM Support Assistant v41/rcp/eclipse/plugins/com.ibm.rcp.j2se.win32.x86_1.6.0.20090211a-200903301321/jre/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MSIIG\Common;C:\Program Files\MSIIG\Grapevin;C:/Program Files/ibm/IBM Support Assistant v41/rcp/eclipse/plugins/com.ibm.rcp.os.win32_6.2.0.20090330-1321/os/win32/x86
2CIUSERARG               -Djava.home=C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre
2CIUSERARG               -Djava.ext.dirs=C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\lib\ext
2CIUSERARG               -Duser.dir=C:\Documents and Settings\jaydeep.roy\IBM\ISAv41\applications\eclipse\plugins\com.ibm.esupport.tool.heapanalyzer_4.0.8.00
2CIUSERARG               _j2se_j9=71168 0x7FB97168
2CIUSERARG               -Xdump
2CIUSERARG               -Dconsole.encoding=Cp437
2CIUSERARG               -Djava.class.path=.
2CIUSERARG               -Xmx1024M
2CIUSERARG               -Djava.class.path=ha.jar
2CIUSERARG               -Dsun.java.command=ha.jar C:\Program Files\ibm\SDP\runtimes\base_v7\profiles\was70profile1\heapdump.20101111.151601.3308.0002.phd
2CIUSERARG               -Dsun.java.launcher=SUN_STANDARD
2CIUSERARG               _port_library 0x7FB969A8
NULL          
1CIJVMMI       JVM Monitoring Interface (JVMMI)
NULL           ------------------------
2CIJVMMIOFF    [not available]
NULL          
NULL           ------------------------------------------------------------------------
0SECTION       MEMINFO subcomponent dump routine
NULL           =================================
1STHEAPFREE    Bytes of Heap Space Free: BF510
1STHEAPALLOC   Bytes of Heap Space Allocated: 400000
NULL          
1STSEGTYPE     Internal Memory
NULL           segment  start    alloc    end       type     bytes
1STSEGMENT     42FCFE68 43B88064 43B88064 43B98064  01000040 10000
1STSEGMENT     42FCFE08 43B78060 43B78060 43B88060  01000040 10000
1STSEGMENT     00593240 43B58058 43B58058 43B68058  01000040 10000
1STSEGMENT     005934E0 434C4F74 434C4F74 434D4F74  01000040 10000
1STSEGMENT     00593420 43484F64 43484F64 43494F64  01000040 10000
1STSEGMENT     42FCFD48 430D02C0 430D02C0 430E02C0  01000040 10000
1STSEGMENT     00593360 43464F5C 43464F5C 43474F5C  01000040 10000
1STSEGMENT     005933C0 433F4F24 433F4F24 43404F24  01000040 10000
1STSEGMENT     00593300 4308829C 4308829C 4309829C  01000040 10000
1STSEGMENT     005931E0 42EA89B4 42EA89B4 42EB89B4  01000040 10000
NULL          
1STSEGTYPE     Object Memory
NULL           segment  start    alloc    end       type     bytes
1STSEGMENT     00596230 01D40000 02140000 02140000  00000009 400000
NULL          
1STSEGTYPE     Class Memory
NULL           segment  start    alloc    end       type     bytes
1STSEGMENT     43464764 43B50050 43B57F40 43B58050  00010040 8010
1STSEGMENT     43464704 43B30040 43B4FB28 43B50040  00020040 20000











I am guessing its running out of memory when i try to load the dump file in IBM heap analyzer.
any idea how i can fix this?

thanks v much
J

0
Comment
Question by:royjayd
  • 14
  • 10
24 Comments
 
LVL 41

Expert Comment

by:HonorGod
ID: 34120054
Increase the -Xmx value to increase the amount of heap available for the Java process.

the -Xmx option specifies the "Max Heap Size" available for the process.  The setting above (i.e., "-Xmx1024M") shows that you currently have 1GB (1024 MB) as the current maximum heap size.

The "rule of thumb" is that if the PHB to be processes is larger than something like 200-300 MB, then you are going to need to use a 64 bit JVM in order to run the heap analyzer.

Since your PHB is only 70 MB, you should be able to process it by increasing your -Xmx value.  How much RAM do you have on your machine?

Try doubling the value to -Xmx2048M.  That should help you resolve the issue.

Does this help?
0
 

Author Comment

by:royjayd
ID: 34120742
i have 3 gb ram.
I am just trying to figure out how ibm heap analyzer works
I got the log generated file.
The log is only 70 mb in size, so what happens when i upload my log file into heap analyzer and why does it demands more memory? does the heap analyzer create all the objects listed in the log?

thanks.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34121092
The heap analyzer is a Java program / application that reads, and analyzes the heap dump file (*.PHB).
Part of this analysis involves checking object references which includes the building of relationship trees to understand how all of the data "fits together".  

> does the heap analyzer create all the objects listed in the log?

Kind of, yeah.  It looks at each object, and figures out what other objects each references, and builds data structures that help to understand these relationships.

Does this help?
0
 

Author Comment

by:royjayd
ID: 34121246
but i am curious why does the heap analyzer need 2gb jvm heap space which is actually a lot of space?
0
 

Author Comment

by:royjayd
ID: 34121445
oops l increased the heap size using this command from my wsadmin prompt
wsadmin>AdminConfig.modify(jvm, '[[maximumHeapSize 2048]]') an now my websphere server
in RAD would not start.
this is the log generated in the native_stderr file under profile\logs\server1

************ Start Display Current Environment ************
WebSphere Platform 7.0.0.0 [BASE 7.0.0.0 r0834.28] running with process name MORGAN-R979RGYNode01Cell\MORGAN-R979RGYNode01\server1 and process id 3308
Host Operating System is Windows XP, version 5.1 build 2600 Service Pack 2
Java version = 1.6.0, Java Compiler = j9jit24, Java VM name = IBM J9 VM
was.install.root = C:\Program Files\ibm\SDP\runtimes\base_v7
user.install.root = C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1
Java Home = C:\Program Files\ibm\SDP\runtimes\base_v7\java\jre
ws.ext.dirs = C:\Program Files\ibm\SDP\runtimes\base_v7/java/lib;C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1/classes;C:\Program Files\ibm\SDP\runtimes\base_v7/classes;C:\Program Files\ibm\SDP\runtimes\base_v7/lib;C:\Program Files\ibm\SDP\runtimes\base_v7/installedChannels;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/ext;C:\Program Files\ibm\SDP\runtimes\base_v7/web/help;C:\Program Files\ibm\SDP\runtimes\base_v7/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime
Classpath = C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1/properties;C:\Program Files\ibm\SDP\runtimes\base_v7/properties;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/startup.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/bootstrap.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/jsf-nls.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/lmproxy.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/urlprotocols.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/deploytool/itp/batchboot.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/deploytool/itp/batch2.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/java/lib/tools.jar
Java Library path = C:\Program Files\ibm\SDP\runtimes\base_v7\java\jre\bin;.;C:\Program Files\ibm\SDP\runtimes\base_v7\bin;C:\Program Files\ibm\SDP\runtimes\base_v7\java\bin;C:\Program Files\ibm\SDP\runtimes\base_v7\java\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MSIIG\Common;C:\Program Files\MSIIG\Grapevin
************* End Display Current Environment *************
JVMDUMP006I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" - please wait.
JVMDUMP007I JVM Requesting Snap dump using 'C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\Snap.20101111.151601.3308.0001.trc'
JVMDUMP010I Snap dump written to C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\Snap.20101111.151601.3308.0001.trc
JVMDUMP007I JVM Requesting Heap dump using 'C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\heapdump.20101111.151601.3308.0002.phd'
JVMDUMP010I Heap dump written to C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\heapdump.20101111.151601.3308.0002.phd
JVMDUMP007I JVM Requesting Java dump using 'C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\javacore.20101111.151601.3308.0003.txt'
JVMDUMP010I Java dump written to C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\javacore.20101111.151601.3308.0003.txt
JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError".
************ Start Display Current Environment ************
WebSphere Platform 7.0.0.0 [BASE 7.0.0.0 r0834.28] running with process name MORGAN-R979RGYNode01Cell\MORGAN-R979RGYNode01\server1 and process id 3612
Host Operating System is Windows XP, version 5.1 build 2600 Service Pack 2
Java version = 1.6.0, Java Compiler = j9jit24, Java VM name = IBM J9 VM
was.install.root = C:\Program Files\ibm\SDP\runtimes\base_v7
user.install.root = C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1
Java Home = C:\Program Files\ibm\SDP\runtimes\base_v7\java\jre
ws.ext.dirs = C:\Program Files\ibm\SDP\runtimes\base_v7/java/lib;C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1/classes;C:\Program Files\ibm\SDP\runtimes\base_v7/classes;C:\Program Files\ibm\SDP\runtimes\base_v7/lib;C:\Program Files\ibm\SDP\runtimes\base_v7/installedChannels;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/ext;C:\Program Files\ibm\SDP\runtimes\base_v7/web/help;C:\Program Files\ibm\SDP\runtimes\base_v7/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime
Classpath = C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1/properties;C:\Program Files\ibm\SDP\runtimes\base_v7/properties;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/startup.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/bootstrap.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/jsf-nls.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/lmproxy.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/urlprotocols.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/deploytool/itp/batchboot.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/deploytool/itp/batch2.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/java/lib/tools.jar
Java Library path = C:\Program Files\ibm\SDP\runtimes\base_v7\java\jre\bin;.;C:\Program Files\ibm\SDP\runtimes\base_v7\bin;C:\Program Files\ibm\SDP\runtimes\base_v7\java\bin;C:\Program Files\ibm\SDP\runtimes\base_v7\java\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MSIIG\Common;C:\Program Files\MSIIG\Grapevin
************* End Display Current Environment *************
************ Start Display Current Environment ************
WebSphere Platform 7.0.0.0 [BASE 7.0.0.0 r0834.28] running with process name MORGAN-R979RGYNode01Cell\MORGAN-R979RGYNode01\server1 and process id 2804
Host Operating System is Windows XP, version 5.1 build 2600 Service Pack 2
Java version = 1.6.0, Java Compiler = j9jit24, Java VM name = IBM J9 VM
was.install.root = C:\Program Files\ibm\SDP\runtimes\base_v7
user.install.root = C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1
Java Home = C:\Program Files\ibm\SDP\runtimes\base_v7\java\jre
ws.ext.dirs = C:\Program Files\ibm\SDP\runtimes\base_v7/java/lib;C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1/classes;C:\Program Files\ibm\SDP\runtimes\base_v7/classes;C:\Program Files\ibm\SDP\runtimes\base_v7/lib;C:\Program Files\ibm\SDP\runtimes\base_v7/installedChannels;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/ext;C:\Program Files\ibm\SDP\runtimes\base_v7/web/help;C:\Program Files\ibm\SDP\runtimes\base_v7/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime
Classpath = C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1/properties;C:\Program Files\ibm\SDP\runtimes\base_v7/properties;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/startup.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/bootstrap.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/jsf-nls.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/lmproxy.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/lib/urlprotocols.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/deploytool/itp/batchboot.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/deploytool/itp/batch2.jar;C:\Program Files\ibm\SDP\runtimes\base_v7/java/lib/tools.jar
Java Library path = C:\Program Files\ibm\SDP\runtimes\base_v7\java\jre\bin;.;C:\Program Files\ibm\SDP\runtimes\base_v7\bin;C:\Program Files\ibm\SDP\runtimes\base_v7\java\bin;C:\Program Files\ibm\SDP\runtimes\base_v7\java\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MSIIG\Common;C:\Program Files\MSIIG\Grapevin
************* End Display Current Environment *************
JVMJ9VM015W Initialization error for library j9gc24(2): Failed to instantiate heap; 2G requested
Could not create the Java virtual machine.


any help appreciated.
thanks


0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34121462
It doesn't always need 2GB, there is something about the heap dump that you are trying to analyze that is using more then 1GB of heap space.

I don't know what kind of data structures the application was using, or the number and types of relationships between objects.  However, while it is working to understand the relationships between the objects on the heap, the heap analyzer is apparently building 1 or more extensive data structures so that it can represent the relationships in a way that is graphical in nature, and therefore easier for us humans to understand.
0
 

Author Comment

by:royjayd
ID: 34121739
ok thanks.
increased the heap to 2gb but looks like it fails, posted the log above.
any ideas?
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34121863
Why did you increase the JVM size for your AppServer?

If you want to change the heapsize for your heap analyzer, you need to:

Q: Do you have a bat file to start the heap analyzer, or do you start it from a tool?

The original question shows that it was started using this command:

How, exactly, was this command executed?

Can you either start the heap analyzer from a command prompt, or see if there is a way to change the max heap size in the tool used to start the HA?
1CICMDLINE     C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\bin\java.exe -Xmx1024M -jar ha.jar C:\Program Files\ibm\SDP\runtimes\base_v7\profiles\was70profile1\heapdump.20101111.151601.3308.0002.phd

Open in new window

0
 

Author Comment

by:royjayd
ID: 34122059
>>Do you have a bat file to start the heap analyzer, or do you start it from a tool?
I start it from a tool called  IBM support assistant workbench.

thx
0
 

Author Comment

by:royjayd
ID: 34122196
oh.. and now i cant restart my app server. From wsadmin prompt i am trying to set the jvm heap size (of my app server) to 1024 like it was before using this command
AdminConfig.modify(jvm, '[[maximumHeapSize 1024]]')
but it says my server needs to be started to do that.
0
 

Author Comment

by:royjayd
ID: 34122958
ok i deleted the profile and created a new one so i am good.
now coming back to the original problem i cant find any option in  IBM support assistant workbench
to increase the jvm heap size.
when i do it through dos prompt it says
unable to access ha.jar
screen shot attached

thanks
pic4.bmp
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34123525
Where is the ha.jar file?

from the command prompt, execute the following:

dir /b /s ha.jar

0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:royjayd
ID: 34123674
ok got it. its here
C:\My-softwares\softwares\ISA\jaydeep.roy\applications\eclipse\plugins\com.ibm.e
support.tool.heapanalyzer_4.0.8.00\ha.jar
0
 

Author Comment

by:royjayd
ID: 34123676
so how do i increase the heap size to 2 gb now?

thx
0
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 34123814
ok, to make the java invocation easier to read and execute, I would set some environment variables to make your life easier...

For example, something like this perhaps.


set JAVA=C:\PROGRA~1\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre\bin\java.exe
set HA=C:\My-softwares\softwares\ISA\jaydeep.roy\applications\eclipse\plugins\com.ibm.esupport.tool.heapanalyzer_4.0.8.00\ha.jar

cd C:\Program Files\ibm\SDP\runtimes\base_v7\profiels\was70profile1

%JAVA% -XMx2048M -jar %HA% heapdump.20101111.151601.3308.0002.phd

Open in new window

0
 

Author Comment

by:royjayd
ID: 34123954
it says

JVMJ9VM007E Command-line option unrecognised: -XMx2048M
Could not create the Java virtual machine.

thakns
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34124071
Sigh... sorry for the typographical error.

the

-XMx204M

should be

-Xmx2048M

The M should be lowercase.

Please forgive me.
0
 

Author Comment

by:royjayd
ID: 34124134
forgive you, for what? :-)
you have been very helpful.

when i use Xmx2048M the error is different

JVMJ9VM015W Initialization error for library j9gc24(2): Failed to instantiate he
ap; 2G requested
Could not create the Java virtual machine.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34125507
So, that would indicate that the Java environment isn't quite right.

at your command prompt, type:

echo %JAVA_HOME%

You should see something very similar to:

C:\Program Files\ibm\IBMSUP~1\rcp\eclipse\plugins\COMIBM~3.200\jre

If not then we have 2 options:

- Change the specific Java executable to be executed by changing the "set JAVA=" value, or
- Change the "JAVA_HOME" environment variable value to point to the directory containing the
  Java being executed.

Does this make sense?
0
 

Author Comment

by:royjayd
ID: 34131827
yeah it makes sense, but it still says the same thing. I get the same error
>>>JVMJ9VM015W Initialization error for library j9gc24(2): Failed to instantiate he
ap; 2G requested
Could not create the Java virtual machine.

here is the screenshot attached of all the commands i executed in the dos prompt. pic
0
 

Author Comment

by:royjayd
ID: 34131848
it seems like a memory issue, coz i replaced 2048 with 1024 like this
C:\PROGRA~1\ibm\SDP\runtimes\base_v7\profiles\AppSrv02>%JAVA% -Xmx1024M -jar %HA
% heapdump.20101114.125234.648.0002.phd

and the heap analyzer window opens up fine, but when 1024 is replaced with 2048 it throws error

could it be that i am low on memory, i have 3 gb ram. how do i check if i have enough ram available so that i can assign 2gb to the heap.

thanks v much for your help.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34135869
That error (i.e., the one that generates error message JVMJ9VM015W and refers to the j9gc24 library) is described by this link: http://goo.gl/vf033
0
 

Author Comment

by:royjayd
ID: 34140752
ok, i will take it from here, you have helped me a lot. Thx very much,i appreciate it.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 34144987
That's super.  I'm glad to have been able to assist you.

Thanks for the grade & points.

Good luck & have a great day.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now