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

List Port Standar cPanel

Ini adalah daftar dari semua standar port yang terbuka di Server cPanel. Anda harus membuka semua...

Terminated Akun cPanel dari WHM

Berikut ini adalah panduan cara terminated akun cPanel dari WHM.terminated account adalah fungsi...

Membuat Paket Hosting dari WHM

Berikut ini adalah panduan cara membuat paket hosting dari WHM.Login pada WHMPilih menu...

Merubah Password Akun cPanel dari WHM

Berikut ini adalah cara merubah password akun cPanel dari WHM.Login pada WHMPilih menu “Account...

Upgrade dan Downgrade Akun cPanel dari WHM

Berikut ini adalah panduan cara upgrade/downgrade akun cPanel dari WHMLogin WHMPilih menu...

Powered by WHMCompleteSolution