• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help needed regarding the java.lang.OutOfMemory Exception

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
InvestigateOutOfMemoryError
 
Keerthi Kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic