How to solve high CPU usage after reboot

Hello,

Each time I reboot the server, htop command showing:
CPU: 1500 %
Command: postgresql/10/main/updatecheckerd -o stratum+tcp://5.189.171.187:3333 -u [key].

When i open the file(postgresql/10/main/updatecheckerd) i found the above command.

can anyone tell me what's going on, please?
Thanks

2 Replies

Firstly, I don't know, I'm not sure what updatecheckerd is.

If everything is working ok besides the high cpu after a reboot, and I assume the cpu goes back to normal after a period. I would guess it's some sort of syncing going for HA, and the syncing might be unavoidable.

I would look into tuning postgres, though. It's possible postres isn't making effective use of available memory so has to do things in a cpu intensive way to compensate.

check out https://pgtune.leopard.in.ua/#/ and docs on tuning postgres

I had the same high cpu use on my server, fixed it whit

vm.overcommit_memory = 2 in /etc/sysctl.conf

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct