Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

4K
Visualizações
kthreaddk in postgres uses high cpu

I used Postgres in node.js project but my cpu is 100% in ubuntu server

I used this command

killall -9 kthreaddk

I stopped my project and stop postgresql service, after killing kthreaddk cpu is 0% but after 30 second kthreaddk run again and cpu will be 100% agian

what is khtreaddk and how to stopped it forever?

I try many ways that here is in stackoverflow but I can't solve it

enter image description here

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

kthreaddk is started by cron job. After it runs, it usually places its code in different directories and keeps updating crontab all the time.

To get rid of it follow these steps:

  1. Identify which user crontab is running it.
$ cd /var/spool/cron/crontabs
# Preview each file here, e.g.
$ cat www-data
* * * * * /run/c8aaf4bea

The /run/c8aaf4bea looks weird, but do not remove it yet...

  1. Block specific user from updating crontab (e.g. www-data). Edit cron.deny file
$ sudo vim /etc/cron.deny

and add a user name

www-data

Now the threaddk process is not able to edit crontab anymore.

  1. Kill all the threaddk processes
$ sudo pkill -9 threaddk
  1. Remove suspected line from the crontab
$ sudo vim /var/spool/cron/crontabs/www-data
* * * * * /run/c8aaf4bea     <- remove this line
  1. Remove the user from cron.deny file
over 4 years ago · Santiago Trujillo Relatório

0

It's miner. It use crontab for restart(start) itself.

crontab -u postgres -l

I have similar problem. Just remove job from crontab and restart server imidiatly

over 4 years ago · Santiago Trujillo Relatório

0

I had miner on my vps. My CPU usage was always 100%. First moment i was thinking i have memory leak in my java app or tomcat. I could kill process but it was starting another one in few seconds. In my case it was on user account which i didn't use. I killed all user processes with pkill -u username and then fast deleted user by sudo deluser --remove-home username before miner started its' processes. After this vps worked fine. Maybe it will help someone.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda