Unix Technical Forum

strange hung processes

This is a discussion on strange hung processes within the pgsql Admins forums, part of the PostgreSQL category; --> We're running 7.4.9 and have run into something strange. A group of processes seem to have hung and cannot ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 05:46 AM
Jeremy Ashcraft
 
Posts: n/a
Default strange hung processes

We're running 7.4.9 and have run into something strange.

A group of processes seem to have hung and cannot be killed. netstat
showed that there were no active TCP connections at the time. Sending
SIGTERM to the parent process caused PG to begin its shutdown, but it
never finished. We then kill -9 the postmaster, which caused it to die,
but these child procs remain, even after a clean restart. Our next step
is to reboot the box, but before we do, I'm just curious anyone else has
seen this, why this happened, and if anyone know ways to prevent this
from happening again.....

thanks

--
jeremy ashcraft
operations/development
EDucation GATEways
jashcraft@edgate.com


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 05:46 AM
Jeremy Ashcraft
 
Posts: n/a
Default Re: strange hung processes

I forgot to include the process list:

postgres 13214 5142 0 Jan09 ? 00:00:00 postgres: postgre edgate
10.1.1.3 authentication
postgres 13215 5142 0 Jan09 ? 00:00:00 postgres: postgre edgate
10.1.1.1 authentication
postgres 13216 5142 0 Jan09 ? 00:00:00 postgres: postgre
sn_master 10.1.1.3 authentication
postgres 13217 5142 0 Jan09 ? 00:00:00 postgres: snuser
sn_master 10.1.1.3 authentication
postgres 13218 5142 0 Jan09 ? 00:00:00 postgres: postgre edgate
10.1.1.1 authentication
postgres 13219 5142 0 Jan09 ? 00:00:00 postgres: snuser
sn_master 10.1.1.3 authentication
postgres 13220 5142 0 Jan09 ? 00:00:00 postgres: snuser
sn_master 10.1.1.3 authentication
postgres 13221 5142 0 Jan09 ? 00:00:00 postgres: snuser
sn_master 10.1.1.3 authentication
postgres 13222 5142 0 Jan09 ? 00:00:00 postgres: postgre
sn_master 10.1.1.3 authentication
postgres 13223 5142 0 Jan09 ? 00:00:00 postgres: snuser
sn_master 10.1.1.3 authentication
postgres 13224 5142 0 Jan09 ? 00:00:00 postgres: postgre
sn_master 10.1.1.3 authentication
postgres 13225 5142 0 Jan09 ? 00:00:00 postgres: postgre
sn_master 10.1.1.3 authentication
postgres 13226 5142 0 Jan09 ? 00:00:00 postgres: snuser
sn_master 10.1.1.3 authentication
postgres 13227 5142 0 Jan09 ? 00:00:00 postgres: snuser
sn_master 10.1.1.3 authentication
postgres 13228 5142 0 Jan09 ? 00:00:00 postgres: postgre
sn_master 10.1.1.3 authentication
postgres 13229 5142 0 Jan09 ? 00:00:00 postgres: postgre
sn_master 10.1.1.3 authentication


Jeremy Ashcraft wrote:

> We're running 7.4.9 and have run into something strange.
> A group of processes seem to have hung and cannot be killed. netstat
> showed that there were no active TCP connections at the time. Sending
> SIGTERM to the parent process caused PG to begin its shutdown, but it
> never finished. We then kill -9 the postmaster, which caused it to
> die, but these child procs remain, even after a clean restart. Our
> next step is to reboot the box, but before we do, I'm just curious
> anyone else has seen this, why this happened, and if anyone know ways
> to prevent this from happening again.....
>
> thanks
>



--
jeremy ashcraft
operations/development
EDucation GATEways
jashcraft@edgate.com


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 05:47 AM
Ben Kim
 
Posts: n/a
Default Re: strange hung processes

>We're running 7.4.9 and have run into something strange.
>A group of processes seem to have hung and cannot be killed. netstat
>showed that there were no active TCP connections at the time. Sending
>SIGTERM to the parent process caused PG to begin its shutdown, but it
>never finished. We then kill -9 the postmaster, which caused it to die,
>but these child procs remain, even after a clean restart. Our next step
>is to reboot the box, but before we do, I'm just curious anyone else has
>seen this, why this happened, and if anyone know ways to prevent this
>from happening again.....


If it's not sensitive information, what does this show?

lsof | grep 'pid of hung process'

Regards,

Ben Kim
Developer
http://benix.tamu.edu


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

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 12:51 AM.


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