File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

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.
Thanks,
Samanth.
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.

Thanks,
Samanth.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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: http://aspose.com/file-tools
 
subject: java.lang.OutOfMemoryError: PermGen space
 
Similar Threads
Scriptlet vs JSTL
Shut down JVM using command
java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
Out Of Memory Error