Search Postgresql Archives

Re: Hungry postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Ilja Golshtein" <ilejn@xxxxxxxxx> writes:
> At the moment on my Linux box I have process 
> 'postmaster' eats all CPU. It corresponds 
> with connection closed day before - 
> not sure if it was normal disconnect. 
> strace shows the process constantly 
> makes 'send' syscall with EPIPE result. 
> Any ideas how to trace this issue 
> and/or prevent such thing in the future?

Send it a SIGINT and see if it goes away.

If so, I would bet that someone did an unconstrained join (ie SELECT
the cross product of some large tables) and killed their client instead
of waiting for the result.  It's not hard to write a SQL query that will
produce terabytes of output :-(

If SIGINT doesn't kill it pretty quickly, try attaching to it with gdb
so you can get a stack trace.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux