How do I terminate all the user process

One the user account in a Cpanel account showing errors “fork: Unable to fork new process” while the user is try to access his shell.

it’s because there would be set a shell session limit for each users in Whm/Cpanel account. on my scenario, it uses suphp in Apache settings and apache uses user credentials to run the application. Mistakenly the devops team set a cronjob wrongly which causes many duplicate script have been executed from shell simultaneously which causes process hogging.

Solution :

How do I count all the active user sessions

root@diantara #ps aux | grep  username

Terminate all the process which that user initiated from the system memory.

Eg : for i in `ps aux | grep username | awk ‘{print $2}’`; do kill -9 $i; done

root@diantara #for i in `ps aux | grep  liju_user  | awk '{print $2}'`; do kill -9 $i; done

Apakah Jawaban ini membantu?

 Cetak Artikel Ini

Baca Juga

Install eAccelerator di cPanel Server

Apa eAccelerator?Ya, sebelum menuju langsung ke langkah-langkah instalasi, Anda harus tau...

Disable Authenticate POP before SMTP

This is the default behavior of email server settings on WHM/Cpanel servers and probably there is...

Membuat Akun cPanel dari WHM

Berikut ini adalah panduan cara membuat akun cPanel dari WHM.Login WHMPilih menu “Account...

Install dan Konfigurasi CSF (Config Server Firewall) di CentOS/cPanel

CSF ini merupakan singkatan dari Config Server Security & Firewall. CSF adalah untuk...

Panduan Installasi cPanel

PendahuluancPanel merupakan software untuk mengubah server mandiri menjadi otomatis...

Powered by WHMCompleteSolution