f



Load average differences between Apache 1.3.37/PHP 4.4.6 and Apache 2.2.4/PHP 5.2.1

Hi folks,

I've encountered something rather strange.  This morning, I upgraded
our production server, providing web services for our library website,
from Apache 1.3.37/PHP 4.4.6 to Apache 2.2.4/PHP 5.2.1.  The server,
which normally exhibits a load average below 1 most of the time,
spiked to loads that approached 100 if left alone.  The interesting
part of this is that this load average seems to be almost artificial -
it appears to be caused by httpd processes stuck in a "closing
connection" state (TIME_WAIT, in netstat).  These processes are still
running according to things like top and vmstat, and therefore
contribute to the load on the box.

Some command output is appropriate.

First, the original server with Apache 1.3.37 and PHP 4.4.6:

vmstat:

procs -----------memory---------- ---swap-- -----io---- --system-- ----
cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us
sy id wa
 0  0      0  16800 102048 642548    0    0     1     2    1     4  2
1 97  0

(load average is currently 0.08)

Top:

top - 19:44:30 up 91 days, 11:57,  4 users,  load average: 0.06, 0.05,
0.01
Tasks: 101 total,   2 running,  99 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.7% us,  0.3% sy,  0.0% ni, 99.0% id,  0.0% wa,  0.0% hi,
0.0% si
Mem:    905996k total,   887568k used,    18428k free,   102076k
buffers
Swap:  2008084k total,        0k used,  2008084k free,   642576k
cached

As you can see, the box is not heavily loaded.  Apache's MaxClients
value is set to 150, but it never even gets close to that.

Here's a snip from /server-status:

   CPU Usage: u.09 s0 cu0 cs0 - .409% CPU load
   4.95 requests/sec - 14.3 kB/second - 2959 B/request
   7 requests currently being processed, 14 idle servers
KK_K_K__K_______W__K_...........................................

So, the box is really not doing a whole lot.

When Apache 2 is brought up, things get weird really quickly.   We are
using a "worker" MPM, since that is what is recommended with PHP.

After only 5 minutes:

vmstat:

procs -----------memory---------- ---swap-- -----io---- --system-- ----
cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us
sy id wa
11  0      0   9348  99892 644496    0    0     1     2    1     4  2
1 97  0

Top:

top - 19:49:36 up 91 days, 12:02,  4 users,  load average: 6.78, 1.96,
0.67
Tasks: 121 total,  13 running, 108 sleeping,   0 stopped,   0 zombie
Cpu(s): 99.7% us,  0.3% sy,  0.0% ni,  0.0% id,  0.0% wa,  0.0% hi,
0.0% si
Mem:    905996k total,   896320k used,     9676k free,    98632k
buffers
Swap:  2008084k total,        0k used,  2008084k free,   644532k
cached

There's an obvious problem here with CPU  usage.  Top indicates that
it's clamped at 100% usage, but that isn't the case when you view CPU
usage in the /server-status page:

   CPU Usage: u2.25 s.47 cu.05 cs0 - .827% CPU load
   4.06 requests/sec - 25.3 kB/second - 6.2 kB/request
   35 requests currently being processed, 7 idle workers

_CCCCCCCCCCCCCCWCCCCCCCKKCCWKK_KC__CCC__C_......................

This number will climb until MaxClients is reached. The connections
that are marked as  "C" (closing connection) are in a TIME_WAIT state
in netstat, and are almost ALL serving the following request:

   1-0  9665 1/7/7     C 0.02 128 6   9.0  0.01  0.01 127.0.0.1
www.lib.unb.ca GET / HTTP/1.0

There are no pages in our site that reference our document root with
an HTTP/1.0 request.  This is new - it's not present at all in the /
server-status page in the 1.3.37 page.

I'm really bothered by this.  It's the same site (same document root),
same basic Apache configuration with respect to MaxClients and
KeepAliveTimeout and all that good stuff.

I'd appreciate any insights, and can provide additional information if
necessary.  For the time being, I've just fallen back to my
1.3.37/4.4.6 server.

Thanks,

Jason

0
Jason
3/8/2007 11:54:39 PM
comp.infosystems.servers.unix 3274 articles. 0 followers. Post Follow

1 Replies
2276 Views

Similar Articles

[PageSpeed] 14

Actually, I realized I made a mistake in my original post.  We are not
using a worker MPM, we are using prefork.

0
Jason
3/9/2007 1:19:58 PM
Reply:

Similar Artilces:

Changing (1,2,3,4,5...) to (1,1,2,2,3,3,4,4,5,5...)
Hi All, I have a column vector of numbers that I would like to extrapolate by "doubling up": e.g. turn 2 4 6 8 into: 2 2 4 4 6 6 8 8 any ideas on an easy vectorised way to do this? TIA, Rob v=repmat([2; 4; 6; 8].',2,1); v=v(:) "Robert Barrie" <askme@ifuwant.com> wrote in message <hlt7kp$rut$1@fred.mathworks.com>... > Hi All, > > I have a column vector of numbers that I would like to extrapolate by "doubling up": > > e.g. turn > 2 > 4 > 6 > 8 > > into: > 2 > 2 > 4 > 4 > 6 > 6 > 8 >...

PHPBB2, PHP 4.3.4, MySQL 4.1.1, Apache 2.0.49, Fedora 2
My combination is: PHPBB2, PHP 4.3.4, MySQL 4.1.1, Apache 2.0.49, Fedora 2 Anyone out there has a successful combination of newer versions ? fr gr Erik ...

{{1,2,3},{4,5,6},...} --> {1,2,3,4,5,6,...} ?
What's a simple way to turn an "array of arrays" into one big array? Essentially I want to concatenate every member of a cell array. I was thinking something like this: feval(horzcat,deal(array)) But that doesn't seem to work. Is there a similar form that does? thanks, Tobin http://web.pas.rochester.edu/~tobin/ In article <Pine.GSO.4.64.0604051040090.34@apocalypse.OCF.Berkeley.EDU>, Tobin Fricke <fricke@ocf.berkeley.edu> wrote: > What's a simple way to turn an "array of arrays" into one big array? > > Essentially I want to conc...

Does 4/2/2= (4/2)/2 =1 OR = 4/(2/2)=4
I don't have matlab and I am trying to translate some simple matlab code. Does 4/2/2 = (4/2)/2 = 1 or 4/2/2 = 4/(2/2) = 4 On 9/11/2012 9:43 AM, sarah.englander@gmail.com wrote: > I don't have matlab and I am trying to translate some simple matlab code. > > Does 4/2/2 = (4/2)/2 = 1 yes. At a given precedence level (and obviously two of the same operators are the same level) evaluation proceeds from LtoR. ....snip... <http://www.mathworks.com/help/techdoc/matlab_prog/f0-40063.html#f0-38155> -- dpb <none@non.net> wrote in message <...

Upgrade from VO 1 - 2 - 2..1 -2.2 - 2.3 -2.4 - 2.5 - 2.6 - 2.7
About upgrade 2.5 - 2.7 at $ 384.00 For most products I'm using - the updates (2.0 - 2.1 - 2.7) are free... 2.0 to 3.0 might be worth + 10-30% of the original price? VO is + full price again & again - Full program price for every minor upgrade/bug-fix? I dropped out of the money/bugs [VO] at 2.5 after starting at 1.0 more than 10 years ago. Certainly whoever is making VO have to make a living; earning moneys: - that is OK! A 10 years old VO site; - 10 years later, how much have changed? http://www.yi.com/prany/cavo/cavofront.htm Even MS is not ...

Newbie question; why (cons (list 1 2) (list 3 4)) is ((1 2) 3 4) and not ((1 2) (3 4))
Hi, I just started to learn LISP, and stumbled in SICP upon (cons (list 1 2) (list 3 4)) is evaluated to ((1 2) 3 4) I do not understand why this is not: ((1 2) (3 4)) because (cdr (cons (list 1 2) (list 3 4))) is (3 4) and (car (cons (list 1 2) (list 3 4))) is (1 2) Is there a logical explanation? Thank you for your patience. -- Greg Out of order, gregor <gregor@ediwo.com> writes: > Is there a logical explanation? Yes. > I just started to learn LISP, and stumbled in SICP...

ACE 5.4.2 + TAO 1.4.2 client, ORBacus 4.1.2 NameService, and JACOrb 1.4.1 servants
Hi everyone, Background: ----------- I'm very new to CORBA, ACE & TAO. I'm trying to integrate with a 3rd party system which exposes a CORBA object model to clients. This system is composed of JACOrb 1.4.1 servers registering with an ORBacus 4.1.2 NameService. We've got existing software that uses ACE 5.4.2, and the 3rd party documentation mentions that people have used TAO (no version specified) previously to integrate with their system, so I'm trying out TAO 1.4.2 as a natural solution to the problem. Environment Specifics: ---------------------- - AC...

CSWS 2 (apache) / PHP 1.2 (php 4.2.3) / Oracle 9i OCI8 connectivity under OpenVMS
I'm currently trying to interface CSWS 2.0 (apache) / PHP v1.2 (PHP 4.3.2) with an Oracle 9.2 database under OpenVMS 7.3.2 The database connection works fine, but i've a problem with OCIexecute when i'm trying to select varchar value. My script works fine with int value, but give no resultt (error page) when there's a varchar colum in the select statement Someone Have exeprienced such problem ? Who can help me with APACHE/PHP/Oracle9I/OpenVMS configuration ? Environnement problem ? NLS problem ? Thanks in advance for all Best regards ...

Apache 2.2.2 and PHP 5.1.4 on Win2k crashing
I just installed Apache 2.2.2 on my Windows 2000 (SP4) machine to test the new version. Everything works except PHP (version 5.1.4): when starting Apache, it pops out a message saying that it is unable to locate the module (even set on the correct path!), stops the execution and exits. On the other side, PHP works fine with Apache 2.0.55, so It's not a problem of a broken build. Got ideas? Thanks. -- Massimo Lombardo unwiredbrain@gmail.com wrote: > I just installed Apache 2.2.2 on my Windows 2000 (SP4) machine to test > the new version. > Everything works except PHP (version ...

Upgrade of Xalan 1.2.2 and Xerces 1.4.4 to Xalan 2.6 and Xerces 2.6.2
I've been tasked with upgrading the JVM from 1.3 to 1.4, and the third party libraries used by my company on our existing Java framework. I'm most worried about any problems that may occur due to upgrading Xalan and Xerces as our framework performs much XML transformation and processing. Does anyone have a link to known issues with such an upgrade (besides the Xalan / Xerces sites) ? Or has anyone done such an upgrade and can share their pearls of wisdom? Thanks Chris ...

TRSDOS II, version 4.2.0, 4.2.2, 4.2.4, 4.2.6 (or 4.3.x or 4.4)
Hi, Group I require a copy of the above DOS, but I need it _on disk_ as I do not have an emulator for the Model II that must be tested. Is there any possible sources of the OS on disk, or can you advise if the original 8" drive can be hooked to another device so that I can transfer an electronic copy to the disk to boot the machine? What other options do I have? Thanks L replying to my own post :-) I found an article here (http://www.tim-mann.org/trs80resources.html) where Tim describes a trick to rescue a disk's contents. This should be a workable solution...

php 5.1.4, apache 2.2.3, and libxslt
I'm having a baffling problem. I've got Apache 2.2.3 and php 5.1.4 installed on a Windows 2000 Pro machine. I've enabled the libxslt extension by uncommenting the line "extension=php_xsl.dll" in php.ini, and my extension_dir is properly pointing to "c:\php\ext". OK, it worked for a while. The problem is the libxslt functions aren't working now, and when I run php_info() it doesn't show any xslt library. I swear it did just last week. I've been going crazy trying to figure out what changed, and what I need to do to get my xslt functions working agai...

Apache 2.0.4.6 (Win) PHP 4.3.4.4
Hello there, We have PHP ver 4.3.4.4 working off Apache server version 2.0.4.6. My developer has developed a bunch of basic web pages which interact with the SQL Server 2000. We exposed the web application to the outside world though port 80 and the server crashed all of a sudden the very next day. Are there any security vulneribities with PHP ver 4.3.4.4 and Apache server version 2.0.4.6.which I need to be aware off. My developer is reluctant to upgrade the server to new version of apache and php. Any suggestion, help or pointer in the right direction will be appreciated. Thanks, anup...

Apache 2.0.4.6 (Win) PHP 4.3.4.4
Hello there, We have PHP ver 4.3.4.4 working off Apache server version 2.0.4.6. My developer has developed a bunch of basic web pages which interact with the SQL Server 2000. We exposed the web application to the outside world though port 80 and the server crashed all of a sudden the very next day. Are there any security vulneribities with PHP ver 4.3.4.4 and Apache server version 2.0.4.6.which I need to be aware off. My developer is reluctant to upgrade the server to new version of apache and php. Any suggestion, help or pointer in the right direction will be appreciated. Thanks, anup...

Web resources about - Load average differences between Apache 1.3.37/PHP 4.4.6 and Apache 2.2.4/PHP 5.2.1 - comp.infosystems.servers.unix

Difference - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

3Q EARNINGS: Mark Zuckerberg on the Differences Between Messenger and WhatsApp
When Facebook announced its intent to acquire cross-platform messaging application WhatsApp in February, questions surfaced on whether WhatsApp ...

Facebook Tips: What’s the Difference between Top News and Most Recent?
The following is part of our series, Facebook Tips, which answers some of the most commonly asked questions about using Facebook. While we hope ...

Sole difference in tourism stakes
A GIANT blue stiletto heel dubbed Taiwan’s “shoe church” is bringing a touch of oversized glamour to the island’s southern coast.

Women and weed: the gender differences in cannabis use and abuse
For a growing number of women, smoking dope every day is becoming a worrying habit.

iOS App Store brings in 75% more revenue than Play Store despite difference in downloads
... app store. The iOS App Store now earns 75 percent more revenue than the Google Play Store. This is an increase over the 70 percent difference ...

Sprint cuts customer service jobs, says customers won’t notice a difference
Sprint is reportedly cutting 2,500 jobs, including 2,000 in customer service, but the company told Ars that subscribers won't actually see any ...

Is There Much Difference, Policy-Wise, Between Cruz, Rubio, Herr Trumpf And Ryan?
... Cruz or Rubio gets into the White House, we are in deep, deep trouble. Time to redouble our efforts for the one candidate who can make a difference ...

Sex Assault, Rapes At European Swimming Baths Blamed On 'Cultural Differences'
Public pools in Sweden and Germany are tightening security after a spate of sexual assaults and suspected rapes by migrant bathers on European ...

Sanders on differences with Clinton highlighted in campaign ad - Videos - CBS News
Democratic presidential candidate Bernie Sanders joins “CBS This Morning” from Burlington, Vermont, to discuss his latest campaign ad that explains ...

Resources last updated: 1/28/2016 2:02:46 PM