• 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

java.lang.OutOfMemoryError

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am getting error

ERROR - StandardWrapperValve.invoke(269) | Servlet.service() for servlet action threw exception
java.lang.OutOfMemoryError: Java heap space


when trying to get 9999 records at a time. i have also set CATALINA_OPTS=-Xms712m in the environmental variable, how do i get rid of this error. I am using tomcat5.5
[ November 21, 2005: Message edited by: kiranrs iyengar ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe that should be in Java Opts
This is working for me.
It's at the top of my catalina.sh file (use catalina.bat for windows).



If you've installed tomcat from the ".exe" installer, these settings are stored in the registry and can be configured from the Tocmat Configuration screen.

Start -> All Programs -> Apache Tomcat -> Tomcat Configuration -> Java (tab)

In any case, you can check the setting from the Tomcat Manager app.
Go to:
http://localhost:8080/manager/html

Click on "Server Status" (right hand side of the page header)
Then look for the JVM section
Here's mine:

 
reply
    Bookmark Topic Watch Topic
  • New Topic