From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,91b3695213d8aae6 X-Google-Attributes: gid1020c6,public X-Google-Thread: 105d47,91b3695213d8aae6 X-Google-Attributes: gid105d47,public X-Google-Thread: f678f,91b3695213d8aae6 X-Google-Attributes: gidf678f,public X-Google-Thread: fa705,91b3695213d8aae6 X-Google-Attributes: gidfa705,public From: "Adam Price" Subject: Re: How to set maximum number of thread per a userid Date: 1999/05/08 Message-ID: <926145430.5382.0.nnrp-11.c2deb51d@news.demon.co.uk>#1/1 X-Deja-AN: 475447937 X-NNTP-Posting-Host: pappnase.demon.co.uk:194.222.181.29 References: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 926145430 nnrp-11:5382 NO-IDENT pappnase.demon.co.uk:194.222.181.29 Newsgroups: comp.unix.admin,comp.unix.bsd.misc,comp.unix.osf.misc,uw.unix.sysadmin 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.