Win Server2012上部署Django+Apache后apache服务无规律间断性自动挂掉

Jamie-Liu 发布于 2018/06/21 19:51
阅读 987
收藏 1

       自从把Django开发的网站挂到Windows上后,每隔一段时间(有时候半天,有时候好几天,无规律)Apache服务就自己挂掉了,挂掉后的错误信息如下:

 

[Thu Jun 21 18:51:45.789516 2018] [mpm_winnt:crit] [pid 8084:tid 340] AH02538: Child: Parent process exited abruptly. Child process is ending
[Thu Jun 21 18:51:45.790489 2018] [mpm_winnt:warn] [pid 8084:tid 1932] (OS 995)由于线程退出或应用程序请求,已中止 I/O 操作。  : AH00341: winnt_accept: Asynchronous AcceptEx failed.
[Thu Jun 21 18:51:45.790489 2018] [mpm_winnt:warn] [pid 8084:tid 3988] (OS 995)由于线程退出或应用程序请求,已中止 I/O 操作。  : AH00341: winnt_accept: Asynchronous AcceptEx failed.
[Thu Jun 21 18:51:47.792450 2018] [mpm_winnt:notice] [pid 8084:tid 340] AH00364: Child: All worker threads have exited.

 

      等挂掉之后,再把apache服务手动开启,error日志中有如下警告信息:

Exception ignored in: <object repr() failed>
Traceback (most recent call last):
  File "C:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\PIL\Image.py", line 589, in __del__
NameError: name 'hasattr' is not defined
[Thu Jun 21 19:04:01.933081 2018] [core:warn] [pid 2236:tid 344] AH00098: pid file E:/Apache/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Jun 21 19:04:02.034651 2018] [ssl:warn] [pid 2236:tid 344] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Jun 21 19:04:02.035624 2018] [mpm_winnt:notice] [pid 2236:tid 344] AH00455: Apache/2.4.33 (Win64) OpenSSL/1.0.2o mod_wsgi/4.6.4 Python/3.6 configured -- resuming normal operations
[Thu Jun 21 19:04:02.035624 2018] [mpm_winnt:notice] [pid 2236:tid 344] AH00456: Apache Lounge VC14 Server built: Mar 29 2018 12:12:07
[Thu Jun 21 19:04:02.035624 2018] [core:notice] [pid 2236:tid 344] AH00094: Command line: 'E:\\Apache\\Apache24\\bin\\httpd.exe -d E:/Apache/Apache24'
[Thu Jun 21 19:04:02.036593 2018] [mpm_winnt:notice] [pid 2236:tid 344] AH00418: Parent: Created child process 4100
[Thu Jun 21 19:04:02.417445 2018] [ssl:warn] [pid 4100:tid 392] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Jun 21 19:04:02.462365 2018] [mpm_winnt:notice] [pid 4100:tid 392] AH00354: Child: Starting 64 worker threads.

 

        httpd-ssl.conf有如下默认配置,没有改过:

SSLSessionCache        "shmcb:E:/Apache/Apache24/logs/ssl_scache(512000)"
SSLSessionCacheTimeout  300

 

        httpd.exe -t 检查也是OK。

 

        请大神帮忙解决这个问题。网站老是挂掉很头疼。

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部