Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

outofMemory Exception in hot Deploy of jboss 3.2.5

Thread view: 
elh.maayan@gmail.com - 21 May 2007 15:52 GMT
hi...

why after a few hot deploys i get OutOfMemory Exception (i've allready
increased xmx and xms)
Tom Hawtin - 21 May 2007 18:07 GMT
> 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
elh.maayan@gmail.com - 26 May 2007 21:06 GMT
which java Profiler should i use?

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

> elh.maa...@gmail.com wrote:
>
[quoted text clipped - 13 lines]
>
> Tom Hawtin
Andrew Thompson - 26 May 2007 21:20 GMT
Please refrain from top-posting.
<http://www.physci.org/codes/javafaq.html#toppost>

>...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'.

Signature

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

Lew - 27 May 2007 16:03 GMT
> Please refrain from top-posting.
> <http://www.physci.org/codes/javafaq.html#toppost>
[quoted text clipped - 6 lines]
> 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

Signature

Lew

Andrew Thompson - 27 May 2007 16:20 GMT
...
>> ...might allow the app. to run (roughly) twice
>> as long before failing, and that makes for 'a solution'.
[quoted text clipped - 4 lines]
>-XX:+CMSClassUnloadingEnabled
>-XX:+CMSPermGenSweepingEnabled

Huhh.  Those options are new to me.  I'll have to
look them up!

Signature

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

Lew - 27 May 2007 16:33 GMT
> ..
>>> ...might allow the app. to run (roughly) twice
[quoted text clipped - 7 lines]
> Huhh.  Those options are new to me.  I'll have to
> look them up!

It's something I lifted from NetBeans's config file examples.

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

I found
<http://blogs.sun.com/watt/resource/jvm-options-list.html>

Signature

Lew

Andrew Thompson - 27 May 2007 17:11 GMT
(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?).

>I found
><http://blogs.sun.com/watt/resource/jvm-options-list.html>

Thanks.

Signature

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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.