nyanhost

Active Member
Nov 4, 2013
28
0
1
cPanel Access Level
Root Administrator
Hello!

top: 1604 total, 1 running, 1603 sleeping

I have user with 1 crontab note.
For 1 crontab note has been created 4 processes.

ps aux
Code:
root     31816  0.0  0.0 142272  1680 ?        S    04:38   0:00 CROND
root     32570  0.0  0.0   6184   808 ?        Ss   02:54   0:00 jailshell (user000) [32578] ell -c /usr/bin/php /home/user000/file.php
user000  32578  0.0  0.0   6184   400 ?        S    02:54   0:00 jailshell (user000) [init] hell -c /usr/bin/php /home/user000/file.php
user000  32580  0.0  0.0 418680 14928 ?        S    02:54   0:00 /usr/bin/php /home/user000/file.php

I entered "pkill -u UID".
And received:

Tasks: 238 total, 2 running, 236 sleeping,


How I can limit the time their existence? How fix it?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

To clarify, are you concerned with the amount of time it's taking for those cron jobs to finish? If so, try executing the cron jobs manually to see if they complete successfully. You may need to investigate those PHP scripts to see why they are hanging.

Thank you.
 

nyanhost

Active Member
Nov 4, 2013
28
0
1
cPanel Access Level
Root Administrator
Hello!
To clarify, are you concerned with the amount of time it's taking for those cron jobs to finish?
Not! :)

You may need to investigate those PHP scripts to see why they are hanging.
PHP script has been successfully completed. But processes jailshell & CROND are sleeping in the system...
It is inconvenient when I have 1600 the sleeping processes.
May be I can someway to setup the limits for it?

Thank you.

Also I am spending 2GB RAM Memory for this processes.

If I use the /usr/bin/php /blabla/the_script.php in the root console, script completed successfuly. And my process is not sleeping.

If user use the cronjob "/usr/bin/php /blabla/the_script.php" then script completed successfuly, but jailshell and crond are sleeping...
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Could you open a support ticket using the link in my signature so we can take a closer look to see exactly what you are describing? You can post the ticket number here so we can update this thread with the outcome.

Thank you.