Windows Apache is often stuck in the dead

Source: Internet
Author: User
Regular card-dead. What's going on, has anyone ever met?
Error log

[Sun Feb 03 18:16:09 2013] [Notice] Child 4200:all worker threads has exited.
[Sun Feb 03 18:16:15 2013] [Notice] Child 4200:child process is exiting
[Sun Feb 03 18:18:35 2013] [Notice] parent:received 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-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:received 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-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 has 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:received 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-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 has 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:received 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-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 has 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:received 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-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 has exited.
[Sun Feb 03 18:40:25 2013] [Notice] Child 1056:child process is exiting
[Sun Feb 03 18:44:31 2013] [Notice] parent:received 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 + seconds for the 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-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:received 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 this failed to exit.
[Sun Feb 03 18:45:32 2013] [Notice] Child 4368:all worker threads has exited.
[Sun Feb 03 18:45:46 2013] [Notice] Child 5764:waiting + 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-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-seconds for 1 worker threads to finish.
[Sun Feb 03 18:46:53 2013] [Notice] Child 5764:all worker threads has 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:received 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-worker threads.
[Sun Feb 03 18:52:05 2013] [Notice] Child 2500:listening on port 80.


Reply to discussion (solution)

Didn't meet

1. Please change to WIN7 platform
2, using integrated environment package such as Wamp

No solution has ever been met under Win2003

Disabled use of AcceptEx () WinSock2 API

Add that parameter but without adding, the memory crashes ...

Linux is the kingly one year without rebooting ... Ha ha haha

I wipe, really did not get on Windows, Windows Apache so not to force it ...

I wipe, really did not get on Windows, Windows Apache so not to force it ...



Don't know how to say ... It's not a Web service on win. It's not surprising, and Microsoft might want to protect its own IIS.

Reference 4 Floor Yufulou reply: I wipe, really did not get on Windows, Windows Apache so not to force it ...

Don't know how to say ... It's not a Web service on win. It's not surprising, and Microsoft might want to protect its own IIS.



Oh

Linux + nginx welcome you Hey

[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.


httpd.conf adjust maxrequestsperchild, too big too small will cause the crash,
Windows does not calculate, under Linux you can do this:
Cat/proc/pidhere/status | grep Vmrss
Returns a value, such as vmrss:204800 KB
Then if RAM = 4g, 4GB * 1024x768 * 1024x768 = 4,194,304 KB.
4194304 kb/204800 KB = processes

PS: Some Linux versions, directly with Cat/proc/pidhere/status, and then find Vmrss this line.

Pass by to see, pass to see.

Well-known lamp (linux+apache+mysql+php) is the kingly ...

Linux + nginx welcome you Hey

That's it. If we change it, we'll fix it.

[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.


httpd.conf Adjust the maxrequest ...



Thanks, it's been replaced by Linux.

I have never met the truth. or PHP, MySQL, Apache a distribution install it ... Each problem can be grasped by ... But Linux+nginx really good ...

Is the problem with your program execution.

Also encountered such problems, various tests, Win7, Win2003, win2008, self-configured, integrated package Wamp, etc.
Finally, it is considered that the concurrent processing of Apache under Windows is not done well.
Later instead of VISUAL-NMP (Nginx integration package) resolved.

Apache is simply not available under Windows and can only be used for development,
It is better to set up PHP under Windows or with Nginx. With the VISUAL-NMP set up, the pressure test is OK.

Check the path in the configuration file

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.