pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedConnection Limit
5+ messages / 3 participants
[nested] [flat]
* Connection Limit
@ 2007-07-30 21:29 Jon Horsman <horshaq@gmail.com>
0 siblings, 2 replies; 5+ messages in thread
From: Jon Horsman @ 2007-07-30 21:29 UTC (permalink / raw)
To: pgsql-sql
Hello,
I have a server running postgres 7.4.13 and am starting to see errors
"FATAL: connection limit exceeded for non-superusers".
I'm not sure which one of my applications are hogging all of the
connections, is there a way debug this somehow?
Thanks,
Jon.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Connection Limit
@ 2007-07-30 21:41 Jon Horsman <horshaq@gmail.com>
parent: Jon Horsman <horshaq@gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: Jon Horsman @ 2007-07-30 21:41 UTC (permalink / raw)
To: pgsql-sql
I have another related question
when running ps -fax i see the following
<snip>
7476 ? S 0:00 | \_ postgres: mobileuser
mobileextension [local] idle
8046 ? S 0:00 | \_ postgres: mobileuser
mobileextension 127.0.0.1 idle
<snip>
I have a few processes that are running with host = 127.0.0.1 and then
about 90% of all the processes are running as [local]. What does
[local] mean, since in fact 127.0.0.1 is obviously local, how do they
differ?
Thanks,
Jon.
On 7/30/07, Jon Horsman <horshaq@gmail.com> wrote:
> Hello,
>
> I have a server running postgres 7.4.13 and am starting to see errors
> "FATAL: connection limit exceeded for non-superusers".
>
> I'm not sure which one of my applications are hogging all of the
> connections, is there a way debug this somehow?
>
> Thanks,
>
> Jon.
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Connection Limit
@ 2007-07-30 21:51 Andrew Sullivan <ajs@crankycanuck.ca>
parent: Jon Horsman <horshaq@gmail.com>
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Sullivan @ 2007-07-30 21:51 UTC (permalink / raw)
To: pgsql-sql
On Mon, Jul 30, 2007 at 05:41:51PM -0400, Jon Horsman wrote:
>
> I have a few processes that are running with host = 127.0.0.1 and then
> about 90% of all the processes are running as [local]. What does
> [local] mean, since in fact 127.0.0.1 is obviously local, how do they
> differ?
I _believe_ [local] means UNIX domain socket. As to your other
question, either ps or pg_stat_activity is your friend.
A
--
Andrew Sullivan | ajs@crankycanuck.ca
The very definition of "news" is "something that hardly ever happens."
--Bruce Schneier
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Connection Limit
@ 2007-07-30 22:20 Scott Marlowe <scott.marlowe@gmail.com>
parent: Jon Horsman <horshaq@gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: Scott Marlowe @ 2007-07-30 22:20 UTC (permalink / raw)
To: Jon Horsman <horshaq@gmail.com>; +Cc: pgsql-sql
On 7/30/07, Jon Horsman <horshaq@gmail.com> wrote:
> Hello,
>
> I have a server running postgres 7.4.13 and am starting to see errors
> "FATAL: connection limit exceeded for non-superusers".
>
> I'm not sure which one of my applications are hogging all of the
> connections, is there a way debug this somehow?
try netstat -an|grep 5432
assuming you're running pgsql on port 5432. The nice thing about this
trick is that since postgresql uses /tmp/.s.PGSQL.5432 for local
connections, you'll see those too.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Connection Limit
@ 2007-07-31 19:06 Jon Horsman <horshaq@gmail.com>
parent: Scott Marlowe <scott.marlowe@gmail.com>
0 siblings, 0 replies; 5+ messages in thread
From: Jon Horsman @ 2007-07-31 19:06 UTC (permalink / raw)
To: pgsql-sql
Thanks for the help guys, i'll try your suggestions when i get a chance.
Jon.
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2007-07-31 19:06 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-07-30 21:29 Connection Limit Jon Horsman <horshaq@gmail.com>
2007-07-30 21:41 ` Jon Horsman <horshaq@gmail.com>
2007-07-30 21:51 ` Andrew Sullivan <ajs@crankycanuck.ca>
2007-07-30 22:20 ` Scott Marlowe <scott.marlowe@gmail.com>
2007-07-31 19:06 ` Jon Horsman <horshaq@gmail.com>
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