File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes java.lang.OutOfMemoryError: PermGen space Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

java.lang.OutOfMemoryError: PermGen space

Sam Venkata
Ranch Hand

Joined: Mar 06, 2006
Posts: 68
Hi guys,
I have this memory exception( java.lang.OutOfMemoryError: PermGen space).
I know I need to increase the memory size by altering the JAVA_OPT's
-XX ermSize=128m -XX:MaxPermSize=196m parameters from the command line, but I use Tomcat 6.0 as a windows service, I want the changes to occur automatically instead of using the command prompt. Can somebody help me with this.
Sam Venkata
Ranch Hand

Joined: Mar 06, 2006
Posts: 68
Based on my research what I found was that I need to set the options from command prompt as ++JvmOptions="-XX:MaxPermSize=128m"
But I am not sure how to do it.
Can some body help me with that.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63047

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jQuery in Action, 3rd edition
subject: java.lang.OutOfMemoryError: PermGen space
It's not a secret anymore!