Gentoo Archives: gentoo-dev

From: Benjamin Podszun <ben@××××××××××××××.de>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Performance Apache/PHP / PHP-Problem
Date: Wed, 16 Apr 2003 08:58:32
Message-Id: 1050483429.1281.7.camel@blafasel
1 Hi there.
2
3 I posted my Apache problems before and I think I found the root cause
4 now. I have a nntp2web-gateway as forum and the nntp-server regularly
5 reaches a high load because of some other applications.
6 The server still accepts connections, but feeds more or less a "wait a
7 moment" to my webserver..
8
9 First problem for me: Gentoo's mod_php isn't build with
10 --enable-memory-limit. I needed that to solve some of my performance
11 problems and I think it should be used by default, since one can set the
12 limit in the php.ini.
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
17 I get funny thinks like this with apachectl fullstatus:
18
19 Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request
20 0-0 24732 0/9710/9710 W 255.39 48435 0 0.0 12.94 12.94 217.82.173.211
21 galactic-tales.4players.de GET /nntp2web/thread.php?group=rpg
22 HTTP/1.1
23 1-0 28522 0/747/10693 W 19.49 47228 0 0.0 0.61 13.47 217.227.120.194
24 galactic-tales.4players.de GET
25 /nntp2web/thread.php?group=rpg&it=54641
26 HTTP/1.1
27 2-0 28387 0/75/10032 W 1.00 48434 0 0.0 0.02 10.99 80.137.211.194
28 galactic-tales.4players.de GET
29 /nntp2web/thread.php?group=rpg&it=48832
30 HTTP/1.1
31 3-0 24735 0/9494/9494 W 253.37 48442 0 0.0 12.14 12.14 80.145.106.208
32 galactic-tales.4players.de GET /nntp2web/thread.php?group=rpg&it=282
33 HTTP/1.1
34
35 The columns are:
36
37 Srv Child Server number - generation
38 PID OS process ID
39 Acc Number of accesses this connection / this child / this slot
40 M Mode of operation
41 CPU CPU usage, number of seconds
42 SS Seconds since beginning of most recent request
43 Req Milliseconds required to process most recent request
44 Conn Kilobytes transferred this connection
45 Child Megabytes transferred this child
46 Slot Total megabytes transferred this slot
47
48 So.. Every Connection transferred ~50MB? *ugh*
49 I better don't count all the lines with similar problems..
50
51 Anyone able to provide me with a quick hint? ;-)
52
53 Ben

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Performance Apache/PHP / PHP-Problem "Robin H.Johnson" <robbat2@g.o>