This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.OutOfMemoryError: PermGen space in Glass Fish

 
Dexter Jesu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tanx dude for kind help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic