Why
heap dump required:
Your SAP Java stack server node is crashing with OutOfMemoryError OR you are seeing following logs in dev_server<x> logs after server node restart/crash.
[Thr 3840] Fri Nov 06 08:46:48 2012 [Thr 3840] JLaunchIExitJava: exit hook is called (rc = 666) [Thr 3840] **********************************************************************
********************************************************************** [Thr 3840] JLaunchCloseProgram: good bye (exitcode = 666)
How to get heap dump on OOM Error : You can get the heap dump by setting up following parameters. -XX:+HeapDumpOnOutOfMemoryError After adding this parameter in cluster JVM settings, it will generate heap dumps in the /usr/sap/<SID>/<instance>/j2ee/cluster/server<N> folder and Output file name format is java_pid<pid>.hprof -XX:HeapDumpPath=<directory where to save heap dumps> The size of the heap dump file is usually about the size of the used heap at the moment the heap dump is written. We recommend separate mount/folder to store dumps. In general practice, we go with /usr/sap/dumps whose size would be at least 5-10 times our heap size . -XX:+HeapDumpOnCtrlBreak This parameter is required if you want to generate heap dump on demand.(Without OOM error). How to set these parameters in SAP system: 1.Launch Configtool - Go to to /usr/sap/<SID>/JC*/j2ee/configtool/ and execute configtool.sh (On UNIX like environment , please setup DISPLAY as per X11 /Reflection application). 2.select cluster_data/instance_ID.../server_ID... and add the parameter in the "General " tab. If you have more than one server node, you need to add these parameters to every server node. ![]() Reference: http://help.sap.com/saphelp_nwesrce/helpdata/en/97/d0de42c02c420da92a7cec346f9168/content.htm |