cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Analyzer Question

Former Member
0 Kudos

Hi,

This is related to BI J2EE 7.0 at SP 13. It is a Sun Java 1.4.2_13-b06.

I want to install a memory analyser and I am not getting any success.

I went to https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/8070021f-5af6-2910-5688-bde8f.... [original link is broken]

There are multiple available.

I have installed the one for Windows and I can open and navigate using sample dump in snapshot directory.

My question is that can I generate the dump in Solaris and FTP it to snapshot directory and open it or I have to install the Solaris one from the above link and copy to UNIX.

If yes then I tried that as well and ran MemoryAnalyser.sh but nothing happens and GUI does not comeup.

Please let me know. I am in the need of desperate help.

Regards.

Sume

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello all,

I am still partly struggling with this issue.

I have managed to get the dump.

I was not able to get the dump with the help of +HeapDumpOnCtrlBreak. When I set this parameter using ConfigTool and followed the instruction in the note 710154, it never created a heap dump. Actually it did not even generated a Thread Dump, which it was doing earlier. It was just hung in jcmon for 40-45 mnts and then I killed it. I do not if I was suppose to wait longer.

Then I followed the jmap.exe procedure from https://www.sdn.sap.com/irj/sdn/wiki?path=/display/java/javaMemoryAnalysis

and it worked well.

As far as opening, I FTP the dump from UNIX to my desktop and opened in MemoryAnalyser, which I installed from

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/8070021f-5af6-2910-5688-bde8f... [original link is broken]

I was able to open it.

The version I have installed is for -

Download SAP Memory Analyzer - Eclipse RCP application for Windows (34690 KB)

Is it a correct way? Please let me know.

What is the purpose of other downloads available for other OS on the above link.

My another question is how to get jvmmon.exe. All i was able to find on the goggle is that it resides somewhere in kernel, which I am not able to find on our system. So I do not know how to download. Is it for windows only or it is for all OS. This tool is very good and can be used for generating a heap dump.

Another method was SAPMMC.

I was never successfull in SAPMMC on my desktop. I always get error when I run "regsvr32 sapmmc.dll";.

I apologize if I have asked too many question in one post.

Please help me. I will appreciate it.

Regards.

Sume

Former Member
0 Kudos

Hello Sume,

If you have the settings configured as per note 1004255

&

How can I get a heapdump ?

https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=33456

Then the Heapdump should be created automatically when the outofmemory error occurs. This is when the engine crashes due to the insufficient memory (heap/perm). If you want to generated a heapdump manually, you can goto SAPMMC and right click on the process and execute 'Dump Stack Trace'.

You can refer to notes :

354595

373963

926732

Also, there is a way to invoke dump stack trace through jcmon.exe.

execute the following command :

jcmon pf=<path to instance profile>

Choose 20 (for cluster administration)

Choose 10 (for dumpstack trace)

Choose the process id (can find out using option 1 in the same)

Regarding jvmmon.exe, this is only incase you are using SAPJVM. I don't think that is the case with you.

If you are using SAPJVM, then you can find jvmmon.exe at the following path :

\usr\sap\SID\SYS\exe\run\sapjvm_5\bin

Also, regarding what the other versions are for at the link of SAP Memory Analyzer : They are just versions for different OS. You have downloaded for windows. If anyone else wants to download for Unix and such, they need to select the versions accordingly.

Hope the above helps.

Regards,

Snehal