You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/07/31 16:31:29 UTC

DO NOT REPLY [Bug 11331] New: - stale cgi process entries

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11331>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11331

stale cgi process entries

           Summary: stale cgi process entries
           Product: Apache httpd-2.0
           Version: 2.0.39
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: abatko@cs.mcgill.ca


We recently discovered hundreds of stale process entries
in the process table, and they were all cgi programs.

We're running 2.0.39 with suexec.

It seems that EVERY cgi program that's run leaves behind
a process entry.

Below is an example just for one user (abatko):

% ps auxwwww | sort | grep ^abatko | wc -l
     412

# now run a cgi program

% ps auxwwww  | sort | grep ^abatko | wc -l
     413

# now stop/start apache

% apachectl stop
% apachectl start

% ps auxwwww  | sort | grep ^abatko | wc -l
       0

# now run a cgi program

% ps auxwwww  | sort | grep ^abatko | wc -l
       1

# now run another cgi program

% ps auxwwww  | sort | grep ^abatko | wc -l
       2


Here's an example of what the process table looks like
for the two cgi programs run above:

USER      PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED      TIME COMMAND
abatko  26979  0.0  0.0     0    0  ??  Z    10:18AM   0:00.00  (perl)
abatko  26987  0.0  0.0     0    0  ??  Z    10:18AM   0:00.00  (c.cgi)


Please let me know if you need any other information.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org