Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* How to set maximum number of thread per a userid
@ 1999-05-08  4:00 lutanist
  1999-05-08  4:00 ` Adam Price
  0 siblings, 1 reply; 3+ messages in thread
From: lutanist @ 1999-05-08  4:00 UTC (permalink / raw)


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







^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to set maximum number of thread per a userid
  1999-05-08  4:00 How to set maximum number of thread per a userid lutanist
@ 1999-05-08  4:00 ` Adam Price
  1999-05-08  4:00   ` lutanist
  0 siblings, 1 reply; 3+ messages in thread
From: Adam Price @ 1999-05-08  4:00 UTC (permalink / raw)



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.






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to set maximum number of thread per a userid
  1999-05-08  4:00 ` Adam Price
@ 1999-05-08  4:00   ` lutanist
  0 siblings, 0 replies; 3+ messages in thread
From: lutanist @ 1999-05-08  4:00 UTC (permalink / raw)


Thanks for information you provided. the attribute requires rebooting and
soon I will have the sysadmin to reboot the machine.



Adam Price wrote:
>
>lutanist wrote in message ...

>>Lee Jung Wooc

.... snip ....
>>
>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.
>
>
>






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-05-08  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-08  4:00 How to set maximum number of thread per a userid lutanist
1999-05-08  4:00 ` Adam Price
1999-05-08  4:00   ` lutanist

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