-
Notifications
You must be signed in to change notification settings - Fork 658
High CPU usage after a while #379
Comments
I have the same problem, with laravel 7 and laravel-websockets - 1.4.0 - only two users testing After killing the process, supervisor starts it again and works fine. |
I run into the same problem on my server. My server has 8 cores and each of them has 3.2GHz. Our application is used by max. 500 people at the same time. And only a little section of our application joins websocket channels. |
2.x managed to somehow fix the issues related to performance. Make sure to check this PR and if you can (only if you can; it can cause breaks) you can upgrade to
|
@rennokki Thanks for the work you've done to track it down. I'll see if I can update it to 2.x and report back. |
@rennokki Thanks! |
Come back if the issues persist. |
So the issue was with Ignition package, please see laravel/framework#33952 (comment) for quick-fix and https://github.com/facade/ignition/issues/307 for the PR follow-up. |
I published the flare config and set the I use |
Did you find a solution? |
@victornoleto I think the solution is to update to v2 but it's still marked as beta. I still get the issue, I just restart the process every now and then. It doesn't stop the functionality of the web socket. |
I'm also having issues with that, using v2.0.0-beta.36 and laravel 8.40 |
In case anyone having this issue, it seems I could figure it out upgrading to latest v1 (at the time of writing this comment 1.13). An issue also occured when running websockets daemon from non-existing folder (after few deployments the old ones have been removed and daemon continued to run from non-existing folder). I figured it out by running |
I am testing this config:
|
63 Peak Connections
40 Websocket Messages
3 API Messages
Seen this happen few times. Websockets still work but it's maxing out at 99-100% CPU usage. I use port 2096 for Cloudflare proxy to pick it up. I use Supervisor to keep it running. I use release folders same as Laravel Envoyer.
Anyone seen or know why this might be?
The text was updated successfully, but these errors were encountered: