java/lang/OutOfMemoryError - what do I do about it?
Is there any advice available for what to do when you start getting problems with memory ?
I’ve got a Jazz Team Server and CLM applications v6.0.6 running on a Windows Server 2012 Standard with MS SQL Server 2016 (SP2) databases. We are using the Liberty web-server.
About two weeks ago we started having problems where users could not log on. If I rebooted the server everything was OK for a couple of days. Then the problem returned.
I looked in the <install-dir>\server\logs\messages_<date>.log” file and there are “java.lang.OutOfMemory” exceptions.
We are also getting some entries in the Windows Application Log from source=IBM Java mentioning this OutOfMemory Error.
And I have core dump files and “javacore.txt” in the <install-dir>\server\liberty\server\clm” folder.
I don’t really want to keep having to reboot the server every few days so what should my next move be ?
Thanks
Peter
2 answers
Peter,
Eleven days ago I edited the "server.startup.bat" so that we now use -Xms8G and -Xmx8G (instead of the original 4G)
Since then the Jazz Team Server has been stable and there have been no OutOfMemory errors.
And Users are no longer having any problems logging on.
So I'm going to stick with these settings.
Comments
Peter Turvey
Nov 27 '19, 6:28 a.m.Would increasing the Java Heap Size values in "server.startup.bat" be worth a try ?
i.e. set JAVA_OPTS=%JAVA_OPTS%-Xmx8G (instead of 4G)