Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Apache 2 child spawn issue

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


edavid at ucalgary

Oct 25, 2005, 9:47 AM

Post #1 of 5 (269 views)
Permalink
Apache 2 child spawn issue

I am getting this message when I run a perl program.
*Resource temporarily unavailable: couldn't create child process:*

I am including my config file parameters:-

##
## Server-Pool Size Regulation (MPM specific)
##

<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 256
MaxRequestsPerChild 10000
</IfModule>

# worker MPM
<IfModule worker.c>
ServerLimit 16
StartServers 3
MaxClients 256
MinSpareThreads 75
MaxSpareThreads 250
ThreadsPerChild 25
MaxRequestsPerChild 10000
</IfModule>

# perchild MPM
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 64
MaxRequestsPerChild 0
</IfModule>

If anyone can see what I am doing wrong please let me know.
My workaround for now is to restart the Apache server.

---------------------------------------------------------------
Edward David
Sr. Systems Analyst
University of Calgary
Information Resources
Information Technology Service
---------------------------------------------------------------


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


edavid at ucalgary

Oct 25, 2005, 9:55 AM

Post #2 of 5 (273 views)
Permalink
Re: Apache 2 child spawn issue [In reply to]

Sorry I am running Linux AS 4 Enterprise server.
Apache 2.0.54.

Edward David wrote:

> I am getting this message when I run a perl program.
> *Resource temporarily unavailable: couldn't create child process:*
>
> I am including my config file parameters:-
>
> ##
> ## Server-Pool Size Regulation (MPM specific)
> ##
>
> <IfModule prefork.c>
> StartServers 5
> MinSpareServers 5
> MaxSpareServers 10
> MaxClients 256
> MaxRequestsPerChild 10000
> </IfModule>
>
> # worker MPM
> <IfModule worker.c>
> ServerLimit 16
> StartServers 3
> MaxClients 256
> MinSpareThreads 75
> MaxSpareThreads 250
> ThreadsPerChild 25
> MaxRequestsPerChild 10000
> </IfModule>
>
> # perchild MPM
> <IfModule perchild.c>
> NumServers 5
> StartThreads 5
> MinSpareThreads 5
> MaxSpareThreads 10
> MaxThreadsPerChild 64
> MaxRequestsPerChild 0
> </IfModule>
>
> If anyone can see what I am doing wrong please let me know.
> My workaround for now is to restart the Apache server.
>
> ---------------------------------------------------------------
> Edward David
> Sr. Systems Analyst
> University of Calgary
> Information Resources
> Information Technology Service
> ---------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]httpd.apache.org
>
>

--
---------------------------------------------------------------
Edward David
Sr. Systems Analyst
University of Calgary
Information Resources
Information Technology Service
---------------------------------------------------------------


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


bp3965 at sbc

Oct 25, 2005, 11:14 AM

Post #3 of 5 (268 views)
Permalink
RE: Apache 2 child spawn issue [In reply to]

TRY

ServerLimit 20
StartServers 16
MaxClients 250
MaxRequestsPerChild 10000

Balanand Pinni
SBC Services Inc
OBC ,Stl MO





-----Original Message-----
From: Edward David [mailto:edavid[at]ucalgary.ca]
Sent: Tuesday, October 25, 2005 11:48 AM
To: users[at]httpd.apache.org
Subject: [users[at]httpd] Apache 2 child spawn issue

I am getting this message when I run a perl program.
*Resource temporarily unavailable: couldn't create child process:*

I am including my config file parameters:-

##
## Server-Pool Size Regulation (MPM specific)
##

<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 256
MaxRequestsPerChild 10000
</IfModule>

# worker MPM
<IfModule worker.c>
ServerLimit 16
StartServers 3
MaxClients 256
MinSpareThreads 75
MaxSpareThreads 250
ThreadsPerChild 25
MaxRequestsPerChild 10000
</IfModule>

# perchild MPM
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 64
MaxRequestsPerChild 0
</IfModule>

If anyone can see what I am doing wrong please let me know.
My workaround for now is to restart the Apache server.

---------------------------------------------------------------
Edward David
Sr. Systems Analyst
University of Calgary
Information Resources
Information Technology Service
---------------------------------------------------------------


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


Axel-Stephane.SMORGRAV at europe

Oct 26, 2005, 12:54 AM

Post #4 of 5 (261 views)
Permalink
RE: Apache 2 child spawn issue [In reply to]

What MPM are you using ? Do you have the server-status module loaded ? What does it report ?

( /usr/local/apache/bin/httpd -l ??)

-ascs

-----Original Message-----
From: Edward David [mailto:edavid[at]ucalgary.ca]
Sent: Tuesday, October 25, 2005 6:55 PM
To: users[at]httpd.apache.org
Subject: Re: [users[at]httpd] Apache 2 child spawn issue

Sorry I am running Linux AS 4 Enterprise server.
Apache 2.0.54.

Edward David wrote:

> I am getting this message when I run a perl program.
> *Resource temporarily unavailable: couldn't create child process:*
>
> I am including my config file parameters:-
>
> ##
> ## Server-Pool Size Regulation (MPM specific) ##
>
> <IfModule prefork.c>
> StartServers 5
> MinSpareServers 5
> MaxSpareServers 10
> MaxClients 256
> MaxRequestsPerChild 10000
> </IfModule>
>
> # worker MPM
> <IfModule worker.c>
> ServerLimit 16
> StartServers 3
> MaxClients 256
> MinSpareThreads 75
> MaxSpareThreads 250
> ThreadsPerChild 25
> MaxRequestsPerChild 10000
> </IfModule>
>
> # perchild MPM
> <IfModule perchild.c>
> NumServers 5
> StartThreads 5
> MinSpareThreads 5
> MaxSpareThreads 10
> MaxThreadsPerChild 64
> MaxRequestsPerChild 0
> </IfModule>
>
> If anyone can see what I am doing wrong please let me know.
> My workaround for now is to restart the Apache server.
>
> ---------------------------------------------------------------
> Edward David
> Sr. Systems Analyst
> University of Calgary
> Information Resources
> Information Technology Service
> ---------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]httpd.apache.org
>
>

--
---------------------------------------------------------------
Edward David
Sr. Systems Analyst
University of Calgary
Information Resources
Information Technology Service
---------------------------------------------------------------


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


edavid at ucalgary

Oct 26, 2005, 7:59 AM

Post #5 of 5 (254 views)
Permalink
Re: Apache 2 child spawn issue [In reply to]

I just did a check the other day and found I was using prefork.c.
So for production I am stuck with prefork for now.
So any ideas for the child spawn issue.
Our IT department seems to think that prefork is the way to go.
I am currently rebuilding our development server and then seeing about
flipping it over to
worker. Unless there is a reason to go with a different MPM.
Here is my results for httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
util_ldap.c
mod_auth_ldap.c
mod_include.c
mod_deflate.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_proxy.c
proxy_connect.c
proxy_ftp.c
proxy_http.c
mod_ssl.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_info.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_so.c

Edward

Axel-Stéphane SMORGRAV wrote:

>What MPM are you using ? Do you have the server-status module loaded ? What does it report ?
>
>( /usr/local/apache/bin/httpd -l ??)
>
>-ascs
>
>-----Original Message-----
>From: Edward David [mailto:edavid[at]ucalgary.ca]
>Sent: Tuesday, October 25, 2005 6:55 PM
>To: users[at]httpd.apache.org
>Subject: Re: [users[at]httpd] Apache 2 child spawn issue
>
>Sorry I am running Linux AS 4 Enterprise server.
>Apache 2.0.54.
>
>Edward David wrote:
>
>
>
>>I am getting this message when I run a perl program.
>> *Resource temporarily unavailable: couldn't create child process:*
>>
>>I am including my config file parameters:-
>>
>>##
>>## Server-Pool Size Regulation (MPM specific) ##
>>
>><IfModule prefork.c>
>>StartServers 5
>>MinSpareServers 5
>>MaxSpareServers 10
>>MaxClients 256
>>MaxRequestsPerChild 10000
>></IfModule>
>>
>># worker MPM
>><IfModule worker.c>
>>ServerLimit 16
>>StartServers 3
>>MaxClients 256
>>MinSpareThreads 75
>>MaxSpareThreads 250
>>ThreadsPerChild 25
>>MaxRequestsPerChild 10000
>></IfModule>
>>
>># perchild MPM
>><IfModule perchild.c>
>>NumServers 5
>>StartThreads 5
>>MinSpareThreads 5
>>MaxSpareThreads 10
>>MaxThreadsPerChild 64
>>MaxRequestsPerChild 0
>></IfModule>
>>
>>If anyone can see what I am doing wrong please let me know.
>>My workaround for now is to restart the Apache server.
>>
>>---------------------------------------------------------------
>>Edward David
>>Sr. Systems Analyst
>>University of Calgary
>>Information Resources
>>Information Technology Service
>>---------------------------------------------------------------
>>
>>
>>---------------------------------------------------------------------
>>The official User-To-User support forum of the Apache HTTP Server
>>Project.
>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
>> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
>>For additional commands, e-mail: users-help[at]httpd.apache.org
>>
>>
>>
>>
>
>--
>---------------------------------------------------------------
>Edward David
>Sr. Systems Analyst
>University of Calgary
>Information Resources
>Information Technology Service
>---------------------------------------------------------------
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
>For additional commands, e-mail: users-help[at]httpd.apache.org
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
>For additional commands, e-mail: users-help[at]httpd.apache.org
>
>
>
>

--
---------------------------------------------------------------
Edward David
Sr. Systems Analyst
University of Calgary
Information Resources
Information Technology Service
---------------------------------------------------------------


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.