• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help needed regarding the java.lang.OutOfMemory Exception

 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

In our application, since last 2 weeks the java.lang.OutOfMemory exception is occurring very frequently. Through the logs I am not able to trace why it is happening so. Hence, requesting you all to kindly guide me how to trace this exception. From the code level what and all do I need to inspect?

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The stack trace will show the location where an attempt to create an object ran out of memory but this location probably has nothing to do with the cause.

What kind of application is this?
How much memory are you giving it?
What has changed in the last two weeks?

Bill
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Earlier also we use to get this error. But it was not very often. But nowadays it is happening 4-5 times daily. This is purely a web based application built using Spring. Please find the tomcat arugments settings below of the application:

-Dcatalina.base="D:\WorkspaceLatest\.metadata\.plugins\org.eclipse.wst.server.core\tmp0" -Dcatalina.home="C:\Tools\apache-tomcat-6.0.20" -Dwtp.deploy="D:\WorkspaceLatest\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps" -Djava.endorsed.dirs="C:\Tools\apache-tomcat-6.0.20\endorsed"
-Xms512m
-Xmx1024m
-XX:MaxPermSize=128m
-XX:NewSize=200m
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!