Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

Restarting or Stopping HTTPD.exe / A2T Causes crash.
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> Apache2Triad Bugs
View previous topic :: View next topic  
Author Message
fossilk



Joined: 08 Feb 2007
Posts: 1

Posted: Thu Feb 08, 2007 11:41 pm    Post subject: Restarting or Stopping HTTPD.exe / A2T Causes crash.  

Hi everyone! thanks for checking this topic.

Restarting or Stopping HTTPD.exe / A2T Causes crash.
HTTD takes a lot of memory on my server

Server details...
XP PRO SP2 + all updates.
1G ram.
Apache2Triad version 1.5.4 readme list
Apache version 2.2.0
MySQL version 5.0.18
Openssl version 0.9.8a
Slimftpd version 3.18
Xmail version 1.22
Perl version 5.8.7
PHP version 5.1.2
Python version 2.3.5

if let alone it takes ALL ram so i have tried

restarting the services with task scheduler in diferent orders.

httpd.conf
ThreadsPerChild 64
MaxRequestsPerChild 1000
MaxMemFree 1000

when restarted OR "MAX" reached in this item HTTD.exe crashes with with following info recorded on the logs:
windows application log:
Faulting application httpd.exe, version 2.2.0.0, faulting module php_mysql.dll, version 5.1.2.2, fault address 0x000011e7.

logs/error.log :
[Thu Feb 08 16:07:06 2007] [notice] Apache/2.2.0 (Win32) PHP/5.1.2 mod_ssl/2.2.0 OpenSSL/0.9.8a configured -- resuming normal operations
[Thu Feb 08 16:07:06 2007] [notice] Server built: Dec 11 2005 20:34:33
[Thu Feb 08 16:07:06 2007] [notice] Parent: Created child process 2640
[Thu Feb 08 16:07:09 2007] [notice] Child 2640: Child process is running
[Thu Feb 08 16:07:09 2007] [notice] Child 2640: Acquired the start mutex.
[Thu Feb 08 16:07:09 2007] [notice] Child 2640: Starting 64 worker threads.
[Thu Feb 08 16:07:09 2007] [notice] Child 2640: Starting thread to listen on port 443.
[Thu Feb 08 16:07:09 2007] [notice] Child 2640: Starting thread to listen on port 9000.
[Thu Feb 08 16:07:09 2007] [notice] Child 2640: Starting thread to listen on port 80.
[Thu Feb 08 17:45:45 2007] [notice] Apache/2.2.0 (Win32) PHP/5.1.2 mod_ssl/2.2.0 OpenSSL/0.9.8a configured -- resuming normal operations
[Thu Feb 08 17:45:45 2007] [notice] Server built: Dec 11 2005 20:34:33
[Thu Feb 08 17:45:45 2007] [notice] Parent: Created child process 1980
[Thu Feb 08 17:45:48 2007] [notice] Child 1980: Child process is running
[Thu Feb 08 17:45:49 2007] [notice] Child 1980: Acquired the start mutex.
[Thu Feb 08 17:45:49 2007] [notice] Child 1980: Starting 64 worker threads.
[Thu Feb 08 17:45:49 2007] [notice] Child 1980: Starting thread to listen on port 443.
[Thu Feb 08 17:45:49 2007] [notice] Child 1980: Starting thread to listen on port 9000.
[Thu Feb 08 17:45:49 2007] [notice] Child 1980: Starting thread to listen on port 80.
[Thu Feb 08 17:53:18 2007] [notice] Child 1980: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Thu Feb 08 17:53:18 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Feb 08 17:53:18 2007] [warn] (OS 10038)An operation was attempted on something that is not a socket. : setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed.
[Thu Feb 08 17:53:19 2007] [notice] Child 1980: Released the start mutex
[Thu Feb 08 17:53:19 2007] [notice] Apache/2.2.0 (Win32) PHP/5.1.2 mod_ssl/2.2.0 OpenSSL/0.9.8a configured -- resuming normal operations
[Thu Feb 08 17:53:19 2007] [notice] Server built: Dec 11 2005 20:34:33
[Thu Feb 08 17:53:20 2007] [notice] Parent: Created child process 676
[Thu Feb 08 17:53:20 2007] [notice] Child 1980: Waiting for 64 worker threads to exit.
[Thu Feb 08 17:53:20 2007] [notice] Child 1980: All worker threads have exited.
[Thu Feb 08 17:53:20 2007] [notice] Child 1980: Child process is exiting
[Thu Feb 08 17:53:22 2007] [notice] Child 676: Child process is running
[Thu Feb 08 17:53:22 2007] [notice] Child 676: Acquired the start mutex.
[Thu Feb 08 17:53:22 2007] [notice] Child 676: Starting 64 worker threads.
[Thu Feb 08 17:53:22 2007] [notice] Child 676: Starting thread to listen on port 443.
[Thu Feb 08 17:53:22 2007] [notice] Child 676: Starting thread to listen on port 9000.
[Thu Feb 08 17:53:22 2007] [notice] Child 676: Starting thread to listen on port 80.
[Thu Feb 08 17:53:51 2007] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
[Thu Feb 08 17:54:11 2007] [notice] Child 676: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Thu Feb 08 17:54:11 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Feb 08 17:54:11 2007] [notice] Apache/2.2.0 (Win32) PHP/5.1.2 mod_ssl/2.2.0 OpenSSL/0.9.8a configured -- resuming normal operations
[Thu Feb 08 17:54:11 2007] [notice] Server built: Dec 11 2005 20:34:33
[Thu Feb 08 17:54:11 2007] [notice] Parent: Created child process 2216
[Thu Feb 08 17:54:12 2007] [notice] Child 676: Released the start mutex
[Thu Feb 08 17:54:13 2007] [notice] Child 676: Waiting for 64 worker threads to exit.
[Thu Feb 08 17:54:14 2007] [notice] Child 676: All worker threads have exited.
[Thu Feb 08 17:54:14 2007] [notice] Child 676: Child process is exiting
[Thu Feb 08 17:54:14 2007] [notice] Child 2216: Child process is running
[Thu Feb 08 17:54:14 2007] [notice] Child 2216: Acquired the start mutex.
[Thu Feb 08 17:54:14 2007] [notice] Child 2216: Starting 64 worker threads.
[Thu Feb 08 17:54:14 2007] [notice] Child 2216: Starting thread to listen on port 443.
[Thu Feb 08 17:54:14 2007] [notice] Child 2216: Starting thread to listen on port 9000.
[Thu Feb 08 17:54:14 2007] [notice] Child 2216: Starting thread to listen on port 80.
[Thu Feb 08 17:58:11 2007] [notice] Child 2216: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Thu Feb 08 17:58:11 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Feb 08 17:58:11 2007] [warn] (OS 10038)An operation was attempted on something that is not a socket. : setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed.
[Thu Feb 08 17:58:11 2007] [notice] Apache/2.2.0 (Win32) PHP/5.1.2 mod_ssl/2.2.0 OpenSSL/0.9.8a configured -- resuming normal operations

a new HTTPD starts with no problem BUT old one remains open and locks memory until I click ok on the windows "crash report".


thanks for any input!
Back to top  
Vlad Alexa Mancini



Joined: 07 Jul 2003
Posts: 1539

Posted: Fri Mar 16, 2007 12:06 pm    Post subject:  

there are 2 bugs that cause this :

1 - apache (platform independent) bug where it gradually allocates all the memory , can be caused by a apache module or addon and even a script
2 - windows apache bug where the threads die attempting a restart when max is reached
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> Apache2Triad Bugs
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group