Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
Subject: application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
Subject: X Windows problem (xauth)
Subject: Upgrading openoffice 1 1 rpm
Subject: FTP: connection refused
Subject: FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
Subject: broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Subject: Promise 378 controller
Subject: Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Subject: Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
Subject: Re: Having problems starting ~10k worker threads in apache

Subject: Re: Having problems starting ~10k worker threads in apache

2007-09-19       - By Tom Sightler

 Back
On Tue, 2007-09-18 at 11:34 -0400, Ijaaz A. Ullah wrote:
> I'm trying to create an instance of apache that spawns ~10k worker
> threads.  Due to design requirements, I can only use RHEL3 for this
> application.
>
> Here is the contents of my <IfModule worker.c>
>
> <IfModule worker.c>
> ThreadLimit             400
> ServerLimit             32
> StartServers            32
> MaxClients              12800
> MinSpareThreads         12600
> MaxSpareThreads         12800
> ThreadsPerChild         400
> MaxRequestsPerChild     0
> </IfModule>
>
>
> No matter what combination I use, I can not go higher than about 7k.
> Anything past that gives me these errors:
>
>
> [Tue Sep 18 15:07:36 2007] [alert] (12)Cannot allocate memory:
> apr_thread_create: unable to create worker thread
> [Tue Sep 18 15:07:37 2007] [alert] (12)Cannot allocate memory:
> apr_thread_create: unable to create worker thread
>
> Any help would be appreciated.

Perhaps a silly questions, but have you increased "threads-max"
in /proc/sys/kernel?  It seems like the older RHEL3 systems defaulted to
around 8k threads system wide, which somewhat matches with your
observations.

A command something like the following should work:

sysctl -w kernel.threads-max=15000

If that works for you just add the parameter to your /etc/sysctl.conf
file and you'll be good on future reboots.

Later,
Tom


--
Taroon-list mailing list
Taroon-list@(protected)
https://www.redhat.com/mailman/listinfo/taroon-list