Apache stops working after awhile - I have to restart it

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache stops working after awhile - I have to restart it

Postby Bidybag » 03. June 2005 15:58

In the task manager i look at the processes and the first problem is that apache is loaded up twice there. Only 1 of the apache processes is doing work tho. The other is just staying there with the same amount of memory and cpu. I have to end the process myself from task manager.

I am using the xampp control panel 2.1 with the service for apache and mysql installed and when i click STOP it doesnt stop. It just carries on saying running and my site doesnt close down. The only way i can close my site down is if i stop the processes in task manager.

If i leave apache on for about a day it suddenly stops working for no reason. My server doesnt crash because everything else works fine. The apache processs is still loaded in the task manager and it still says running on the control panel but for some reason i still cant load my site up. I have to stop the processes in task manager and then start it back up in the control panel for it to work again.

Please somebody help me
Bidybag
 
Posts: 9
Joined: 03. June 2005 15:53

Postby bobobo » 06. June 2005 09:47

2 Processes are ok for Apache.

If Apache & Co is installed as service the control-panel always show a RUNNING after hitting the refresh.


For casually hangs of Apache you can restart Apache, Mysql ,... with using of some restart-batchfiles (take the stop and start batches as hint how to do a apache restart by batch) placed in the scheduler with suitable scheduled times.
User avatar
bobobo
 
Posts: 19
Joined: 12. December 2003 10:22
Location: 89275

Postby Bidybag » 07. June 2005 07:54

So the only way i can make apache work all the time is if i make it restart everyday?

What if the server is down or nobody is logged on at the time it runs the batch file? Will it run it when the server boots back up?
Bidybag
 
Posts: 9
Joined: 03. June 2005 15:53

Postby Bidybag » 07. June 2005 17:39

Well i use apache_stop.bat in xampp folder and apache still works. So i can use a batch file to make it stop and start.

Can somebody help me?
Bidybag
 
Posts: 9
Joined: 03. June 2005 15:53

Postby Dave_L » 07. June 2005 17:48

Are there any relevant messages in the Apache error or access logs (apache/logs/error.log, apache/logs/access.log), or the Windows event log?
User avatar
Dave_L
 
Posts: 212
Joined: 23. October 2004 00:43

Postby Bidybag » 07. June 2005 20:58

No because apache does not crash. It stays loaded but it like goes to sleep when it wants to and my site stops working.
Bidybag
 
Posts: 9
Joined: 03. June 2005 15:53

Postby Bidybag » 08. June 2005 17:15

...
Last edited by Bidybag on 09. June 2005 20:46, edited 1 time in total.
Bidybag
 
Posts: 9
Joined: 03. June 2005 15:53

Postby Bidybag » 08. June 2005 21:30

Ok i think this might mean something. I got it from my apache error log file:

[712] EACCELERATOR: PHP crashed on opline 1 of main() at C:\apachefriends\xampp\xampp\htdocs\skin_cache\cacheid_2\skin_stats.php:0

[Wed Jun 08 21:19:58 2005] [error] Parent: child process exited with status 3 -- Aborting.
[Wed Jun 08 21:20:01 2005] [notice] Apache/2.0.53 (Win32) PHP/5.0.4 mod_ssl/2.0.53 OpenSSL/0.9.7f mod_perl/1.999.21 Perl/v5.8.6 configured -- resuming normal operations
[Wed Jun 08 21:20:01 2005] [notice] Server built: Apr 8 2005 10:55:39
[Wed Jun 08 21:20:01 2005] [notice] Parent: Created child process 2860
[Wed Jun 08 21:20:09 2005] [notice] Child 2860: Child process is running
[Wed Jun 08 21:20:09 2005] [notice] Child 2860: Acquired the start mutex.
[Wed Jun 08 21:20:09 2005] [notice] Child 2860: Starting 250 worker threads.
[Wed Jun 08 21:25:43 2005] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed Jun 08 21:25:44 2005] [notice] Child 2860: Exit event signaled. Child process is ending.
[Wed Jun 08 21:25:45 2005] [notice] Child 2860: Released the start mutex
[Wed Jun 08 21:25:45 2005] [notice] Child 2860: Waiting for 0 worker threads to exit.
[Wed Jun 08 21:25:45 2005] [notice] Child 2860: All worker threads have exited.
[Wed Jun 08 21:25:45 2005] [notice] Child 2860: Child process is exiting
[Wed Jun 08 21:26:13 2005] [notice] Parent: Forcing termination of child process 452
[Wed Jun 08 21:26:26 2005] [notice] Apache/2.0.53 (Win32) PHP/5.0.4 mod_ssl/2.0.53 OpenSSL/0.9.7f mod_perl/1.999.21 Perl/v5.8.6 configured -- resuming normal operations
[Wed Jun 08 21:26:26 2005] [notice] Server built: Apr 8 2005 10:55:39
[Wed Jun 08 21:26:26 2005] [notice] Parent: Created child process 2140
[Wed Jun 08 21:26:34 2005] [notice] Child 2140: Child process is running
[Wed Jun 08 21:26:34 2005] [notice] Child 2140: Acquired the start mutex.
[Wed Jun 08 21:26:34 2005] [notice] Child 2140: Starting 250 worker threads.
Bidybag
 
Posts: 9
Joined: 03. June 2005 15:53

Postby scebbrell » 11. June 2005 02:56

When you run Apache as a service if you stop the service eaccelerator gives a memory access error, there is obviously a problem with it.
Comment out the eaccelerator lines at the bottom of the php.ini file and see if that solves your problem.
Hopefully a fix will appear in a later version.
scebbrell
 
Posts: 19
Joined: 27. April 2004 14:43
Location: Oldham, UK.

Postby Gurney » 13. September 2005 20:24

I've the same problem... Apache stops working after a few days.

Any solution yet ? I'm running gallery, and eAccelerator is quite useful for this application, and it would be a shame to desactivate it ^^...

Thanks.
Gurney
 
Posts: 2
Joined: 21. August 2005 21:25
Location: France


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 46 guests