In windows, apache often gets stuck and often gets stuck. What should I do?
Error log
[Sun Feb 03 18:16:09 2013] [notice] Child 4200: All worker threads have exited.
[Sun Feb 03 18:16:15 2013] [notice] Child 4200: Child process is exiting
[Sun Feb 03 18:18:35 2013] [notice] Parent: specified Ed shutdown signal -- Shutting down the server.
[Sun Feb 03 18:18:35 2013] [notice] Child 4056: Exit event signaled. Child process is ending.
[Sun Feb 03 18:18:36 2013] [notice] Child 4056: Released the start mutex
[Sun Feb 03 18:19:05 2013] [notice] Parent: Forcing termination of child process 1f4
[Sun Feb 03 18:19:18 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:19:18 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:19:18 2013] [notice] Parent: Created child process 5980
[Sun Feb 03 18:19:18 2013] [notice] Disabled use of AcceptEx () WinSock2 API
[Sun Feb 03 18:19:19 2013] [notice] Child 5980: Child process is running
[Sun Feb 03 18:19:19 2013] [notice] Child 5980: Acquired the start mutex.
[Sun Feb 03 18:19:19 2013] [notice] Child 5980: Starting 120 worker threads.
[Sun Feb 03 18:19:19 2013] [notice] Child 5980: Listening on port 80.
[Sun Feb 03 18:23:27 2013] [notice] Child 5980: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Sun Feb 03 18:23:27 2013] [notice] Parent: specified Ed restart signal -- Restarting the server.
[Sun Feb 03 18:23:28 2013] [notice] Child 5980: Released the start mutex
[Sun Feb 03 18:23:28 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:23:28 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:23:28 2013] [notice] Parent: Created child process 5324
[Sun Feb 03 18:23:28 2013] [notice] Disabled use of AcceptEx () WinSock2 API
[Sun Feb 03 18:23:29 2013] [notice] Child 5324: Child process is running
[Sun Feb 03 18:23:29 2013] [notice] Child 5324: Acquired the start mutex.
[Sun Feb 03 18:23:29 2013] [notice] Child 5324: Starting 120 worker threads.
[Sun Feb 03 18:23:29 2013] [notice] Child 5324: Listening on port 80.
[Sun Feb 03 18:23:34 2013] [notice] Child 5980: All worker threads have exited.
[Sun Feb 03 18:23:39 2013] [notice] Child 5980: Child process is exiting
[Sun Feb 03 18:30:28 2013] [notice] Child 5324: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Sun Feb 03 18:30:28 2013] [notice] Parent: specified Ed restart signal -- Restarting the server.
[Sun Feb 03 18:30:29 2013] [notice] Child 5324: Released the start mutex
[Sun Feb 03 18:30:30 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:30:30 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:30:30 2013] [notice] Parent: Created child process 5508
[Sun Feb 03 18:30:30 2013] [notice] Disabled use of AcceptEx () WinSock2 API
[Sun Feb 03 18:30:30 2013] [notice] Child 5508: Child process is running
[Sun Feb 03 18:30:30 2013] [notice] Child 5508: Acquired the start mutex.
[Sun Feb 03 18:30:30 2013] [notice] Child 5508: Starting 120 worker threads.
[Sun Feb 03 18:30:30 2013] [notice] Child 5508: Listening on port 80.
[Sun Feb 03 18:30:33 2013] [notice] Child 5324: All worker threads have exited.
[Sun Feb 03 18:30:34 2013] [notice] Child 5324: Child process is exiting
[Sun Feb 03 18:34:41 2013] [notice] Child 5508: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Sun Feb 03 18:34:41 2013] [notice] Parent: specified Ed restart signal -- Restarting the server.
[Sun Feb 03 18:34:41 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:34:41 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:34:41 2013] [notice] Parent: Created child process 1056
[Sun Feb 03 18:34:41 2013] [notice] Disabled use of AcceptEx () WinSock2 API
[Sun Feb 03 18:34:43 2013] [notice] Child 5508: Released the start mutex
[Sun Feb 03 18:34:45 2013] [notice] Child 1056: Child process is running
[Sun Feb 03 18:34:45 2013] [notice] Child 1056: Acquired the start mutex.
[Sun Feb 03 18:34:45 2013] [notice] Child 1056: Starting 120 worker threads.
[Sun Feb 03 18:34:45 2013] [notice] Child 1056: Listening on port 80.
[Sun Feb 03 18:34:49 2013] [notice] Child 5508: All worker threads have exited.
[Sun Feb 03 18:34:55 2013] [notice] Child 5508: Child process is exiting
[Sun Feb 03 18:40:05 2013] [notice] Child 1056: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Sun Feb 03 18:40:05 2013] [notice] Parent: specified Ed restart signal -- Restarting the server.
[Sun Feb 03 18:40:06 2013] [notice] Child 1056: Released the start mutex
[Sun Feb 03 18:40:06 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:40:06 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:40:06 2013] [notice] Parent: Created child process 5764
[Sun Feb 03 18:40:07 2013] [notice] Disabled use of AcceptEx () WinSock2 API
[Sun Feb 03 18:40:09 2013] [notice] Child 5764: Child process is running
[Sun Feb 03 18:40:09 2013] [notice] Child 5764: Acquired the start mutex.
[Sun Feb 03 18:40:09 2013] [notice] Child 5764: Starting 120 worker threads.
[Sun Feb 03 18:40:09 2013] [notice] Child 5764: Listening on port 80.
[Sun Feb 03 18:40:17 2013] [notice] Child 1056: All worker threads have exited.
[Sun Feb 03 18:40:25 2013] [notice] Child 1056: Child process is exiting
[Sun Feb 03 18:44:31 2013] [notice] Parent: specified Ed restart signal -- Restarting the server.
[Sun Feb 03 18:44:31 2013] [notice] Child 5764: Exit event signaled. Child process is ending.
[Sun Feb 03 18:44:32 2013] [notice] Child 5764: Released the start mutex
[Sun Feb 03 18:44:34 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:44:34 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:44:34 2013] [notice] Parent: Created child process 4368
[Sun Feb 03 18:45:06 2013] [notice] Disabled use of AcceptEx () WinSock2 API
[Sun Feb 03 18:45:07 2013] [notice] Child 5764: Waiting 270 more seconds for 27 worker threads to finish.
[Sun Feb 03 18:45:08 2013] [notice] Child 4368: Child process is running
[Sun Feb 03 18:45:08 2013] [notice] Child 4368: Acquired the start mutex.
[Sun Feb 03 18:45:08 2013] [notice] Child 4368: Starting 120 worker threads.
[Sun Feb 03 18:45:08 2013] [notice] Child 4368: Listening on port 80.
[Sun Feb 03 18:45:30 2013] [notice] Parent: specified Ed shutdown signal -- Shutting down the server.
[Sun Feb 03 18:45:31 2013] [notice] Child 4368: Exit event signaled. Child process is ending.
[Sun Feb 03 18:45:32 2013] [notice] Child 4368: Released the start mutex
[Sun Feb 03 18:45:32 2013] [notice] Child 4368: Terminating 108 threads that failed to exit.
[Sun Feb 03 18:45:32 2013] [notice] Child 4368: All worker threads have exited.
[Sun Feb 03 18:45:46 2013] [notice] Child 5764: Waiting 240 more seconds for 1 worker threads to finish.
[Sun Feb 03 18:46:00 2013] [notice] Parent: Forcing termination of child process 1e0
[Sun Feb 03 18:46:06 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:46:06 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:46:06 2013] [notice] Parent: Created child process 3468
[Sun Feb 03 18:46:06 2013] [notice] Disabled use of AcceptEx () WinSock2 API
[Sun Feb 03 18:46:07 2013] [notice] Child 3468: Child process is running
[Sun Feb 03 18:46:07 2013] [notice] Child 3468: Acquired the start mutex.
[Sun Feb 03 18:46:07 2013] [notice] Child 3468: Starting 120 worker threads.
[Sun Feb 03 18:46:07 2013] [notice] Child 3468: Listening on port 80.
[Sun Feb 03 18:46:20 2013] [notice] Child 5764: Waiting 210 more seconds for 1 worker threads to finish.
[Sun Feb 03 18:46:53 2013] [notice] Child 5764: All worker threads have exited.
[Sun Feb 03 18:46:54 2013] [notice] Child 5764: Child process is exiting
[Sun Feb 03 18:52:02 2013] [notice] Child 3468: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Sun Feb 03 18:52:02 2013] [notice] Parent: specified Ed restart signal -- Restarting the server.
[Sun Feb 03 18:52:03 2013] [notice] Child 3468: Released the start mutex
[Sun Feb 03 18:52:04 2013] [notice] Apache/2.2.22 (Win32) PHP/5.2.10 configured -- resuming normal operations
[Sun Feb 03 18:52:04 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Feb 03 18:52:04 2013] [notice] Parent: Created child process 2500
[Sun Feb 03 18:52:04 2013] [notice] Disabled use of AcceptEx () WinSock2 API
[Sun Feb 03 18:52:05 2013] [notice] Child 2500: Child process is running
[Sun Feb 03 18:52:05 2013] [notice] Child 2500: Acquired the start mutex.
[Sun Feb 03 18:52:05 2013] [notice] Child 2500: Starting 120 worker threads.
[Sun Feb 03 18:52:05 2013] [notice] Child 2500: Listening on port 80.
Reply to discussion (solution)
No
1. switch to Windows 7.
2. use an integrated environment package such as WAMP
No solution I have encountered in win2003
Disabled use of AcceptEx () WinSock2 API
If the parameter is added but the parameter is not added, the memory will crash soon...
Linux does not need to be restarted for one year.
I did not get it on windows. isn't windows apache so powerful...
I did not get it on windows. isn't windows apache so powerful...
I don't know how to say... it's not a web service on win. it's not surprising. besides, microsoft may have to protect its own iis ..
Reference the reply from yufulou on the 4th floor: I did not get it on windows. is windows apache so bad...
I don't know how to say... it's not a web service on win. it's not surprising. besides, microsoft may have to protect its own iis ..
Haha
Welcome to linux + nginx
[Sun Feb 03 18:34:41 2013] [notice] Child 5508: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
In httpd. conf, adjust MaxRequestsPerChild. if it is too large or too small, it will cause a crash,
It is not computed in windows. in linux, you can do this:
Cat/proc/PIDHERE/status | grep VmRSS
Returns a value, such as VmRSS: 204800 kB.
Then, if ram = 4 GB, 4 GB * 1024*1024 = 4,194,304 KB.
4194304 KB/204800 KB = 20 processes
PS: In some linux versions, cat/proc/PIDHERE/status is used directly, and the VmRSS line is found.
Let's see it. let's see it.
The well-known lamp (Linux + Apache + MySQL + PHP) is king...
Welcome to linux + nginx
That's it. Solved immediately after changing
[Sun Feb 03 18:34:41 2013] [notice] Child 5508: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
In httpd. conf, adjust MaxRequest ......
Thanks. I have changed the linux OS.
I have never encountered any such problems as distribution and installation of php, mysql, and apache... all problems can be grasped... But Linux + Nginx is really easy to use...
Whether your program is executed.
We have also encountered such problems: various tests, such as win7, win2003, win2008, self-configured, and integrated package wamp,
Finally, I think that the concurrent processing of apache threads in windows is not well done.
Later, we used visual-nmp (nginx integration package) to solve the problem.
Apache cannot be used in windows and can only be used for development,
Setting up php in windows is better with nginx. Run visual-nmp to test the stress.
Check the path in the configuration file