Hi, please help to have a look about this issue on my odoo server running for 5 years.
It seems that postgres process consumes high CPU recently, and the CPU usage is reached to 100% all the time. Here is the htop result below, PID 12765 of postgres process is 67.3%, but nobody is using the server.
Try to fix:
- run this command:
sudo -u postgres psql -c " SELECT pid,
now() - query_start AS duration,
left(query,120) AS sql,
state FROM pg_stat_activity WHERE state='active'
ORDER BY query_start;"
and showing this below, but i don't know how to fix it. please help.