• 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

memory arguments in start up script

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

I was getting the exception 'java.lang.OutOfMemoryError: PermGen space'
To solve this, i added memory arguments in the start up script, which is as follows -

------------------------
set JAVA_OPTIONS= ...
set JAVA_OPTIONS= ...
set MEM_ARGS=-Xms512m -Xmx1280m
-------------------------

MEM_ARGS is the line i ve added. It is added after java options are set. But, still i am getting outOfMemoryError. I feel that the piece of code is not working as intended.

Do i need to add this somewhere else?
Also, i heard that USER_MEM_ARGS can be used to overtide memory options. I tried that too. But it didnt work.

Any help would be much appreciated

Thanks!
Ranji
 
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
The Xms and Xmx configure heap size. Heap memory is separate from PermGen space. Here is an in-depth article the subject. You can increase PermGen space with the -XX:MaxPermSize switch. 64Mb is the default.
 
Ranjeeth Chandra
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Joe! That was very informative
[ December 16, 2008: Message edited by: Ranjeeth Chandra ]
reply
    Bookmark Topic Watch Topic
  • New Topic