Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: "Adam Price" <adam+usenet@pappnase.demon.co.uk>
Subject: Re: How to set maximum number of thread per a userid
Date: 1999/05/08	[thread overview]
Message-ID: <926145430.5382.0.nnrp-11.c2deb51d@news.demon.co.uk> (raw)
In-Reply-To: ZNPY2.131$285.10898@news.bora.net


lutanist wrote in message ...
>Hi, I'm Lee Jung Wooc.
>
>I have problem running some application using thread for handling
>incoming network connection. Recently I moved my program to another
>machine(previous was alpha, new machine is also alpha. but this time they
>call it PC). On the new machine program didn't run well because of small
>number of thread limit. I found that ulimit command can control various
>limits.
>
>How can I control maximum number of thread ?
>
>my environment is ...
>1. uname -a
>    OSF1 xxx.xxx.xxx V4.0 1091 alpha
>
>2. Can't tell exactly what I saw when my program doing failure, because the
>service went back to old machine. I saw messages like
>'maximum thread limit for uid 201...'
>
>3. RAM is 64 megs, I can't tell swap partition size because df command
>didn't display swap size on this machine.
>
>4. I'm using bash 2.03.
>
>5. maximum count of thread while running is 501 and I have saw that thread
>count reaches above 350, while running on previous platform.
>
>Thanks.
>
>Lee Jung Wooc
>
Get your sysadmin to look at the kernel parameters and tweak them.
I quote from the system configuration and tuning guide
--- Begin quote---
max-threads-per-user

The max-threads-per-user attribute specifies the maximum number of threads
that can be allocated at any one time to each user, except superuser. The
default value is 256.

If your system, especially a Web server, experiences a lack of threads, you
can increase the value of the max-threads-per-user attribute. The value must
be more than the maximum number of threads that will be started by your
system. You can increase the value of the max-threads-per-user attribute to
512. On a very busy server with sufficient memory, you can use a higher
value, such as 4096. Increasing this value can improve the performance of
multithreaded Web servers.
--- End quote.

You should read this guide, it is relay useful.
Hope this helps

Adam

PS you can find it online at one of ...
http://www.unix.digital.com/faqs/publications/pub_page/V40D_DOCS.HTM
http://www.unix.digital.com/faqs/publications/pub_page/V40E_DOCS.HTM
http://www.unix.digital.com/faqs/publications/pub_page/V40F_DOCS.HTM
Depending on your version.






  reply	other threads:[~1999-05-08  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-08  4:00 How to set maximum number of thread per a userid lutanist
1999-05-08  4:00 ` Adam Price [this message]
1999-05-08  4:00   ` lutanist
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox