This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes how to configure the premgen path in  jboss 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 » Products » JBoss/WildFly
Bookmark "how to configure the premgen path in  jboss" Watch "how to configure the premgen path in  jboss" New topic
Author

how to configure the premgen path in jboss

Ramasubramaniam Rathinasubbu
Ranch Hand

Joined: Jun 09, 2010
Posts: 44
i am using jboss in linux

some times i am getting premgen outofmemoryerror.

so i want to take the heapdumb (hprof) from jboss


where should i mention the path for .hprof file. It should be generated some where, am i correct? if it is correct
where should we mention the path.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

The heap dump is usually placed in the current working directory, which for JBoss AS is the jboss_home/bin directory.

By the way, if you are getting OOMEs on permgen, just increase the permgen size. There is really nothing you can do to tune that size - you simply have to make it large enough to hold all of the classes. (Unless you wrote you own classloader...)


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to configure the premgen path in jboss
 
Similar Threads
Using Profiling in Java
helpme to install Tomcat
java -Xrunhprof
Profiler hell
ANT Script throws Out of Memory: PremGen space