In fact, I am running a program of four demons. This makes the postgres connection, and it disconnects once with the products. But when I put ps aux, there are a lot of idle postgres processes running on my system. I just want to know the initiator of each idle postres process. So, I was able to find out which process is not closing the postgres connection properly.
Thanks at Advance.
Use the following command
netstat -ntp
It will show the process ID and process name of the creator of the postgres connector.
postgresql 9.0, " " , , . (Perl):
$dbh = DBI->connect("dbi:Pg:application_name=test/$$", undef, undef)
, , .
TCP/IP, pg_stat_activity , lsof ( netstat -p), .
pg_stat_activity
lsof
netstat -p
. postgreSQL SQL?
pid uid
Source: https://habr.com/ru/post/1777646/More articles:SVN interceptors stopped working suddenly - svnColumn for fitting (css) - htmlProblem with Delphi transfer - OLE (RsLinx OPC, Group Adding work only from constants) - stringErlang reading the body of an HTTP request as it is received - httpMultiple jquery ajax on page not working - jqueryРазвертывание context.xml для webapps/[webappname]/META-INF - tomcatWhat is the best way to programmatically determine if TLabel is cropped (i.e. Drawn using ellipsis)? - ellipsisCOUNT (1) OVER () with Linq to Sql - sqlHow can I delete a file from a branch and return to the trunk version? - svnFiltering Unwanted Character Strings in Java - javaAll Articles