CPU usage 100% for Thingworx Postgresql
Hi,
In customer's system, the CPU usage is 100% because of the processes of PostgreSQL.
- If restart the postgresql service , then the cpu usage will creep to 100% in about 10~15 minutes
- The event processing subsystem received 1.5 tasks per seconds . The active threads will increase until 75 (see the attached picture )
- Thingworx can work about 1 hour when cpu is 100% , then will found lots of error "Connection to localhost:5432 refused" in ErrorLog.log .
- No dead lock found by running the sql "select pid,
usename,
pg_blocking_pids(pid) as blocked_by,
query as blocked_query
from pg_stat_activity
where cardinality(pg_blocking_pids(pid)) > 0;" - Query the table pg_stat_activity, found lots of long xact_stay, but no long query_stay. (see the attached picture )
- CPU usage. (see the attached picture )
Any idea about it ? The workload is not so heavy , why is the CPU usage so high?
----------------------Version-----------------------------------
Thingworx 8.4.4, Windows server 2016, Postgresql 10.7




Regards,
Sean
