| Author |
memory arguments in start up script
|
Ranjeeth Chandra
Greenhorn
Joined: Sep 19, 2008
Posts: 7
|
|
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
|
Thanks,
Ranji
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8265
|
|
|
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.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
Ranjeeth Chandra
Greenhorn
Joined: Sep 19, 2008
Posts: 7
|
|
Thanks Joe! That was very informative [ December 16, 2008: Message edited by: Ranjeeth Chandra ]
|
 |
 |
|
|
subject: memory arguments in start up script
|
|
|