Gentoo Archives: gentoo-dev

From: "Robin H.Johnson" <robbat2@g.o>
To: Benjamin Podszun <ben@××××××××××××××.de>
Cc: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Performance Apache/PHP / PHP-Problem
Date: Wed, 16 Apr 2003 09:29:12
Message-Id: 20030416092910.GA30695@cherenkov.orbis-terrarum.net
In Reply to: [gentoo-dev] Performance Apache/PHP / PHP-Problem by Benjamin Podszun
1 On Wed, Apr 16, 2003 at 10:57:09AM +0200, Benjamin Podszun wrote:
2 > I posted my Apache problems before and I think I found the root cause
3 > now. I have a nntp2web-gateway as forum and the nntp-server regularly
4 > reaches a high load because of some other applications.
5 > The server still accepts connections, but feeds more or less a "wait a
6 > moment" to my webserver..
7
8 > First problem for me: Gentoo's mod_php isn't build with
9 > --enable-memory-limit. I needed that to solve some of my performance
10 > problems and I think it should be used by default, since one can set the
11 > limit in the php.ini.
12 Ok, I'll at this in shortly.
13
14 > Second problem: I seem to miss something here.. My php-scripts won't
15 > stop receiving data in spite of my self-made memory-limit-aware mod_php.
16 > I get funny thinks like this with apachectl fullstatus:
17 > Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request
18 > 0-0 24732 0/9710/9710 W 255.39 48435 0 0.0 12.94 12.94 217.82.173.211
19 > galactic-tales.4players.de GET /nntp2web/thread.php?group=rpg
20 > HTTP/1.1
21 You have misread the columns.
22
23 Align the columns better or look at the web version "http://localhost/server-status" in a table capable browser.
24 Srv PID Acc M CPU SS Req Conn Child Slot Client VHost ...
25 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 ...
26
27 The ~50 you see is NOT the size, it's the time in seconds since the last
28 request. The 'W' shows that the request is still open, so that IS a
29 serious issue. I would turn off keepalives + persistant connections in
30 apache/php totally. There is minimal performance gain with them in PHP
31 anyway. The '12.94Mb' for the Child column is how much that Apache child
32 process has transfered over its lifetime.
33 9170 connections and 12.94Mb is quite low traffic.
34
35 --
36 Robin Hugh Johnson
37 E-Mail : robbat2@××××××××××××××.net
38 Home Page : http://www.orbis-terrarum.net/?l=people.robbat2
39 ICQ# : 30269588 or 41961639
40 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85

Replies

Subject Author
Re: [gentoo-dev] Performance Apache/PHP / PHP-Problem Benjamin Podszun <ben@××××××××××××××.de>