Trivadis / pgbasenv

pgBasEnv - PostgreSQL Base Environment Tool
https://github.com/Trivadis/pgbasenv
Apache License 2.0
9 stars 3 forks source link

do not use lsof or netstat/ss if not needed #12

Closed cyrmue closed 2 years ago

cyrmue commented 2 years ago

The resource consumption of lsof/netstat/ss could be quite significant a lots of clusters and pids it could be one of the top commands, if you are using pgoperate and the daemon (which checks the state of the postgres).

some thought about this change:

rolandstirnimann commented 2 years ago

Thank you @cyrmue for this input. I fully agree with you. Regarding the comment "Check lsof location. Required for remote execution." I checked the history but did not find anything that should interfere somehow. I did also some tests in pgOperate and could not find any issue related to this change.