Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > outofMemory Exception in hot Deploy of jboss 3.2.5

Reply
Thread Tools

outofMemory Exception in hot Deploy of jboss 3.2.5

 
 
elh.maayan@gmail.com
Guest
Posts: n/a
 
      05-21-2007
hi...

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

 
Reply With Quote
 
 
 
 
Tom Hawtin
Guest
Posts: n/a
 
      05-21-2007
wrote:
>
> 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
 
Reply With Quote
 
 
 
 
elh.maayan@gmail.com
Guest
Posts: n/a
 
      05-26-2007
which java Profiler should i use?

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

On May 21, 8:07 pm, Tom Hawtin <use...@tackline.plus.com> wrote:
> elh.maa...@gmail.com wrote:
>
> > 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



 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      05-26-2007
wrote:

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

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

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.asp...neral/200705/1

 
Reply With Quote
 
Lew
Guest
Posts: n/a
 
      05-27-2007
Andrew Thompson wrote:
> wrote:
>
> 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'.


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

--
Lew
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      05-27-2007
Lew wrote:
...
>> ...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


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

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

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.asp...neral/200705/1

 
Reply With Quote
 
Lew
Guest
Posts: n/a
 
      05-27-2007
Andrew Thompson wrote:
> Lew wrote:
> ..
>>> ...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

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

--
Lew
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      05-27-2007
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?).

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


Thanks.

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

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.asp...neral/200705/1

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OutputStream from a URLConnection produces an OutOfMemory OutputStream from a URLConnection produces an OutOfMemory WinstonSmith_101@hotmail.com Java 2 10-25-2006 04:45 PM
OutofMemory Exception Throw =?Utf-8?B?Umlja3kgQ2hhbg==?= ASP .Net 2 09-09-2005 03:51 PM
How to force outofmemory exception throw =?Utf-8?B?Umlja3kgQ2hhbg==?= ASP .Net 1 07-08-2005 01:59 AM
System.OutOfMemory Exception LP ASP .Net 6 04-09-2005 10:33 PM
system.outofmemory exception vMike ASP .Net 0 10-30-2003 06:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57