Here's my software environment
OS:
Windows Server 2016 version 1607
Database:PostgreSQL 12.12
Backend application:Django 4.0.8
RamMap:v1.61
I have memory leakage issue on this server and tried using RamMap to find out what's possibly cause this problem. As you can see in the attached image below, I have a lot of postgres.exe listing on the Processes page with pid and 4K Private bytes, but none of these shows up in Task Manager screen.
All clients access PostgreSQL use http POST via my Django backend application installed on other server.
I've tried some ways but fail:
taskkill /f /pid <PID>did not work since they're not show in Task Manager.- restart PostgreSQL service but theses zombie processes were still there.
- slow down clients access speed but these processes were still increasing.
I have no idea how can I do to kill these processes. Could anyone give me some instructions to solve this problem? or the zombie processes is not even an issue that they will just there and have nothing to do with memory leakage?
After running this query script:
SELECT state, backend_type, count(*) FROM pg_stat_activity GROUP BY state, backend_type ORDER BY backend_type, state;
I have
| state | backend_type | count |
|---|---|---|
| NULL | autovacuum launcher | 1 |
| NULL | background writer | 1 |
| NULL | checkpointer | 1 |
| active | client_backend | 1 |
| idle | client_backend | 1 |
| NULL | logical replication launcher | 1 |
| NULL | walwriter | 1 |
