Apache seems to be running out of memory on one 512Meg box but not another. What affects the amount of memory available to Apache?
It also fails on a 1Gig server. But it starts fine on one of the 512Meg servers. I am using this configuration on a Linux 2.4 OS:
ServerLimit 1
ThreadLimit 512
StartServers 1
MaxClients 512
MinSpareThreads 1
MaxSpareThreads 512
ThreadsPerChild 512
MaxRequestsPerChild 0
[Tue Apr 04 19:57:50 2006] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread 253
(I modified the log to give the thread count)
Apache fails to start on a box with this mem config:
[EMAIL PROTECTED] apache]# free
total used free shared buffers cached
Mem: 513208 226340 286868 0 41900 93548
-/+ buffers/cache: 90892 422316
Swap: 1044216 0 1044216
But it starts OK on another box with this config:
[EMAIL PROTECTED] apache]# free
total used free shared buffers cached
Mem: 515756 342412 173344 0 65552 158268
-/+ buffers/cache: 118592 397164
Swap: 1048552 2340 1046212
And it fails to start on a box like this:
[EMAIL PROTECTED] conf]# free
total used free shared buffers cached
Mem: 1025412 997136 28276 0 131756 685040
-/+ buffers/cache: 180340 845072
Swap: 1052248 1272 1050976