This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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: 62113

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]
I agree. Here's the link:
subject: java.lang.OutOfMemoryError: PermGen space