Two Laptop Bag*
The moose likes Web Services and the fly likes java.lang.OutOfMemoryError: PermGen space in Glass Fish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "java.lang.OutOfMemoryError: PermGen space in Glass Fish" Watch "java.lang.OutOfMemoryError: PermGen space in Glass Fish" New topic
Author

java.lang.OutOfMemoryError: PermGen space in Glass Fish

Dexter Jesu
Greenhorn

Joined: Aug 12, 2009
Posts: 10
Hi Friends,
I am getting error java.lang.OutOfMemoryError: PermGen space while deploying. I am using Glass Fish v3 prelude. For Tomcat we can add the size in log file, if this error occurred. But for Glass fish what shall i do . Where will be Glass Fish log file. Please help. Tanx in advance
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
First of all, I want to recommend this article on the subject: http://mediacast.sun.com/users/Frank.Kieviet/media/JavaOne07-BOF9982-PermGen.pdf
Second, what do you mean by "we can add the size in log file"???
Do you increase the size of perm gen space in a log file?!???

Anyway, if you are using GlassFish v3, you may want to consider having a look at the startup-scripts (startserv and startserv.bat) instead of the log files. There you should be able to add all the JVM parameters you want.
Best wishes!
Dexter Jesu
Greenhorn

Joined: Aug 12, 2009
Posts: 10
Tanx dude for kind help
 
 
subject: java.lang.OutOfMemoryError: PermGen space in Glass Fish
 
Similar Threads
What is PermGen space?
Scriptlet vs JSTL
Regarding JVM options with Heap size and PermGenSpace
PermGen Memory issue in WebLogic 10
OutOfMemoryError starting Jetty server