on 08-09-2012 9:48 AM
Hi,
I am encountering java out of memory error occasionally in SAP Netweaver Web AS 6.40. This happen even when the Web AS was restarted less than one day. On checking the std_server.out log, I noticed a lot of unloading of the class sun.reflect.Generated* and that the perm memory seems not garbage collected at all.
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor309]
[Unloading class sun.reflect.GeneratedMethodAccessor487]
[Unloading class sun.reflect.GeneratedMethodAccessor4127]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor1280]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor1312]
: 490151K->454182K(1923072K), 6.7437627 secs] 490561K->454182K(2053632K), [Perm : 196607K->196607K(196608K)], 6.7440758 secs]
28050.566: [Full GC 28050.566: [Tenured: 454182K->358089K(1923072K), 7.3774607 secs] 454214K->358089K(2053632K), [Perm : 196607K->165707K(196608K)], 7.3778050 secs]
FATAL: Caught OutOfMemoryError! Node will exit with exit code 666
================================================================================
getThreadDump : Wed Aug 1 15:07:16 2012
FATAL: Caught OutOfMemoryError! Node will exit with exit code 666
================================================================================
java.lang.OutOfMemoryError
Full thread dump Java HotSpot(TM) 64-Bit Server VM (1.4.2_27-b03 mixed mode):
I suspect there could be some memory leak but could not figure out where.
Please help.
Thanks.
Hello, The perm size of of the heap has run out of memory:
[Perm : 196607K->165707K(196608K)], 7.3778050 secs]
It seems that the perm size setting is very low. AS the JAVA hotspot version is 64bit you may set heap settings as follows:
-XX:NewSize=341m
-XX:MaxNewSize=341m
-XX:MaxPermSize=384m
-XX:PermSize=384m
-Xmx2048m
-Xms2048m
The other VM settings can be found the note mentioned the colleague previously.
Kind regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Please check if all the JVM parameters are configured as per the following SAP note.
723909 Java VM settings for J2EE 6.40/7.0
To find out what is causing memory leak, please capture heap dumps by following the process
described in the note
1004255 How to create a full HPROF heap dump of J2EE Engine
You can then analyze these dumps using
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/Java/Java+Memory+Analysis
Regards,
Asha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.