Nicolás Pascual
Nicolás Pascual

Reputation: 174

user postgres launches process that takes all CPUs 100% usage

User postgres is running a process that take all CPUs at 100% usage in a centos machine, the postgresql service is not running so it cannot be a query.

When I try to stop the process it restarts itself. Then name of the process is somewhat strange.

Information of the running process

Upvotes: 0

Views: 5183

Answers (2)

Loi Pham
Loi Pham

Reputation: 137

I had the same issue on my VPS. I considered to reinstall OS or clone VPS, but have alot of issues on that solution. So, i choose another way: I did:

  • backup all data with "pg_dumpall"
  • backup pqsql configuration(pg_hba.conf,postgresql.conf,...)
  • Uninstall "everything" of pgsql
  • reinstall pgsql
  • restore pgsql data
  • Done

Upvotes: -1

Laurenz Albe
Laurenz Albe

Reputation: 247215

Congratulations!

By exposing a database with a weak superuser password to the internet you invited somebody to break in and use your CPU for their own purposes, probably mining crypto-currencies.

Take the machine from the internet, wipe it clean and re-install the operating system.

Upvotes: 7

Related Questions