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 / Virtual Machine / August 2006

Tip: Looking for answers? Try searching our database.

Exception in thread "CompilerThread0" java.lang.OutOfMemoryError

Thread view: 
ramdas.hegde@gmail.com - 18 Aug 2006 19:07 GMT
I get the following error when running my application using JDK
1.4.2_07 on a Debian Linux box.

Exception in thread "CompilerThread0" java.lang.OutOfMemoryError:
requested 1634084 bytes for Chunk::new. Out of swap space?

The JVM has been allocated a max of 1.5GB of heap and the system itself
has 3GB of physical memory. The JVM crashes randomly and the system
seems to have enouugh physical memory and swap space when this happens.

Some of the other params that are relevant here are : number of threads
running within the JVM is around 520 and the stack size is set to 512

Looks like this error has been reported as a bug against some VMs in
Sun's bug db but there is no definite fix that is specified. It also
seems to be happening across many different JVM versions.

Any clues on how to debug this?

Thanks
dsjoblom@abo.fi - 30 Aug 2006 15:53 GMT
> I get the following error when running my application using JDK
> 1.4.2_07 on a Debian Linux box.
[quoted text clipped - 14 lines]
>
> Any clues on how to debug this?

What exact flags are you passing to the VM? It seems like you are
running out of perm space, used for miscellanious VM structures that
are not regular objects. You could try increasing the perm space size
with -XX:MaxPermSize. The defaults are (IIRC) 32 MB for the client VM
and 64 MB for the server VM.

Regards,
Daniel Sjöblom


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



©2008 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.