Re: postgresql + apache under heavy load - Mailing list pgsql-general

From Tom Lane
Subject Re: postgresql + apache under heavy load
Date
Msg-id 23502.1074720901@sss.pgh.pa.us
Whole thread Raw
In response to Re: postgresql + apache under heavy load  ("scott.marlowe" <scott.marlowe@ihs.com>)
Responses Re: postgresql + apache under heavy load  (Alex Madon <alex.madon@bestlinuxjobs.com>)
List pgsql-general
"scott.marlowe" <scott.marlowe@ihs.com> writes:
> OK, the memory usage is NOT your problem.  You have crashing postgresql
> backends, see the <defunct> and the listing of 3 zombie processes in top?
> That's bad.  You very likely have bad memory in your box, or possibly
> other hardware problems.

While that could be true, the presence of a few zombie processes hardly
proves it.  What that says to me is that the box is so loaded that the
postmaster isn't able to reap dead children instantaneously --- that is,
what we see is top running between the time that a backend quits and the
time the postmaster next gets to run.

While we don't have a lot of data for determining why the overload,
the top output:

>> CPU states:  91.8% user   8.1% system   0.0% nice   0.0% iowait   0.0% idle

sure looks like the bottleneck is CPU cycles, not disk (and not RAM
either, since RAM shortage would lead to swapping and hence disk waits).
Furthermore, the listing looks like it is the httpd processes that are
sucking CPU, not Postgres.  I think this is actually not Postgres'
problem at all, but some inefficiency in the site's Web code.

            regards, tom lane

pgsql-general by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: postgresql + apache under heavy load
Next
From: Alex Satrapa
Date:
Subject: Re: SCO Extortion