outofMemory Exception in hot Deploy of jboss 3.2.5

E

elh.maayan

hi...

why after a few hot deploys i get OutOfMemory Exception (i've allready
increased xmx and xms)
 
T

Tom Hawtin

why after a few hot deploys i get OutOfMemory Exception (i've allready
increased xmx and xms)

Probably a memory leak then. A number of pieces of code in Sun's JRE can
leak class loaders (and hence all the classes and other data associated
with them). ThreadLocal is the common one. But java.beans and JDBC also
do it.

You can use a memory profiler to tell where the problem is. Googling can
give you more details.

It may be the permanent generation (code and interned strings) that is
running out. IIRC, -XX:MaxPermSize is the Sun option to increase that.

Tom Hawtin
 
E

elh.maayan

which java Profiler should i use?

and should i use the syntax java -XX:MaxPermSize=1024 ? (in jboss
command line run.bat)
 
A

Andrew Thompson

(e-mail address removed) wrote:

Please refrain from top-posting.
...should i use the syntax java -XX:MaxPermSize=1024 ? (in jboss
command line run.bat)

If the problem is a memory leak as Tom suggested, no.
At least, not unless you consider that doubling the
memory might allow the app. to run (roughly) twice
as long before failing, and that makes for 'a solution'.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200705/1
 
L

Lew

Andrew said:
(e-mail address removed) wrote:

Please refrain from top-posting.


If the problem is a memory leak as Tom suggested, no.
At least, not unless you consider that doubling the
memory might allow the app. to run (roughly) twice
as long before failing, and that makes for 'a solution'.

Other options that may help you avoid the real problem until it pops up in
production at the least opportune moment:

-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
 
A

Andrew Thompson

Lew wrote:
(a variey of -XX options to java)
It's something I lifted from NetBeans's config file examples.

Options like this are nearly undocumented, perhaps for a reason.

Yes. Them non-standard options are always to
be treated with a grain of salt (here one release,
possibly gone the next?).

Thanks.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200705/1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top