pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedLots of postmaster processes
4+ messages / 2 participants
[nested] [flat]
* Lots of postmaster processes
@ 2005-12-13 17:24 Ameet Kini <akini@cs.wisc.edu>
2005-12-13 18:18 ` Re: Lots of postmaster processes Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Ameet Kini @ 2005-12-13 17:24 UTC (permalink / raw)
To: pgsql-admin
In our installation of the postgres 7.4.7, we are seeing a lot of the
following postmaster processes (around 50) being spawned by the initial
postmaster process once in a while:
postgres 3977 1 1 Nov03 ? 15:11:38
/s/postgresql-7.4.7/bin/postmaster -D /scratch.1/postgres/condor-db-7.4.7
......
postgres 31985 3977 0 10:08 ? 00:00:00
/s/postgresql-7.4.7/bin/postmaster -D /scratch.1/postgres/condor-db-7.4.7
postgres 31986 3977 0 10:08 ? 00:00:00
/s/postgresql-7.4.7/bin/postmaster -D /scratch.1/postgres/condor-db-7.4.7
postgres 31987 3977 0 10:08 ? 00:00:00
/s/postgresql-7.4.7/bin/postmaster -D /scratch.1/postgres/condor-db-7.4.7
postgres 31988 3977 0 10:08 ? 00:00:00
/s/postgresql-7.4.7/bin/postmaster -D /scratch.1/postgres/condor-db-7.4.7
......
At the same time when these processes being spawned, sometimes there is
also the checkpoint subprocess. I am not sure if that is related. The
document doesn't provide any information. The other activity going on at
the same time is a 'COPY' statement from a client application.
These extra processes put a considerable load on the machine and cause it
to hang up.
Thanks,
Ameet
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Lots of postmaster processes
2005-12-13 17:24 Lots of postmaster processes Ameet Kini <akini@cs.wisc.edu>
@ 2005-12-13 18:18 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-12-13 18:43 ` Re: Lots of postmaster processes Ameet Kini <akini@cs.wisc.edu>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2005-12-13 18:18 UTC (permalink / raw)
To: Ameet Kini <akini@cs.wisc.edu>; +Cc: pgsql-admin
Ameet Kini <akini@cs.wisc.edu> writes:
> In our installation of the postgres 7.4.7, we are seeing a lot of the
> following postmaster processes (around 50) being spawned by the initial
> postmaster process once in a while:
Lots of postmaster processes can only come from lots of connection
requests. You need to look at the behavior of your client code and
see why it's doing that.
It might also be helpful to use a "ps" command that shows you the
per-process state displays rather than the original postmaster arguments.
What platform are you on? The only one I know of offhand that does
the latter by default is Solaris --- see FAQ_Solaris for how to work
around it.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Lots of postmaster processes
2005-12-13 17:24 Lots of postmaster processes Ameet Kini <akini@cs.wisc.edu>
2005-12-13 18:18 ` Re: Lots of postmaster processes Tom Lane <tgl@sss.pgh.pa.us>
@ 2005-12-13 18:43 ` Ameet Kini <akini@cs.wisc.edu>
2005-12-13 19:10 ` Re: Lots of postmaster processes Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Ameet Kini @ 2005-12-13 18:43 UTC (permalink / raw)
To: pgsql-admin
We're running on tao linux. And yes, there are many client connection
requests sent to the server at the same time. My impression was that
client connection requests usually show up as a postgres process not
postmaster but I could be wrong. Is it that the postmaster forks off a
process on receiving a client connection request and then renames the
process to postgres and I'm issuing my ps command while its in the
intermediate state when its still called postmaster?
Thanks,
Ameet
On Tue, 13 Dec
2005, Tom Lane wrote:
> Ameet Kini <akini@cs.wisc.edu> writes:
> > In our installation of the postgres 7.4.7, we are seeing a lot of the
> > following postmaster processes (around 50) being spawned by the initial
> > postmaster process once in a while:
>
> Lots of postmaster processes can only come from lots of connection
> requests. You need to look at the behavior of your client code and
> see why it's doing that.
>
> It might also be helpful to use a "ps" command that shows you the
> per-process state displays rather than the original postmaster arguments.
> What platform are you on? The only one I know of offhand that does
> the latter by default is Solaris --- see FAQ_Solaris for how to work
> around it.
>
> regards, tom lane
>
Ameet
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Lots of postmaster processes
2005-12-13 17:24 Lots of postmaster processes Ameet Kini <akini@cs.wisc.edu>
2005-12-13 18:18 ` Re: Lots of postmaster processes Tom Lane <tgl@sss.pgh.pa.us>
2005-12-13 18:43 ` Re: Lots of postmaster processes Ameet Kini <akini@cs.wisc.edu>
@ 2005-12-13 19:10 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2005-12-13 19:10 UTC (permalink / raw)
To: Ameet Kini <akini@cs.wisc.edu>; +Cc: pgsql-admin
Ameet Kini <akini@cs.wisc.edu> writes:
> We're running on tao linux. And yes, there are many client connection
> requests sent to the server at the same time. My impression was that
> client connection requests usually show up as a postgres process not
> postmaster but I could be wrong. Is it that the postmaster forks off a
> process on receiving a client connection request and then renames the
> process to postgres and I'm issuing my ps command while its in the
> intermediate state when its still called postmaster?
A bit hard to believe, unless there's something delaying the
subprocesses from reaching their first set_ps_display() call.
Offhand it looks like DNS problems could cause that (especially if
you've got log_hostname enabled), or broken client code that doesn't
send the whole startup packet immediately.
However, a backend that's hung up that early in the startup process
really shouldn't be consuming noticeable resources, so I'm not sure why
this would create a performance issue for you.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2005-12-13 19:10 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-12-13 17:24 Lots of postmaster processes Ameet Kini <akini@cs.wisc.edu>
2005-12-13 18:18 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-12-13 18:43 ` Ameet Kini <akini@cs.wisc.edu>
2005-12-13 19:10 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox