logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: apache 2.4.3 idle httpd.exe procedure and not exit automatic Page 1, 2  Next
Author
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Sat 25 Aug '12 0:32    Post subject: apache 2.4.3 idle httpd.exe procedure and not exit automatic Reply with quote

After restart apache2.4.3,the httpd.exe procedure will add one procedure.

And,if stop apache service,the httpd.exe procedure doesn't exit.You can monitor via windows task procedure monitor.

How to solve this bug? Smile
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Sat 25 Aug '12 1:56    Post subject: Reply with quote

Can't reproduce this. If the process is in use (serving content to a user, maybe huge file download?) I could imagine it not stopping till that is done.
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Sat 25 Aug '12 3:16    Post subject: Reply with quote

gl,

My OS is win2003 server.

You can reproduce that.
I try that at the light or less loading time of the apache server serveral times.

1.open win task monitor window
2.restart apache
3.You can see there are four httpd.exe procedure at task monitor window.
4.If you stop apache,the httpd.exe exists still for a long time.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sun 26 Aug '12 12:44    Post subject: Reply with quote

maskego wrote:

3.You can see there are four httpd.exe procedure at task monitor window.


4 processes? There can be only 2 unless you run 2 instaces on different ports.
With mod fcgid 2.3.6 I had the issue that 1 of the 2 procces of httpd did not die because of the faulty mod fcgid. With the bug fix in 2.3.7 it is gone (linux and windows)
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Mon 27 Aug '12 7:34    Post subject: Reply with quote

I use mod_fcgid 2.3.7 for apache 2.4.x downloaded from apachelounge.

But,the httpd.exe can't exit automatic after restart .It leaves 2 procedures still.

Maybe the mod_fcgid2.3.6's issue comes back again?I try two or more machine that all run apache2.4.x and mod_fcgid 2.3.7.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Mon 27 Aug '12 8:31    Post subject: Reply with quote

maskego wrote:
Maybe the mod_fcgid2.3.6's issue comes back again?


Doubtful, but in 2.3.7 there is a secondary new feature for killing processes. Of course they have to be processes started by mod_fcgid.

changelog wrote:
Introduce FcgidWin32PreventOrphans directive on Windows to use OS Job Control Objects to terminate all running fcgi's when the worker process has been abruptly terminated.


I think it's just On or Off, it's off by default so
FcgidWin32PreventOrphans On
would turn it on.
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Mon 27 Aug '12 13:08    Post subject: Reply with quote

gl,

I mean that httpd.exe can't exit automatic,not mean to php-cgi.exe

When I restart apache2.4.3,the httpd.exe is still left one or two procedures at task window.The numbers of httpd.exe will increase to 4 procedures.

The other side,I make a test to stop the apache service manually,I find the win task manager,there is one or two httpd.exe is left never exit finally.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 30 Aug '12 13:26    Post subject: Reply with quote

The not ending php-cgi process can make that the httpd.exe process does not finish.

Did you try the FcgidWin32PreventOrphans On ?
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Fri 31 Aug '12 1:56    Post subject: Reply with quote

Thank both.

I will try to add this directive to conf to monitor it. Smile
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Fri 31 Aug '12 7:20    Post subject: Reply with quote

This issue occurs still after adding FcgidWin32PreventOrphans On.

The error message is :"failed application httpd.exe,2.4.3 version,failed module libapr-1.dll."

What does stop httpd.exe exit after restart apache?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 31 Aug '12 20:45    Post subject: Reply with quote

Bad module maybe? Try without any third party modules. Still happen?
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Sat 01 Sep '12 8:02    Post subject: Reply with quote

I will try to stop modules step by step.

Last edited by maskego on Tue 04 Sep '12 5:08; edited 1 time in total
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Sat 01 Sep '12 9:21    Post subject: Reply with quote

Is it possible to upgrade to mod_fcgid2.3.8 to solve this issue?https://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk/CHANGES-FCGID
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Tue 04 Sep '12 4:10    Post subject: Reply with quote

Doubtful..

I can't image why does the cpu usage increasing to 13% while the httpd.exe process becomes idle at task manager.Then,the error shows.I can't visit the webpage at that time.

Rolling Eyes
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Tue 04 Sep '12 9:26    Post subject: Reply with quote

I can't find any mod_fcgid patch to fix module libapr-1.dll failed.

Last edited by maskego on Wed 05 Sep '12 4:42; edited 1 time in total
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Wed 05 Sep '12 4:35    Post subject: Reply with quote

Nightmare again.

Faulting application httpd.exe, version 2.4.3.0, faulting module libapr-1.dll, version 1.4.6.0, fault address 0x00013583.

I hope it's not memory leak..

Is it possible to recompile mod_fcgid.so to solve memory leak?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 05 Sep '12 6:55    Post subject: Reply with quote

I see nothing pointing to mod_fcgid in that error. When mod_fcgid barfs, it usually shows;

Faulting application httpd.exe, version 2.2.17.0, time stamp 0x4cc68b7f, faulting module mod_fcgid.236.so, version 2.3.6.200, time stamp 0x4cd30355, exception code 0xc0000005, fault offset 0x00004b82, process id 0xc6c, application start time 0x01cb850aada19a87.

I see libapr-1.dll in that error. It could be any one of hundreds of things since apr handles so much. All disk access, memory access, you name it, it's apr handling it.

google up the exception code and see what that tells you.
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Wed 05 Sep '12 7:32    Post subject: Reply with quote

After I change to use AH"s mod_fcgid.so,here is the error message again.
Code:
Faulting application httpd.exe, version 2.4.3.0, faulting module ntdll.dll, version 5.2.3790.4937, fault address 0x0004ce5a.


I google the "fault address 0x0004ce5a",But can't find it.

Before,I use apachelounge's mod_fcgid.so,I get "Faulting application httpd.exe, version 2.4.3.0, faulting module libapr-1.dll, version 1.4.6.0, fault address 0x00013583" message.

I don't install more modules.
I just install mod_antiloris,mod_security,mod_fcgid those third party modules only.

The strange thins is that I can't find error message at apache error.log.

I can't explain why does the fault messages appear after change two kind of mod_fcgid.so only. Smile
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Thu 06 Sep '12 1:41    Post subject: Reply with quote

I reproduce this issue from win7 randomly.It occurs at win2003 server sp2 too.But,it doesn't occur at win xp sp3.

The image link here.



Many httpd.exe(apache2.4.3)processes idle there,and no respond to phpinfo.php with the increasing idle process after several times restart.

I have added those directives.
Code:
<IfModule mpm_winnt_module>
ThreadsPerChild 150
MaxRequestsPerChild 0
</IfModule>

AcceptFilter https none
AcceptFilter http none
EnableSendfile Off
EnableMMAP off


The issue exists still.

Anyone can help me,please?
best regards


Last edited by maskego on Thu 06 Sep '12 2:24; edited 2 times in total
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Thu 06 Sep '12 2:05    Post subject: Reply with quote

This is what I install modules,mostly is default.

Code:

LoadModule cache_socache_module modules/mod_cache_socache.so
LoadModule fcgid_module modules/mod_fcgid.so
LoadModule antiloris_module modules/mod_antiloris.so
LoadModule security2_module modules/mod_security2/mod_security2.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cache_module modules/mod_cache.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule socache_memcache_module modules/mod_socache_memcache.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule unique_id_module modules/mod_unique_id.so
Back to top


Reply to topic   Topic: apache 2.4.3 idle httpd.exe procedure and not exit automatic View previous topic :: View next topic
Post new topic   Forum Index -> Apache Page 1, 2  Next