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 / May 2006

Tip: Looking for answers? Try searching our database.

Many threads and OutOfMemoryError: Java heap size

Thread view: 
jacek - 10 May 2006 13:51 GMT
Hi,

I have an application with about 1500 threads and a PC with 1 GB RAM. I
start the application with following vm arguments: -Xms512m -Xmx512m
-Xss64k, but still getting the OutOfMemoryError: Java heap size for
threads. Maybe somebody knows a tool which could help me to locate the
problem? Or anybody has maybe any idea why it happens?

jacek
Oliver Wong - 10 May 2006 16:43 GMT
> Hi,
>
[quoted text clipped - 3 lines]
> threads. Maybe somebody knows a tool which could help me to locate the
> problem? Or anybody has maybe any idea why it happens?

   Perhaps the problem is that you have 1500 threads. Do you have 1500
processors on that PC with 1GB RAM? If not, why do you have 1500 threads?

   - Oliver
jacek - 11 May 2006 09:24 GMT
The framework I'm using starts so many threads. I know 1500 threads is
really a lot, I just thought maybe somebody had similar problem and
found a solution. I set the -Xss64k after reading this link
http://blogs.msdn.com/oldnewthing/archive/2005/07/29/444912.aspx , I
thought it should work. 1500 threads * 64k = 96M.
Chris Uppal - 11 May 2006 15:16 GMT
> The framework I'm using starts so many threads.

What framework is it that uses so many many ?  Seems odd to me...

>I set the -Xss64k after reading this link
> http://blogs.msdn.com/oldnewthing/archive/2005/07/29/444912.aspx , I
> thought it should work. 1500 threads * 64k = 96M.

At a guess the problem is more about fragmenting the address space, than
running out of RAM as such.  Also, don't forget that the JVM will take more
memory than the -Xmx flag implies.  For instance, it'll need space for its own
code -- code dynamically generated by the JIT and the static code in the JVM
DLL itself.

Maybe jconsole (standard tool in 1.5) would help you find out more.

   -- chris
jacek - 16 May 2006 09:06 GMT
www.jooneworld.com

Basic idea of the framework is nice, but it's not good for the size of
neural networks I need.

did anyone have some positive experience with other monitoring and
management java tools than jconsole? Because of
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6301562 I cannot use
it and I'm looking for some different tools of this kind.

 --jacek
Chris Uppal - 16 May 2006 13:07 GMT
> www.jooneworld.com

Thanks.

> did anyone have some positive experience with other monitoring and
> management java tools than jconsole?

Not me.

> Because of
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6301562 I cannot use
> it and I'm looking for some different tools of this kind.

Is it really so difficult to get a temporary new login ?  Your system
adminstrators much be real monsters ;-)

   -- chris


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.