File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 8710
    
    6

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 ]
 
Don't get me started about those stupid light bulbs.
 
subject: memory arguments in start up script
 
Similar Threads
installservice script for windows
Urgent help neede -Unable to create SOAP connection factory
Initscript
Dubug issue in Weblogic
BEA Weblogic Server goes down