Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linux : Finding the postgres idle process originator

Actually , I am running four daemon program. It makes postgres connection, and it disconnects once through with the stuffs. But When I am putting ps aux , there are lot of postgres idle process being run in my system. I just want to know , originator of the each idle postres process. So, that I could find out which process does not close postgres connection properly.

Thanks in Advance .

like image 990
Pavunkumar Avatar asked Apr 07 '26 08:04

Pavunkumar


1 Answers

Use following command

netstat -ntp

It will show the process id and process name of postgres connector creator.

like image 91
Pavunkumar Avatar answered Apr 10 '26 01:04

Pavunkumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!