View Single Post

   
  #5 (permalink)  
Old 01-16-2008, 07:40 PM
toto
 
Posts: n/a
Default Re: Max threads allocating limit problem in HP-UX.

Aray wrote:
> "Alan D Johnson" <adjtech@hvc.rr.com>
> ??????:K6Xsf.22158$Ed.16693@news-wrt-01.rdc-nyc.rr.com...
>
>>Have the admin look at nkthreads and max_thread_proc, both static kernel
>>tunables.

>
>
> Thanks for replay.
>
> I konw little about HP-UX, I saw the max_thread_proc on admin's screen, it
> was 64. didn't see nkthreads
>
> I should read some document befor diving here,
>
>


Hi,

kmtune or kctune give a listing of kernel parameters and their values.

See http://docs.hp.com/en/939/KCParms/KC...erviewAll.html for a full listing with detailled explanations.

max_thread_proc: maximum number of threads that one process can create
nkthread: maximum number of kernel threads allowed on the system at same time

Default kernel values are generaly far too low (however too high is not recommended) for java programming under hpux 11.11
I recommend to install free HP product "Java Out-of-Box tool for HP-UX 11i "
http://www.hp.com/products1/unix/java/?jumpid=go/java

See also doc "Common Misconfigured HP-UX Resources" http://docs.hp.com/en/5580/Misconfigured_Resources.pdf
With "gpm" (glance), you can see how many threads a process has.

A good setup of kernel parameters protect OS from runaway processes while allowing programs to run without annoying limitations.


Alain.








Reply With Quote