• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

memory arguments in start up script

 
Ranjeeth Chandra
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
 
Joe Ess
Bartender
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks Joe! That was very informative
[ December 16, 2008: Message edited by: Ranjeeth Chandra ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic