This is The issue, we configured the WAS JVM as below:
JVM Heap Size :- Initial heap size: 4GB- Maximum Heap size: 6GB
=============Server.xml===========
<jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" initialHeapSize="4096" maximumHeapSize="6144" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="-Xgcpolicy:gencon -Xmn2048M" executableJarFileName="" disableJIT="false">
<systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
<systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
<systemProperties xmi:id="Property_1400137377353" name="com.ibm.websphere.webservices.http.maxConnection" value="500" required="false"/>
</jvmEntries>v
================================
before all working fine, since two days ago starts this behavior, the JVM can get more than 1GB even we configured the WAS to use initial Heap Size: 4GB. Java Proces check attached
sadly it's an old system, but we are working to upgrade it.
------------------------------
Ahmed
alssarty@yahoo.com------------------------------
Original Message:
Sent: Thu March 12, 2020 08:57 AM
From: Hermann Huebler
Subject: WAS 7 Out Of Memory - issue with windows memory
Hello Ahmed,
what you are showing us is the Java version used by windows but not the Java version used by WAS. But nevertheless your Java version is: J2RE 6.0 IBM J9 2.4 Windows Server 2008 amd64-64 build jvmwa6460-20080816_22093 (woww, almost 12 years old!).
Please can you check the data you have uploaded? The javacore shows a min heap size of 50M (-Xms50m) and a max heap size of 256m ( -Xmx256m). And this 256m of Java heap were simply full. When opening the thread you were talking about 4GB initial heap. So there is a huge discrepancy here. Either the materials you sent are from another server or there is some significant misunderstanding.
------------------------------
Hermann Huebler
#IBMChampion
Original Message:
Sent: Thu March 12, 2020 08:37 AM
From: Ahmed Alsareti
Subject: WAS 7 Out Of Memory - issue with windows memory
Hi Sebastian Tylko,
Thank you for the replay; regarding your questions, find below the answers:
Your OS is 64-bit. Is your JVM also 64-bit?
Yes Os is 64-bit, And Java is 64-bit(see Attached )
Heap dump (Attached both files)
Also attached Windows paging file
------------------------------
Ahmed
alssarty@yahoo.com
Original Message:
Sent: Wed March 11, 2020 05:51 PM
From: Sebastian Tylko
Subject: WAS 7 Out Of Memory - issue with windows memory
Your OS is 64-bit. Is your JVM also 64-bit ?
execute:
D:\IBM\WebSphere\AppServer\java\bin\java.exe -version
and check output.
- Build: pwi3260sr12-20121025_01(SR12) = 32-bit
- Build: pwa6460sr12-20121025_01(SR12) = 64-bit
If this is 32-bit - than you cannot allocate more than ~1.2 GB
If this is 64-bit check created files:
- Heap dump @ 'D:\IBM\WebSphere\AppServer\profiles\FGAESrv01\heapdump.20200310.141007.6760.0011.phd'
- Java core @ 'D:\IBM\WebSphere\AppServer\profiles\FGAESrv01\javacore.20200310.141003.6760.0010.txt'
Check also size of Windows paging file.
------------------------------
Sebastian Tylko
Original Message:
Sent: Wed March 11, 2020 04:07 AM
From: Ahmed Alsareti
Subject: WAS 7 Out Of Memory - issue with windows memory
Environment Details:
- Windows Server 2008 (64bit) with 24 GB RAM
- WebSphere 7.0.0.27
JVM Heap Size :
- Initial heap size: 4GB
- Maximum Heap size: 6GB
- Generic JVM Arguments = "-Xgcpolicy:gencon "
Facing An Issue OutOfMemoryError even we configured the JVM heap size as mentioned above the issue the java process can get more than 1GB RAM from the windows which is less than the assigned initial JVM memory, once WAS Java process reach 1GB RAM it's hanging.
------------------------------
Ahmed
------------------------------