On Tuesday 29 August 2006 16:59, Fargusson.Alan wrote:
>Each CGI runs in its own process.  Java typically runs in an application
> server like Tomcat or WAS, but it can be run as a CGI.  I think PHP
> actually runs the same way as a CGI.

Yes, but the httpd parent process waits for its children to exit, so that it
can reap them and obtain their exit code.  So httpd should be assigned the
resources used by its CGI children.  It sounds like what is happening is that
some process is exiting without waiting for its children to die first, which
causes such orphans to be inherited by init.  Init patiently waits for the
orphaned processes, and will thus inherit the resource usage data for them.

I can see why cron doesn't want to wait for its children to exit: it could
care less about what they do.  Httpd does care about its children, though it
is certainly possible that those children are not themselves so solicitous
torwards their offspring.
        - MacK.
-----
Edmund R. MacKenty
Software Architect
Rocket Software, Inc.
Newton, MA USA

>-----Original Message-----
>From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of Rob
>van der Heij
>Sent: Tuesday, August 29, 2006 1:18 PM
>To: [email protected]
>Subject: Re: Init process consuming CPU
>
>On 8/29/06, John Summerfied <[EMAIL PROTECTED]> wrote:
>> I imagine whatever's running under httpd (CGI, Java, PHP etc) could
>> contribute to it.
>
>Wouldn't those run inside the httpd child thread itself, rather than
>spawn another thread?
>The httpd parent normally does not terminate so that will inherit all
>usage of the children. My experience is that often cron is the one to
>create a child process and not hang out for it to terminate.
>
>Rob
>--
>Rob van der Heij
>Velocity Software, Inc
>http://velocitysoftware.com/
>
>----------------------------------------------------------------------
>For LINUX-390 subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
> visit http://www.marist.edu/htbin/wlvindex?LINUX-390
>
>----------------------------------------------------------------------
>For LINUX-390 subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
> visit http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to