Unix Technical Forum

Suspicious top output

This is a discussion on Suspicious top output within the Pgsql Performance forums, part of the PostgreSQL category; --> Hello, i have a postgresql server running and from time to time it gets painfully slow. When this happens ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-24-2008, 07:16 PM
Rafael Barrera Oro
 
Posts: n/a
Default Suspicious top output

Hello, i have a postgresql server running and from time to time it gets
painfully slow. When this happens i usually connect to the server and
run a "top" command, the output i get is filled with lines like the
following

71872 pgsql 1 4 0 48552K 42836K sbwait 1:41 4.79%
postgres

Are those connections that were not closed or something like that?

should i worry?

Thanks in advance, as always

yours trully

Rafael


--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 07:16 PM
Ivan Voras
 
Posts: n/a
Default Re: Suspicious top output

Rafael Barrera Oro wrote:
> Hello, i have a postgresql server running and from time to time it gets
> painfully slow. When this happens i usually connect to the server and
> run a "top" command, the output i get is filled with lines like the
> following
>
> 71872 pgsql 1 4 0 48552K 42836K sbwait 1:41 4.79%
> postgres
>
> Are those connections that were not closed or something like that?


This looks like FreeBSD; "sbwait" state is socket buffer wait, and
guessing from the CPU usage the process seems to be talking to another
process.

> should i worry?


Don't know. Are you sure all client processes disconnect properly from
the database?


--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-24-2008, 07:16 PM
Greg Smith
 
Posts: n/a
Default Re: Suspicious top output

On Tue, 22 Apr 2008, Rafael Barrera Oro wrote:

> Hello, i have a postgresql server running and from time to time it gets
> painfully slow.


The usual information you should always include when posting messages here
is PostgreSQL and operating system versions.

> When this happens i usually connect to the server and run a "top"
> command


The other thing you should fire up in another window is "vmstat 1" to
figure out just what's going on in general. The great thing about those
is you can save them when you're done and easily analyze the results later
easily, which is trickier to do with top.

> 71872 pgsql 1 4 0 48552K 42836K sbwait 1:41 4.79%
> postgres


Some searching found this interesting suggestion from Darcy about things
stuck in sbwait:

http://unix.derkeiler.com/Mailing-Li...4-03/0015.html

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:45 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com