Operating System - Linux
1847799 Members
2677 Online
104021 Solutions
New Discussion

Java.Lang.OutOfMemory Error: Java heap Space

 
Yaboto
Super Advisor

Java.Lang.OutOfMemory Error: Java heap Space


I try to login to my web application sitting on a RHEL5, from my windows laptop. I got the following error message:

Java.Lang.OutOfMemory Error: Java heap Space

Please Advice
2 REPLIES 2
J. Maestre
Honored Contributor

Re: Java.Lang.OutOfMemory Error: Java heap Space

That's an issue with either your java app (could it be leaking memory?) or just that it actually requires more memory than what's available on your JVM.

If it's the later, you can adjust the heap size (on your windows client) passing the -Xms and -Xmx parameters to java.

Eg: "java -Xms128m -Xmx512m" would set an initial heap size of 128MB and maximum of 512MB for the JVM.

It could also be that the maximum heap size is configured to an unnecessarily high value on your tomcat server.
Yaboto
Super Advisor

Re: Java.Lang.OutOfMemory Error: Java heap Space


Thank you !