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: How to create Dump file for Apache Crash in Windows.
Author
prmjit



Joined: 19 Jun 2014
Posts: 9
Location: India, Mumbai

PostPosted: Thu 19 Jun '14 14:35    Post subject: How to create Dump file for Apache Crash in Windows. Reply with quote

Hi,

Please guide me how to create Dump File for Apache Crash in Windows.
We are using Apache for Reverse Proxy with OpenAM Module for Sign-in.

Apache Version : 2.4.9.0

We are very frequently facing Apache Crash Issue.

Also in logs we do not get much information.
when submitted logs to ForgeRock, they asked us to look into below error and provide Crash Dump.

[Sun Jun 15 23:00:10.153908 2014] [mpm_winnt:warn] [pid 2376:tid 424] (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed.
[Sun Jun 15 23:02:21.609557 2014] [proxy_http:error] [pid 2376:tid 6544] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : [client 10.XXX.XX.XX:XXXX] AH01095: prefetch request body failed to XX.XXX.XX.XX:XXX (teampark.sogeti.com) from XX.XXX.XX.XX (), referer: https://teampark.sogeti.com/blogs/roller-ui/authoring/weblog.do?method=create&weblog=VeckobrevIntegrationSyd&lang=sv_se
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Thu 19 Jun '14 14:52    Post subject: Reply with quote

I see in your log: winnt_accept: Asynchronous AcceptEx failed

When you have hangs, slow traffic and/or when having in your log entries like Asynchronous AcceptEx failed. You can try the following settings:

AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off


Steffen
Back to top
prmjit



Joined: 19 Jun 2014
Posts: 9
Location: India, Mumbai

PostPosted: Fri 20 Jun '14 12:10    Post subject: Reply with quote

Thanks Steffen for the update.
Can you please guide me how to generate crash dump for Apache in Windows environment.

I have updated the httpd.conf with this entry but
CoreDumpDirectory c:/Apache24/logs

But no dumps were created when Apache got crashed.


below is the entry from error.log

[Fri Jun 20 11:22:11.020006 2014] [mpm_winnt:warn] [pid 5900:tid 7776] (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed.
[Fri Jun 20 11:49:22.520081 2014] [mpm_winnt:warn] [pid 5900:tid 6540] (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed.
The Apache2.4 service is restarting.
The Apache2.4 service has restarted.



Please guide us to generate Crash Dump.
Back to top
James Blond
Moderator


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

PostPosted: Fri 20 Jun '14 12:12    Post subject: Reply with quote

prmjit wrote:

Please guide us to generate Crash Dump.


There is a how to http://httpd.apache.org/dev/debugging.html

Also you may look into the Windows event log
Back to top
prmjit



Joined: 19 Jun 2014
Posts: 9
Location: India, Mumbai

PostPosted: Mon 23 Jun '14 11:17    Post subject: Reply with quote

Still not sure how to get crash dumps.
In Windows i need to generate crash dump for Apache Sad Sad
Back to top
prmjit



Joined: 19 Jun 2014
Posts: 9
Location: India, Mumbai

PostPosted: Mon 23 Jun '14 11:19    Post subject: Reply with quote

We are using Apache in our PROD environment.
What will be the effect of above changes, also just need to put the above as it is in the httpd.conf file or need to update more.
Back to top
James Blond
Moderator


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

PostPosted: Mon 23 Jun '14 11:21    Post subject: Reply with quote

prmjit wrote:
Still not sure how to get crash dumps.
In Windows i need to generate crash dump for Apache Sad Sad


As far as I know Apache doesn't do that on Windows (if some one knows better, please correct me).
That is why I gave you the link to the debugging page with Getting a live backtrace on Windows.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Mon 23 Jun '14 11:34    Post subject: Reply with quote

prmjit wrote:
What will be the effect of above changes, also just need to put the above as it is in the httpd.conf file or need to update more.


Effect is:
Solves issues on windows like hangs, slow traffic and/or when having in your log entries like Asynchronous AcceptEx failed. Just put it only in your httpd.conf.

Anything in the Windows event log ?

Btw. I think it is the best to discuss with ForgeRock, how to get a crash dump they want.
Back to top
covener



Joined: 23 Nov 2008
Posts: 59

PostPosted: Mon 23 Jun '14 13:40    Post subject: Reply with quote

Here's what we suggest at IBM for preparing for a crash (= making sure you get a dump) on Windows: May take some tweaking and cross-checking with other articles, I recall it is not yet 100%.

http://publib.boulder.ibm.com/httpserv/ihsdiag/win32_tools_doc.html
Back to top
prmjit



Joined: 19 Jun 2014
Posts: 9
Location: India, Mumbai

PostPosted: Thu 26 Jun '14 9:05    Post subject: Reply with quote

Can you please check with ForgeRock about how to get the crash dump for Apache in Windows.

PFA… vendor’s reply…



It contains a link for crash dump on windows application in general:
Please follow this link: http://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx
DumpType should be set to 2. We do need this dump files as there isn't significant information in the other logs.



But still we are not getting the necessary dumps.
Back to top


Reply to topic   Topic: How to create Dump file for Apache Crash in Windows. View previous topic :: View next topic
Post new topic   Forum Index -> Apache