| View previous topic :: View next topic |
| Author |
Message |
jacek Guest
|
Posted: Wed May 10, 2006 1:07 pm Post subject: Many threads and OutOfMemoryError: Java heap size |
|
|
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
|
Posted: Wed May 10, 2006 4:07 pm Post subject: Re: Many threads and OutOfMemoryError: Java heap size |
|
|
"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
|
Posted: Thu May 11, 2006 9:07 am Post subject: Re: Many threads and OutOfMemoryError: Java heap size |
|
|
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
|
Posted: Thu May 11, 2006 3:07 pm Post subject: Re: Many threads and OutOfMemoryError: Java heap size |
|
|
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...
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
|
Posted: Tue May 16, 2006 8:07 am Post subject: Re: Many threads and OutOfMemoryError: Java heap size |
|
|
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
|
Posted: Tue May 16, 2006 1:07 pm Post subject: Re: Many threads and OutOfMemoryError: Java heap size |
|
|
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.
Is it really so difficult to get a temporary new login ? Your system
adminstrators much be real monsters ;-)
-- chris |
|
| Back to top |
|
 |
|