• 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.out of memory exception:Pergem space error

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working with tomcat 7.0.25 and ubuntu.while I am trying to start my application pergem space erro occure in log file.How can I remove this pergem space error in ubuntu-tomcat.Where to ser JAVA_OPTS in catalina.sh
or catalina.bat?how can I set JAVA_OPTS.Please help me.It is an urgent one.Thanks in advance.
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The default PermGen space is 128M, and while not many things use PermGen, Tomcat eats a lot of it, so it's common to run out when re-deploying webapps, or deploying apps such as JPA-based apps that also consume PermGen.

You should be able to ease the pain by creating a file named "setenv.sh" (or setenv.bat, for Windows) in the TOMCAT_HOME/bin directory. Put this line into it:


You can adjust the Xms and Xmx if you like - I pulled this from a major server which uses more RAM than average.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic