eygle.com   eygle.com
eygle.com  
 

« 关于自动PGA管理的进一步探讨 | Blog首页 | It168急聘 频道主编 »

What's Mean "internal dummy connection"?

作者:eygle |【转载时请务必以超链接形式标明文章和作者信息及本声明
链接:

升级到Apache2.2之后,在Apache的日志中经常看到大量的internal dummy connection日志:

[root@systest logs]# tail -f access_log.20060409 |grep "internal dummy connection"
::1 - - "GET / HTTP/1.0" 200 68091 "-" "Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)"
::1 - - "GET / HTTP/1.0" 200 68091 "-" "Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)"
::1 - - "GET / HTTP/1.0" 200 68091 "-" "Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)"
::1 - - "GET / HTTP/1.0" 200 68091 "-" "Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)"
::1 - - "GET / HTTP/1.0" 200 68091 "-" "Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)"
::1 - - "GET / HTTP/1.0" 200 68091 "-" "Apache/2.2.0 (Unix) PHP/5.1.2 (internal dummy connection)"

不知道是什么意思?哪位能指点一下,谢谢:)

感谢留言网友的指点,这些信息的含义为:
/* Create the request string. We include a User-Agent so that
* adminstrators can track down the cause of the odd-looking
* requests in their logs.
*/
srequest = apr_pstrcat(p, "GET / HTTP/1.0\r\nUser-Agent: ",
ap_get_server_version(),
" (internal dummy connection)\r\n\r\n", NULL);
通过修改Apache的配置文件可以在日志中屏蔽这些信息:
SetEnvIf Remote_Addr "::1" dontlog
CustomLog "|/usr/local/sbin/cronolog /opt/apache/logs/eygle_access_log.%Y%m%d" combined env=!dontlog
参考链接:
http://www.clusting.com/Apache/ApacheManual/logs.html http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm_common.c?view=markup&pathrev=230808

 

By eygle on 2006-04-09 16:48 | Comments (5) | Posted to Web | Edit |Pageviews:

相关文章 随机文章
  • 落后的技术就是灾难
  • 如何配置Apache 防止图片盗链
  • Resin、Apache、PHP与404错误
  • 百度 城管 与 GFW
  • Eygle.Com网站统计信息
  • Gtalk升级也疯狂
    进京四周年记
    Oracle HowTo:使用DBMS_UTILITY转换Block地址
    天道酬勤
    关于shared pool的深入探讨(三)
    网上相关主题:
    Google

    留言 (5)

    http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm_common.c?view=markup&pathrev=230808

    /* Create the request string. We include a User-Agent so that
    * adminstrators can track down the cause of the odd-looking
    * requests in their logs.
    */
    srequest = apr_pstrcat(p, "GET / HTTP/1.0\r\nUser-Agent: ",
    ap_get_server_version(),
    " (internal dummy connection)\r\n\r\n", NULL);

    Posted by: 1288893 at February 7, 2007 3:48 PM

    在日志里屏蔽记录

    #cat http.conf
    .....
    .....

    # Mark requests from the loop-back interface
    SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
    # Log what remains
    CustomLog logs/access_log common env=!dontlog
    .....
    .....

    Posted by: 1288893 at February 7, 2007 3:51 PM

    感谢这位朋友,我增加了如下判断屏蔽了这些信息:

    SetEnvIf Remote_Addr "::1" dontlog
    CustomLog "|/usr/local/sbin/cronolog /opt/apache/logs/eygle_access_log.%Y%m%d" combined env=!dontlog

    Posted by: eygle at February 7, 2007 3:59 PM

    不客气,关键是多道处理模块(MPM)的配置,我的服务器采用apache在unix上默认的prefork,
    #./httpd -l |grep prefork
    prefork.c

    如下配置下,这个internal dummy connection提示信息就几乎没有了.

    StartServers 50
    MinSpareServers 50
    MaxSpareServers 100
    ServerLimit 2000
    MaxClients 1000
    MaxRequestsPerChild 1000

    Posted by: 1288893 at February 7, 2007 5:16 PM

    我照你这个配置修改了一下,看看是否可以消除这个信息。

    Apache也真够强大和复杂的:)

    Posted by: eygle at February 8, 2007 5:23 PM

    发表留言:



    Remember Me?
    (输入验证码后方可评论,谢谢支持)



    CopyRight © 2004 eygle.com, All rights reserved.