This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes memory arguments in start up script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "memory arguments in start up script" Watch "memory arguments in start up script" New topic
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: 8843
    
    7

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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: memory arguments in start up script
 
Similar Threads
installservice script for windows
BEA Weblogic Server goes down
Initscript
Dubug issue in Weblogic
Urgent help neede -Unable to create SOAP connection factory