Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Restarting Apache |
|
Author |
|
Thog
Joined: 12 Feb 2007 Posts: 75 Location: Montreal
|
Posted: Sun 17 Feb '08 18:39 Post subject: Restarting Apache |
|
|
Terminating 77 threads that failed to exit. <-- Threads getting stuck... Anyone else having this problem???
---
[Sun Feb 17 11:34:14 2008] [notice] Parent: Received restart signal -- Restarting the server.
[Sun Feb 17 11:34:15 2008] [notice] Child 4876: Exit event signaled. Child process is ending.
[Sun Feb 17 11:34:16 2008] [notice] Child 4876: Released the start mutex
[Sun Feb 17 11:34:29 2008] [notice] Child 4876: Terminating 77 threads that failed to exit.
[Sun Feb 17 11:34:29 2008] [notice] Child 4876: All worker threads have exited.
[Sun Feb 17 11:35:11 2008] [notice] Apache/2.2.8 (Win32) mod_ssl/2.2.8 OpenSSL/0.9.8g PHP/5.2.5 configured -- resuming normal operations
[Sun Feb 17 11:35:11 2008] [notice] Server built: Jan 10 2008 19:57:10
[Sun Feb 17 11:35:11 2008] [notice] Parent: Created child process 7760
[Sun Feb 17 11:35:16 2008] [notice] Child 4876: Child process is exiting
[Sun Feb 17 11:35:16 2008] [notice] Child 7760: Child process is running
[Sun Feb 17 11:35:16 2008] [notice] Child 7760: Acquired the start mutex.
[Sun Feb 17 11:35:16 2008] [notice] Child 7760: Starting 500 worker threads. |
|
Back to top |
|
Thog
Joined: 12 Feb 2007 Posts: 75 Location: Montreal
|
Posted: Fri 22 Feb '08 19:09 Post subject: |
|
|
I have a feeling all these threads which failed to exit cause problems... No one else gets this ever??? Terminating 101 threads that failed to exit. <-- This is a lot of threads that failed to exit!!!!
--->
[Fri Feb 22 12:07:15 2008] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Feb 22 12:07:15 2008] [notice] Child 4304: Exit event signaled. Child process is ending.
[Fri Feb 22 12:07:15 2008] [warn] (OS 10038)An operation was attempted on something that is not a socket. : setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed.
[Fri Feb 22 12:07:16 2008] [notice] Child 4304: Released the start mutex
[Fri Feb 22 12:07:17 2008] [notice] Child 4304: Terminating 101 threads that failed to exit.
[Fri Feb 22 12:07:17 2008] [notice] Child 4304: All worker threads have exited. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 22 Feb '08 20:09 Post subject: |
|
|
which OS do you use? which version of apache? Any thirdparty modules? See the Forum Rules
Without any further information it is not easy to help. |
|
Back to top |
|
Thog
Joined: 12 Feb 2007 Posts: 75 Location: Montreal
|
Posted: Fri 22 Feb '08 21:52 Post subject: |
|
|
Apache 2.2.8 From Here
PHP 5.2.5 From PHP.NET
MySQL 5.0.54 From Here
No Third Party Modules...
Enabled Modules:
php_curl.dll, php_gd2.dll, php_mbstring.dll, php_mcrypt.dll, php_mhash.dll, php_mysql.dll, php_mysqli.dll, php_openssl.dll, php_zip.dll, php_exif.dll
ThreadsPerChild 500
MaxRequestsPerChild 500
No windows options turned on (Apache uses too much memory if they are):
#EnableMMAP off
#EnableSendfile off
#Win32DisableAcceptEx
Everything else is default... No virus scanner or anything else running. No other weird errors. But when enough threads do not exit, I get memory issues... And I have to turn off and on apache to fix it... Here is what the logs claim... Obviously a big memory leak somewhere... Here is the error.log errors when that happens (* 1000's)
Out of memory (Needed 2049240 bytes)
Out of memory (Needed 2170392 bytes)
Out of memory (Needed 2113688 bytes)
Out of memory (Needed 2052103 bytes)
PHP and Apache work together cause I host other people's sites and it's good to have the open_basedir in effect. When I did run as fastcgi I noticed PHP.exe threads appearing and never disapearing (same idea)... They would just be stuck... Never end... |
|
Back to top |
|
|
|
|
|
|