免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: lucki
打印 上一主题 下一主题

[FreeBSD] 已被删除 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-01-30 21:55 |只看该作者
在VM里面跑,多少会有点吃力。
load很高啊。

论坛徽章:
0
12 [报告]
发表于 2008-01-30 22:31 |只看该作者
顺序显示AB开始-挂掉过程

图片是两个ssh截图合成的,上图为top -s1,下图为ab


[ 本帖最后由 lucki 于 2008-1-30 22:33 编辑 ]

1.gif (143.47 KB, 下载次数: 25)

1.gif

2.gif (142.41 KB, 下载次数: 22)

2.gif

3.gif (143.57 KB, 下载次数: 24)

3.gif

4.gif (125.32 KB, 下载次数: 27)

4.gif

5.gif (118.04 KB, 下载次数: 27)

5.gif

论坛徽章:
0
13 [报告]
发表于 2008-01-31 03:27 |只看该作者
httpd -V 帖来看看
这么有这么多 php-cgi 进程?

论坛徽章:
0
14 [报告]
发表于 2008-01-31 03:32 |只看该作者
lucki-sv2# /usr/local/apache/bin/httpd -V
Server version: Apache/2.2.8 (Unix)
Server built:   Jan 29 2008 02:08:26
Server's Module Magic Number: 20051115:11
Server loaded:  APR 1.2.8, APR-Util 1.2.8
Compiled using: APR 1.2.8, APR-Util 1.2.8
Architecture:   32-bit
Server MPM:     Worker
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FLOCK_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local/apache"
-D SUEXEC_BIN="/usr/local/apache/bin/suexec"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

论坛徽章:
0
15 [报告]
发表于 2008-01-31 14:27 |只看该作者
error-log

[Thu Jan 31 02:33:39 2008] [warn] child process 2631 still did not exit, sending a SIGTERM
[Thu Jan 31 02:33:39 2008] [warn] child process 2632 still did not exit, sending a SIGTERM
[Thu Jan 31 02:33:39 2008] [warn] child process 2633 still did not exit, sending a SIGTERM
[Thu Jan 31 02:33:41 2008] [notice] caught SIGTERM, shutting down
[Thu Jan 31 03:47:10 2008] [notice] Apache/2.2.8 (Unix) configured -- resuming normal operations
[Thu Jan 31 03:58:14 2008] [error] [client 58.20.129.156] File does not exist: /home/wwwroot/test/favicon.ico
[Thu Jan 31 04:16:57 2008] [error] [client 141.219.227.209] File does not exist: /home/wwwroot/test/favicon.ico
[Thu Jan 31 04:17:42 2008] [notice] SIGUSR1 received.  Doing graceful restart
[Thu Jan 31 04:17:46 2008] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Thu Jan 31 04:17:46 2008] [notice] Apache/2.2.8 (Unix) configured -- resuming normal operations
[Thu Jan 31 04:17:46 2008] [warn] long lost child came home! (pid 1053)
[Thu Jan 31 04:18:11 2008] [notice] SIGUSR1 received.  Doing graceful restart
[Thu Jan 31 04:18:15 2008] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Thu Jan 31 04:18:15 2008] [notice] Apache/2.2.8 (Unix) configured -- resuming normal operations
[Thu Jan 31 04:18:15 2008] [warn] long lost child came home! (pid 1003
[Thu Jan 31 04:18:30 2008] [notice] SIGUSR1 received.  Doing graceful restart
[Thu Jan 31 04:18:34 2008] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Thu Jan 31 04:18:34 2008] [notice] Apache/2.2.8 (Unix) configured -- resuming normal operations
[Thu Jan 31 04:18:34 2008] [warn] long lost child came home! (pid 10189)
[Thu Jan 31 04:20:09 2008] [notice] SIGUSR1 received.  Doing graceful restart
[Thu Jan 31 04:20:13 2008] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Thu Jan 31 04:20:13 2008] [notice] Apache/2.2.8 (Unix) configured -- resuming normal operations
[Thu Jan 31 04:20:13 2008] [warn] long lost child came home! (pid 10295)
[Thu Jan 31 04:20:45 2008] [notice] SIGUSR1 received.  Doing graceful restart
[Thu Jan 31 04:20:49 2008] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Thu Jan 31 04:20:49 2008] [notice] Apache/2.2.8 (Unix) configured -- resuming normal operations
[Thu Jan 31 04:20:49 2008] [warn] long lost child came home! (pid 10821)
[Thu Jan 31 04:21:10 2008] [warn] child process 11057 still did not exit, sending a SIGTERM
[Thu Jan 31 04:21:10 2008] [warn] child process 11058 still did not exit, sending a SIGTERM
[Thu Jan 31 09:49:53 2008] [warn] child process 1555 still did not exit, sending a SIGTERM
[Thu Jan 31 09:49:53 2008] [warn] child process 1556 still did not exit, sending a SIGTERM
[Thu Jan 31 09:49:53 2008] [warn] child process 1557 still did not exit, sending a SIGTERM
[Thu Jan 31 09:49:55 2008] [notice] SIGHUP received.  Attempting to restart
[Thu Jan 31 09:49:55 2008] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Thu Jan 31 09:49:55 2008] [notice] Apache/2.2.8 (Unix) configured -- resuming normal operations
[Thu Jan 31 09:53:12 2008] [error] [client 127.0.0.1] CGI process 93272 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:12 2008] [error] [client 127.0.0.1] CGI process 93301 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:12 2008] [error] [client 127.0.0.1] CGI process 93320 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:12 2008] [error] [client 127.0.0.1] CGI process 93300 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:12 2008] [error] [client 127.0.0.1] CGI process 93323 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:12 2008] [error] [client 127.0.0.1] CGI process 93316 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:12 2008] [error] [client 127.0.0.1] CGI process 93321 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:13 2008] [error] [client 127.0.0.1] CGI process 93322 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:13 2008] [error] [client 127.0.0.1] CGI process 93327 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:13 2008] [error] [client 127.0.0.1] CGI process 93317 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:13 2008] [error] [client 127.0.0.1] CGI process 93331 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:13 2008] [error] [client 127.0.0.1] CGI process 93324 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:13 2008] [error] [client 127.0.0.1] CGI process 93326 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:13 2008] [error] [client 127.0.0.1] CGI process 93357 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:13 2008] [error] [client 127.0.0.1] CGI process 93340 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:13 2008] [error] [client 127.0.0.1] CGI process 93330 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:13 2008] [error] [client 127.0.0.1] CGI process 93339 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:14 2008] [error] [client 127.0.0.1] CGI process 93374 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:14 2008] [error] [client 127.0.0.1] CGI process 93328 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:14 2008] [error] [client 127.0.0.1] CGI process 93365 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:14 2008] [error] [client 127.0.0.1] CGI process 93344 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:14 2008] [error] [client 127.0.0.1] CGI process 93363 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:14 2008] [error] [client 127.0.0.1] CGI process 93337 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:14 2008] [error] [client 127.0.0.1] CGI process 93377 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:14 2008] [error] [client 127.0.0.1] CGI process 93349 didn't exit, sending SIGKILL

论坛徽章:
0
16 [报告]
发表于 2008-01-31 14:27 |只看该作者
[Thu Jan 31 09:53:15 2008] [error] [client 127.0.0.1] CGI process 93342 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:15 2008] [error] [client 127.0.0.1] CGI process 93392 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:15 2008] [error] [client 127.0.0.1] CGI process 93386 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:15 2008] [error] [client 127.0.0.1] CGI process 93272 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:15 2008] [error] [client 127.0.0.1] CGI process 93334 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:15 2008] [error] [client 127.0.0.1] CGI process 93352 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:15 2008] [error] [client 127.0.0.1] CGI process 93367 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:15 2008] [error] [client 127.0.0.1] CGI process 93301 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:15 2008] [error] [client 127.0.0.1] CGI process 93320 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:15 2008] [error] [client 127.0.0.1] CGI process 93300 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93407 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93323 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93316 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93321 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93401 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93333 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93322 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93394 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93327 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93343 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93317 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93395 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93400 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93331 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93399 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93411 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93398 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93416 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93409 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93324 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93326 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93357 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93414 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:16 2008] [error] [client 127.0.0.1] CGI process 93340 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93330 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93415 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93339 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93374 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93423 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93328 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93365 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93382 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93426 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93344 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93363 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93337 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:17 2008] [error] [client 127.0.0.1] CGI process 93377 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93427 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93349 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93372 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93384 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93388 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93362 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93371 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93413 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] (61)Connection refused: unable to connect to cgi daemon after multiple tries: /usr/local/php-cgi/bin/php-cgi
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93342 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93428 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93392 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93424 didn't exit, sending SIGKILL
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93386 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] (61)Connection refused: unable to connect to cgi daemon after multiple tries: /usr/local/php-cgi/bin/php-cgi
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] (61)Connection refused: unable to connect to cgi daemon after multiple tries: /usr/local/php-cgi/bin/php-cgi
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93334 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93352 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] CGI process 93367 didn't exit, sending SIGKILL again
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] (61)Connection refused: unable to connect to cgi daemon after multiple tries: /usr/local/php-cgi/bin/php-cgi
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] (61)Connection refused: unable to connect to cgi daemon after multiple tries: /usr/local/php-cgi/bin/php-cgi
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] (61)Connection refused: unable to connect to cgi daemon after multiple tries: /usr/local/php-cgi/bin/php-cgi
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] (61)Connection refused: unable to connect to cgi daemon after multiple tries: /usr/local/php-cgi/bin/php-cgi
[Thu Jan 31 09:53:18 2008] [error] [client 127.0.0.1] (61)Connection refused: unable to connect to cgi daemon after multiple tries:

论坛徽章:
0
17 [报告]
发表于 2008-01-31 14:33 |只看该作者
大部分都在

child process still did not exit sending a sigterm

我把详细的错误日志发上来分析

经过测试,发现降低mem=worker的ThreadsPerChild 25 | MinSpareThreads 25 | MaxSpareThreads 75有效,但是实在太低了,几乎想测试完ab 10000 并发200得需要十几分钟。

error_log.rar

24.88 KB, 下载次数: 19

论坛徽章:
0
18 [报告]
发表于 2008-01-31 15:33 |只看该作者
Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 5

UseCanonicalName Off

AccessFileName .htaccess

ServerTokens Full

ServerSignature On

HostnameLookups Off

<IfModule mpm_worker_module>
    MaxClients          5000
    ServerLimit         3000
#    ThreadLimit         65
    StartServers          5
    MinSpareThreads      75
    MaxSpareThreads      300
    ThreadsPerChild      50
    MaxRequestsPerChild   80000
</IfModule>

论坛徽章:
0
19 [报告]
发表于 2008-01-31 15:42 |只看该作者
还不如我的c366/128M呢。肯定有问题。

论坛徽章:
0
20 [报告]
发表于 2008-01-31 16:44 |只看该作者
脱开虚拟机!虚拟机测试功能还可以,测性能还是用真机的好
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP