on 11-16-2011 1:10 PM
Hi,
I am a newbie to tuning SAP Netweaver Performance for an ABAP + JAVA stack.
Can someone please help me to solve the below error?
The JAVA links are not accessible because of this and sometimes the JAVA stack goes down automatically.
Kindly suggest.
Unloading class sun.reflect.GeneratedMethodAccessor885
: 2043776K->1832383K(2293760K), 20.5922922 secs] 2120243K->1832383K(2616320K), 20.7372252 secs]
250264.997: [GC 250264.997: [DefNew: 4053K->301K(322560K), 0.0676625 secs]250265.065: [Tenured: 2170296K->2170471K(2293760K), 17.1183067 secs] 2174349K->217
0471K(2616320K), 17.1862726 secs]
250282.184: [Full GC 250282.184: [Tenured: 2170471K->2056259K(2293760K), 22.8738093 secs] 2170471K->2056259K(2616320K), [Perm : 273409K->270141K(745472K)],
22.8741439 secs]
java.lang.OutOfMemoryError: Java heap space
250305.122: [Full GC 250305.122: [Tenured: 2056259K->2056259K(2293760K), 17.1047916 secs] 2056291K->2056259K(2616320K), [Perm : 270141K->270141K(745472K)],
17.1050646 secs]
Dumping heap to java_pid14602.hprof ...
Heap dump file created [2210478785 bytes in 145.621 secs]
FATAL: Caught OutOfMemoryError! Node will exit with exit code 666java.lang.OutOfMemoryError: Java heap space
at java.lang.String.<init>(String.java:208)
with regards,
Raja
Hi Raja,
In this situation, take the dumped file - in your case it is
"Dumping heap to java_pid14602.hprof ..."
then install the Memory Analyzer Tool http://sapnwnewbie.blogspot.de/2010/10/installing-memory-analyser-tool-for.html , open the heap dump and see the reason for the out of memory.
If it is a memory leak - fix the issue in the software;
if it is only memory tuning - then increase the values of parameters -Xms and -Xmx
Best Regards,
Sylvia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Raja,
Although your Java Vm parameteres are accroding to note 723909, if OOM errors exist in the heap space than you have to
increase the servers heap size. Please, try with 3GB (Xmx and Xms set to 3072).
Let me know the results.
Regards,
Blanca
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The error you are facing is a result of exhauted native memory
There are different ways of enlarging the available native memory:
Enlarge the physical memory (RAM) of the machine showing the issue.
If applicable migrate from Windows 32 bit to Windows 64 bit system. See SAP note 1280759.
Enlarge the available address space by enlarging the virtual memory. To do so set the 3 GB option on Windows 32 bit as described in SAP note 313347. Note that on 32 bit systems the address space is limited to 4 GB (see SAP note 1121255) which is in many cases not sufficient.
Reduce the java heap ( maxPermSize, maxNewSize, maxHeapSize) by various VM parameters (e.g. -XX:PermSize=..). Be aware that changing these parameters will have severe side effects on the performance of the system and should be considered as the last possibility only. For details on those parameters see SAP note 1303953 and 710146.
Hope this helps.
Regards,
Deepak Kori
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try Note 723909 - Java VM settings for J2EE 6.40/7.0 or search for "Java VM settings" on service.sap.com/notes.
regards, Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
Thanks for your reply..
I have checked the SAP Note 723909 - Java VM settings for J2EE 6.40/7.0 as per the previous reply.
When compared, the parameter settings in our ABAP + JAVA stack is already in accordance with the settings as per the mentioned SAP note. Following are the Memory settings in ABAP + JAVA stack.
-Xms2660M
-XX:PermSize=728M
-XX:MaxPermSize=728M
-XX:NewSize=420m
-XX:MaxNewSize=420m
-XX:SurvivorRatio=2
-XX:TargetSurvivorRatio=90
We have around 25GB of Free memory availble at OS level (HP-UX ia64) on this server (ABAP + JAVA stack).
This server also host the Oracle 10gb database.
Can we consider increasing the heap memory of JAVA stack? Will this have any side effect on the OS/ database /SAP application?
Also, i was curious enough to interpret the below lines in bold from the server0.log. Can you please help?
FATAL: Caught OutOfMemoryError! Node will exit with exit code 666java.lang.OutOfMemoryError: Java heap space
at com.sap.engine.core.cluster.impl6.ms.MSMessageHeader.<init>(MSMessageHead: 2293760K->2293760K(2293760K), 36.0442032 secs] 2616319K->2616319K(2616
320K), [Perm : 294479K->294479K(745472K)], 36.0452810 secs]
156136.747: [Full GC 156136.748: [Tenured: 2293760K->2293760K(2293760K), 36.7930531 secs] 2616319K->2616289K(2616320K), [Perm : 294479K->294479K(745472K)],
36.7933526 secs]
with regards,
Raja
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.