httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Aimar <>
Subject Re: [users@httpd] long process
Date Thu, 17 Feb 2011 11:06:07 GMT
> ---- Original Message -----
>> Hy,
>> I've this long process.
>> wwwrun   29503 99.3  0.6 311160 27808 ?        R    Feb15 1151:58
>> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
> What does long process mean?
> Is the command line too long? Or do you mean that the process has been running
> for too long now? 2 days isn't particularly long if this were the *parent*
> process. If it isn't well.. that's a different case.

Parent process it's alive.
This long process it's up from 2575 minutes.

>> It use high cpu from many hours.
>> How I can see which it a causes/script which running?
> What does strace say?
> What does mod_status say?
> What is the server doing in general which would give us a hint of
> what *could* be going on? -- Does it proxy? Run CGI? mod_php?
> Does it serve and receive Dav on an SSL line, handling gzip
> inflate  and deflate? etc....
> Please realize that Apache httpd is a multipurpose server. So
> a `ps` line doesn't tell us *anything* about what it's doing.

If I run this command
#strace -p 29503
the output it's this 
>>Process 29503 attached - interrupt to quit
and not change after 1 hours (seems to do nothing).

mod_status now is not enabled and If I would enable, I do restart and kill the process.
Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 actions_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_host_module (shared)
 authz_groupfile_module (shared)
 authz_default_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 dir_module (shared)
 env_module (shared)
 expires_module (shared)
 include_module (shared)
 log_config_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 setenvif_module (shared)
 ssl_module (shared)
 userdir_module (shared)
 php5_module (shared)
 deflate_module (shared)
 rewrite_module (shared)

This server it's used like web server for php pages and webmail which open imap locally.
I think which problem could be a webmail+imap beacause netstat report port 143 but I'm not

>> which netstat I see which this process it's in CLOSE_WAIT
>> tcp        0      0 ::1:51504               ::1:143
>>                CLOSE_WAIT  29503/httpd2-prefor
> This on the other hand is more interesting.
> Has this been there for as long as the process?

Yes. After one day netstat have same output
tcp        0      0 ::1:51504               ::1:143                 CLOSE_WAIT  29503/httpd2-prefor

> Also note that the connection IP is ::1 -- could this
> just be the internal dummy connection? Or is this you?
I don't know if it's one my php script of one internal dummy connection. How I can verify

Thank you and sorry for my English, Marco

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message