Jump to content

Apache Crashing on Loading Large Datasets


moagrius

Recommended Posts

Hi,

 

I've got a web app that works fine on 2 different web hosts.  I installed it locally, and for the most part it works fine as well - however, when loading large datasets (from a mysql DB, using PHP), Apache crashes (then restarts immediately).

 

This is pretty consistent - I can predict which requests will crash Apache and which one's will not.

 

No errors are logged from PHP or Apache (the error.log does update normally, but not when this happens).

 

Windows gives the following error details:

 

  Problem Event Name: APPCRASH

  Application Name: httpd.exe

  Application Version: 2.2.11.0

  Application Timestamp: 493f5d44

  Fault Module Name: php5ts.dll

 

From the last line, it looks like the problem is with PHP - I checked php.ini for any particularly short timeout directives or script memory allotments, and don't notice anything - any suggestions?

Link to comment
Share on other sites

php crashing when doing something that relies on a specific extension generally indicates that you have a mix of files from different php versions. Any chance you updated php but did not update all the files in the php root folder and the ext folder and/or you previously copied some files to the Windows folder but did not also update those?

Link to comment
Share on other sites

Thanks for the quick reply.

 

I've only ever installed one version of PHP on this machine.  I'm only guessing the problem is with PHP because of Fault Module Name - but it's actually Apache that crashes.

 

The app has several requests that are all very similiar - polling a mysql DB and echoing out the results.  What's strange to me is that all the requests that have "small" data sets returned work fine.  The 2 largest requests (one selecting from a table with 1800 rows, the other from a table with 4000 rows) are the ones that break.  Also strange is that all pages have a limit of 100 rows returned in the sql query.  And, it doesn't appear to be a timeout error - it doesn't hang long at all before crashing - maybe 3-5 seconds.

 

Possibly should have mentioned - I'm on Vista, Apache 2.2, PHP 5.3, MySQL 5.0.5

 

Have had the Apache/PHP/SQL installed for at least a few months and never had a problem before.

 

TYIA

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.