We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have symfony based application, in which we are running command in crontab
1 0 * * * /usr/bin/php /home/ec2-user/public_html/project/app/console myproject:currency:update
Change to
1 0 * * * /usr/bin/cpulimit -l 10 /usr/bin/php home/ec2-user/public_html/project/app/console myproject:currency:update
Does this work?
The text was updated successfully, but these errors were encountered:
1 0 * * * cpulimit -l 10 (Some Script/Program) & This works for me. Im on a rpi3 B running jessie.
Sorry, something went wrong.
I have added this to crontab, sometimes cpulimit is not applied to cron command. Any reason?
I am using symfony process creation method to run command
$commandline=/usr/bin/cpulimit -l 10 /usr/bin/php home/ec2-user/public_html/project/app/console myproject:currency:update
$process = new Process($commandline); $process->setWorkingDirectory($rootDirPath); $process->disableOutput(); $process->setTimeout(0); $process->run();`
When doing top -c command in console process showing without /usr/bin/cpulimit -l 10
/usr/bin/cpulimit -l 10
After some minutes of troubleshooting, It seems that using the option -mor --monitor-forks is working for me: cpulimit -m -l 10 COMMAND
-m
--monitor-forks
cpulimit -m -l 10 COMMAND
No branches or pull requests
I have symfony based application, in which we are running command in crontab
Change to
Does this work?
The text was updated successfully, but these errors were encountered: