AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Many threads and OutOfMemoryError: Java heap size

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> JVM, native methods and hardware
View previous topic :: View next topic  
Author Message
jacek
Guest





PostPosted: Wed May 10, 2006 1:07 pm    Post subject: Many threads and OutOfMemoryError: Java heap size Reply with quote



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
Back to top
Oliver Wong
Guest





PostPosted: Wed May 10, 2006 4:07 pm    Post subject: Re: Many threads and OutOfMemoryError: Java heap size Reply with quote



"jacek" <Jacek.Lubinski (AT) gmail (DOT) com> wrote in message
news:1147265493.811428.149130 (AT) i39g2000cwa (DOT) googlegroups.com...
Quote:
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?

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
Back to top
jacek
Guest





PostPosted: Thu May 11, 2006 9:07 am    Post subject: Re: Many threads and OutOfMemoryError: Java heap size Reply with quote



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.
Back to top
Chris Uppal
Guest





PostPosted: Thu May 11, 2006 3:07 pm    Post subject: Re: Many threads and OutOfMemoryError: Java heap size Reply with quote

jacek wrote:

Quote:
The framework I'm using starts so many threads.

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


Quote:
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
Back to top
jacek
Guest





PostPosted: Tue May 16, 2006 8:07 am    Post subject: Re: Many threads and OutOfMemoryError: Java heap size Reply with quote

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
Back to top
Chris Uppal
Guest





PostPosted: Tue May 16, 2006 1:07 pm    Post subject: Re: Many threads and OutOfMemoryError: Java heap size Reply with quote

jacek wrote:
Quote:
www.jooneworld.com

Thanks.


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

Not me.


Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> JVM, native methods and hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.