Gentoo Archives: gentoo-dev

From: Benjamin Podszun <ben@××××××××××××××.de>
To: "Robin H.Johnson" <robbat2@g.o>
Cc: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Performance Apache/PHP / PHP-Problem
Date: Wed, 16 Apr 2003 11:14:40
Message-Id: 1050491599.1161.12.camel@blafasel
In Reply to: Re: [gentoo-dev] Performance Apache/PHP / PHP-Problem by "Robin H.Johnson"
1 Thanks.. Stupid me, I should've formatted it before I ask for help.
2 But I'm really quite annoyed already.. I cannot find any difference
3 between the Debian Installation that worked for about a year and this
4 Gentoo 1.4 . I'm sure I made a mistake somewhere, but I've no idea where
5 to start the search.
6
7 KeepAlive is already disabled.
8 The "W" states that it is currently responding to a request, right? I
9 used KeepAlive before, but a keepalive-State would be a "K" in the
10 "M"-Column.
11
12 PHP connections can only be persistant for Databases, afaik?
13 However: We don't use persistant connections and I just disabled them
14 completely.
15
16 No ideas what else I could turn off right now. :(
17
18 On Wed, 2003-04-16 at 11:29, Robin H.Johnson wrote:
19 > On Wed, Apr 16, 2003 at 10:57:09AM +0200, Benjamin Podszun wrote:
20 > > I posted my Apache problems before and I think I found the root cause
21 > > now. I have a nntp2web-gateway as forum and the nntp-server regularly
22 > > reaches a high load because of some other applications.
23 > > The server still accepts connections, but feeds more or less a "wait a
24 > > moment" to my webserver..
25 >
26 > > First problem for me: Gentoo's mod_php isn't build with
27 > > --enable-memory-limit. I needed that to solve some of my performance
28 > > problems and I think it should be used by default, since one can set the
29 > > limit in the php.ini.
30 > Ok, I'll at this in shortly.
31 >
32 > > Second problem: I seem to miss something here.. My php-scripts won't
33 > > stop receiving data in spite of my self-made memory-limit-aware mod_php.
34 > > I get funny thinks like this with apachectl fullstatus:
35 > > Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request
36 > > 0-0 24732 0/9710/9710 W 255.39 48435 0 0.0 12.94 12.94 217.82.173.211
37 > > galactic-tales.4players.de GET /nntp2web/thread.php?group=rpg
38 > > HTTP/1.1
39 > You have misread the columns.
40 >
41 > Align the columns better or look at the web version "http://localhost/server-status" in a table capable browser.
42 > Srv PID Acc M CPU SS Req Conn Child Slot Client VHost ...
43 > 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 ...
44 >
45 > The ~50 you see is NOT the size, it's the time in seconds since the last
46 > request. The 'W' shows that the request is still open, so that IS a
47 > serious issue. I would turn off keepalives + persistant connections in
48 > apache/php totally. There is minimal performance gain with them in PHP
49 > anyway. The '12.94Mb' for the Child column is how much that Apache child
50 > process has transfered over its lifetime.
51 > 9170 connections and 12.94Mb is quite low traffic.

Attachments

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