This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
CPU usage showing 100% memory usage #61
Unanswered
salmanAhmad143
asked this question in
Q&A
Replies: 3 comments 7 replies
-
I can only say that I'm not seeing that problem on my end. Should you find that the package is in error, feel free to submit a PR that resolves the problem. |
Beta Was this translation helpful? Give feedback.
3 replies
-
How solve this? |
Beta Was this translation helpful? Give feedback.
1 reply
-
i had the same issue when using it in production server , i decided later to use a supervisor to run it |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thanks for creating this awesome library. I just starting to use this. My requirement was to run the command every 20 seconds. Everything was working fine but as soon as I moved it to the production server. Suddenly my CPU usage has been showing 100% memory usage. I don't know what's going on and how to handle this problem.
`
protected function shortSchedule(\Spatie\ShortSchedule\ShortSchedule $shortSchedule)
{
// this artisan command will run every 20 second
$shortSchedule->command('check:connectionExpire')->everySeconds(20);
}
`
Below is the command that I had set up on my server crontab-
php /var/www/mySite/artisan short-schedule:run 1>> /dev/null 2>&1
Could you please suggest to me what I can do to overcome this problem?
Awaiting your reply.
Regards,
Salman Ahmad
Beta Was this translation helpful? Give feedback.
All reactions