  | | | Subject: Having problems starting ~10k worker threads in apache | Subject: Having problems starting ~10k worker threads in apache 2007-09-18 - By Ijaaz A. Ullah
Back 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.
cat /proc/meminfo total: used: free: shared: buffers: cached: Mem: 8396238848 381644800 8014594048 0 87056384 174280704 Swap: 1077501952 0 1077501952 MemTotal: 8199452 kB MemFree: 7826752 kB MemShared: 0 kB Buffers: 85016 kB Cached: 170196 kB SwapCached: 0 kB Active: 157652 kB ActiveAnon: 7468 kB ActiveCache: 150184 kB Inact_dirty: 80616 kB Inact_laundry: 24412 kB Inact_clean: 0 kB Inact_target: 52536 kB HighTotal: 7470752 kB HighFree: 7281052 kB LowTotal: 728700 kB LowFree: 545700 kB SwapTotal: 1052248 kB SwapFree: 1052248 kB CommitLimit: 5151972 kB Committed_AS: 13196 kB HugePages_Total: 0 HugePages_Free: 0 Hugepagesize: 2048 kB
cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 2327.561 cache size : 4096 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 runqueue : 0 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm nx lm bogomips : 4639.94
processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 2327.561 cache size : 4096 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 4 runqueue : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm nx lm bogomips : 4653.05
processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 2327.561 cache size : 4096 KB physical id : 0 siblings : 4 core id : 2 cpu cores : 4 runqueue : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm nx lm bogomips : 4653.05
processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 2327.561 cache size : 4096 KB physical id : 0 siblings : 4 core id : 3 cpu cores : 4 runqueue : 3 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm nx lm bogomips : 4653.05
processor : 4 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 2327.561 cache size : 4096 KB physical id : 1 siblings : 4 core id : 4 cpu cores : 4 runqueue : 4 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm nx lm bogomips : 4653.05
processor : 5 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 2327.561 cache size : 4096 KB physical id : 1 siblings : 4 core id : 5 cpu cores : 4 runqueue : 5 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm nx lm bogomips : 4653.05
processor : 6 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 2327.561 cache size : 4096 KB physical id : 1 siblings : 4 core id : 6 cpu cores : 4 runqueue : 6 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm nx lm bogomips : 4653.05
processor : 7 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 7 cpu MHz : 2327.561 cache size : 4096 KB physical id : 1 siblings : 4 core id : 7 cpu cores : 4 runqueue : 7 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm nx lm bogomips : 4653.05
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|
 |