Re: Available memory and limit on thread creation

From: Joseph Dionne (jdionne_at_hotmail.com)
Date: 07/02/04


Date: Fri, 02 Jul 2004 01:57:02 GMT

Liz wrote:
> "Joseph Dionne" <jdionne@hotmail.com> wrote in message
> news:Y4%Ec.22090$bs4.12863@newsread3.news.atl.earthlink.net...
>
>>I am using Linux 2.4 with JVM 1.4.2_04. I have noticed a limit to the
>>number of threads that can be created. I tried many settings of "-Xmx"
>>and "-Xss" and the largest number of threads I can launch is 1015. So,
>>I have several questions.
>>
>>First, does available memory limit number of threads?
>
>
> Obviously.
>
>
>>Second, if available memory does limit the number of threads, is there a
>>rule of thumb on how to calculate that limit?
>>Finally, exactly what affect do "-Xmx" and "-Xss" have to the VM and do
>>they affect thread memory at all?
>>
>>thanks
>>Joseph
>>
>
>
>

Thank you Liz, as a c developer I know this is fact. As a decades long
UNIX programmer, knowing the function of swap space, which I have set
rather large, I can achieve a much better outcome. I dont want to
diminish java, but I can model a lot more threads, using pthreads in c,
than I can in java. I am looking for more detailed information because
quite frankly I prefer to work in java.

I have found that multiple JVMs running my test application reach a
similar limit, leading me to believe a any limit is biased by something
other than I am considering.

Joseph



Relevant Pages

  • Re: Vista
    ... "Liz" wrote: ... integrates DirectX 9c which means that all that fancy "faffing about" ... that Liz talks about is done by the video processor with it's own ... CPU and memory. ...
    (borland.public.delphi.non-technical)
  • RE: Internet explorer wont start-IE8
    ... hi Liz, Kaja here. ... When you click the internet explorer icon on your desktop exactly what ... memory installed which wasn't enough (hence the reason i installed more ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • RE: Internet explorer wont start-IE8
    ... Hi Liz I want to help you. ... I do not think that adding more memory will ... When you click the internet explorer icon on your desktop exactly what ... clicking on open, open home page, or run? ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: SMT Restaurant Reviews
    ... I haven't lost that part of my memory at least! ... Liz! ... I could have sworn that you and Charlie had been married longer than 3 ...
    (sci.med.transcription)
  • Re: Argument scope
    ... This is a question I got wrong the first time I took a practice Java ... as a general rule, the OO facilities don't even assume that object layout is frozen. ... but, yeah, mine may be triggered either by running out of memory or exceeding a threshold. ... otherwise, it would require either "emergency back-up memory" which is safe to allocate during the GC, or interrupting the GC in order to perform memory allocation tasks. ...
    (comp.lang.java.programmer)