Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Dec 2004 13:59:33 +0900
From:      Huynh Van Chung <hvcjapan@yahoo.co.jp>
To:        freebsd-sparc64@freebsd.org
Subject:   What happen in Apache???
Message-ID:  <20041225135933.0d51f4fd.hvcjapan@yahoo.co.jp>

next in thread | raw e-mail | index | archive | help
Hi all 
Please help me. I now running FreeBSD5.3-p2 sparc64 in Sun Ultra 10 box. And I find very bad performance in Apache server. 

vnfreebsd:/usr/ports/mail/postfix% pkg_info | grep apache
apache+mod_ssl+ipv6-1.3.33+2.8.22 The Apache 1.3 webserver with SSL/TLS and IPv6 functionalit
vnfreebsd:/usr/ports/mail/postfix% pkg_info | grep php
php4-4.3.10         PHP Scripting Language (Apache Module and CLI)
php4-ctype-4.3.9    The ctype shared extension for php
php4-extensions-1.0 A "meta-port" to install PHP extensions
php4-gd-4.3.9       The gd shared extension for php
php4-mbstring-4.3.9 The mbstring shared extension for php
php4-mysql-4.3.9    The mysql shared extension for php
php4-overload-4.3.9 The overload shared extension for php
php4-pcre-4.3.9     The pcre shared extension for php
php4-posix-4.3.9    The posix shared extension for php
php4-session-4.3.9  The session shared extension for php
php4-tokenizer-4.3.9 The tokenizer shared extension for php
php4-xml-4.3.9      The xml shared extension for php
php4-zlib-4.3.9     The zlib shared extension for php
vnfreebsd:/usr/ports/mail/postfix% pkg_info | grep mysql
mysql-client-4.0.22 Multithreaded SQL database (client)
mysql-server-4.0.22 Multithreaded SQL database (server)
p5-DBD-mysql41-2.9004 MySQL 4.1 driver for the Perl5 Database Interface (DBI)
php4-mysql-4.3.9    The mysql shared extension for php

And now at the top command 
last pid:  2270;  load averages:  0.24,  0.05,  0.02    up 8+11:35:33  13:49:14
31 processes:  1 running, 30 sleeping
CPU states: 78.1% user,  0.0% nice, 13.9% system,  0.0% interrupt,  8.0% idle
Mem: 76M Active, 16M Inact, 49M Wired, 264K Cache, 34M Buf, 73M Free
Swap: 1000M Total, 39M Used, 961M Free, 3% Inuse, 64K In

  PID USERNAME PRI NICE   SIZE    RES STATE    TIME   WCPU    CPU COMMAND
 2129 www       20    0   115M 24656K lockf    0:02  6.74%  6.74% httpd
 2127 www       20    0   114M 24072K lockf    0:02  6.69%  6.69% httpd
 2128 www        4    0   114M 24016K sbwait   0:01  6.30%  6.30% httpd
 2125 www       20    0   114M 24104K lockf    0:01  5.47%  5.47% httpd

See that the apache server run with 115M memory. It very large number, even if in my i386 box it need only 5M. 
And when I continuously click the web page ( it is Xoops2), and see the pstree command: 
| |-+= 63138 root /usr/local/sbin/httpd -DSSL
| | |--- 01942 www /usr/local/sbin/httpd -DSSL
| | |--- 01943 www /usr/local/sbin/httpd -DSSL
| | |--- 01944 www /usr/local/sbin/httpd -DSSL
| | |--- 01945 www /usr/local/sbin/httpd -DSSL
| | |--- 01946 www /usr/local/sbin/httpd -DSSL
| | |--- 01947 www /usr/local/sbin/httpd -DSSL
| | |--- 01948 www /usr/local/sbin/httpd -DSSL
| | |--- 01949 www /usr/local/sbin/httpd -DSSL
| | |--- 01950 www /usr/local/sbin/httpd -DSSL
| | |--- 01951 www /usr/local/sbin/httpd -DSSL
| | |--- 01952 www /usr/local/sbin/httpd -DSSL
| | |--- 01953 www /usr/local/sbin/httpd -DSSL
| | |--- 01954 www /usr/local/sbin/httpd -DSSL
| | |--- 01955 www /usr/local/sbin/httpd -DSSL
| | |--- 01956 www /usr/local/sbin/httpd -DSSL
| | |--- 01957 www /usr/local/sbin/httpd -DSSL
| | |--- 01958 www /usr/local/sbin/httpd -DSSL
| | |--- 01959 www /usr/local/sbin/httpd -DSSL
| | |--- 01960 www /usr/local/sbin/httpd -DSSL
| | |--- 01961 www /usr/local/sbin/httpd -DSSL
| | |--- 01962 www /usr/local/sbin/httpd -DSSL
| | |--- 01963 www /usr/local/sbin/httpd -DSSL
| | |--- 01964 www /usr/local/sbin/httpd -DSSL
| | |--- 01965 www /usr/local/sbin/httpd -DSSL
| | |--- 01967 www /usr/local/sbin/httpd -DSSL
| | |--- 01968 www /usr/local/sbin/httpd -DSSL
| | |--- 01969 www /usr/local/sbin/httpd -DSSL
| | |--- 01970 www /usr/local/sbin/httpd -DSSL
| | |--- 01971 www /usr/local/sbin/httpd -DSSL
| | |--- 01972 www /usr/local/sbin/httpd -DSSL
| | |--- 01973 www /usr/local/sbin/httpd -DSSL
| | |--- 01974 www /usr/local/sbin/httpd -DSSL
| | |--- 01975 www /usr/local/sbin/httpd -DSSL
| | |--- 01976 www /usr/local/sbin/httpd -DSSL
| | |--- 01977 www /usr/local/sbin/httpd -DSSL
| | |--- 63139 www /usr/local/sbin/httpd -DSSL
| | |--- 63140 www /usr/local/sbin/httpd -DSSL
| | |--- 63141 www /usr/local/sbin/httpd -DSSL
| | |--- 63142 www /usr/local/sbin/httpd -DSSL
| | |--- 63143 www /usr/local/sbin/httpd -DSSL
| | |--- 63145 www /usr/local/sbin/httpd -DSSL
| | |--- 63368 www /usr/local/sbin/httpd -DSSL
| | |--- 64247 www /usr/local/sbin/httpd -DSSL
| | |--- 64248 www /usr/local/sbin/httpd -DSSL
| | \--- 64249 www /usr/local/sbin/httpd -DSSL

So that, the machine get very load averages 7.xx. And I can't access in this time.

In my httpd.conf, I now use the default setting: 
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0

What something I wrong?
Please help me
Huynh Van Chung


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041225135933.0d51f4fd.hvcjapan>