From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29583 invoked by uid 1002); 16 Apr 2003 09:29:12 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 11121 invoked from network); 16 Apr 2003 09:29:11 -0000 Date: Wed, 16 Apr 2003 02:29:10 -0700 From: Robin H.Johnson To: Benjamin Podszun Cc: gentoo-dev@gentoo.org Message-ID: <20030416092910.GA30695@cherenkov.orbis-terrarum.net> Mail-Followup-To: Benjamin Podszun , gentoo-dev@gentoo.org References: <1050483429.1281.7.camel@blafasel> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline In-Reply-To: <1050483429.1281.7.camel@blafasel> User-Agent: Mutt/1.5.3i Subject: Re: [gentoo-dev] Performance Apache/PHP / PHP-Problem X-Archives-Salt: ea8f62f3-4e66-4767-969b-815b9758f557 X-Archives-Hash: d74268e78234e5ca671c9de96ecb5b34 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 16, 2003 at 10:57:09AM +0200, Benjamin Podszun wrote: > I posted my Apache problems before and I think I found the root cause > now. I have a nntp2web-gateway as forum and the nntp-server regularly > reaches a high load because of some other applications. > The server still accepts connections, but feeds more or less a "wait a > moment" to my webserver.. > First problem for me: Gentoo's mod_php isn't build with > --enable-memory-limit. I needed that to solve some of my performance > problems and I think it should be used by default, since one can set the > limit in the php.ini. Ok, I'll at this in shortly. > Second problem: I seem to miss something here.. My php-scripts won't > stop receiving data in spite of my self-made memory-limit-aware mod_php. > I get funny thinks like this with apachectl fullstatus: > Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request > 0-0 24732 0/9710/9710 W 255.39 48435 0 0.0 12.94 12.94 217.82.173.211 > galactic-tales.4players.de GET /nntp2web/thread.php?group=3Drpg > HTTP/1.1 You have misread the columns. Align the columns better or look at the web version "http://localhost/serve= r-status" in a table capable browser. Srv PID Acc M CPU SS Req Conn Child Slo= t Client VHost ... 0-0 24732 0/9710/9710 W 255.39 48435 0 0.0 12.94 12.= 94 217.82.173.211 galactic-tales.4players.de ... The ~50 you see is NOT the size, it's the time in seconds since the last request. The 'W' shows that the request is still open, so that IS a serious issue. I would turn off keepalives + persistant connections in apache/php totally. There is minimal performance gain with them in PHP anyway. The '12.94Mb' for the Child column is how much that Apache child process has transfered over its lifetime. 9170 connections and 12.94Mb is quite low traffic. --=20 Robin Hugh Johnson E-Mail : robbat2@orbis-terrarum.net Home Page : http://www.orbis-terrarum.net/?l=3Dpeople.robbat2 ICQ# : 30269588 or 41961639 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Robbat2 @ Orbis-Terrarum Networks iD8DBQE+nSJmsnuUTjSIToURAnVIAJ9c0rulCX2mE/fF0x8u0ISFfYWAzwCgrM6U NqdyHe6qObD9nkgJF0MmYxI= =ILSA -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--