Skip to content

When moving to parse server - application bug of infinite loop causes 100% CPU crashes #2411

New issue

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

Closed
ronnno opened this issue Jul 27, 2016 · 6 comments · Fixed by #8549
Closed
Labels
state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version

Comments

@ronnno
Copy link

ronnno commented Jul 27, 2016

Application bug caused CPU to reach 100% in some rare cases.
Since in Parse service we were ignorant of these conditions the same code would run, break, and freed by the process timeout mechanism in Parse.

In Parse-server we are suddenly allowed to consume as much CPU as we need (a good thing) but it exposes this bug.
This is not a real parse server issue - it was fixed in our application.

@ronnno ronnno changed the title Parse Server crash with 100% CPU When moving to parse server - application bug of infinite loop causes 100% CPU crashes Jul 30, 2016
@ronnno ronnno closed this as completed Jul 30, 2016
@mkaya93
Copy link

mkaya93 commented Jul 31, 2016

@ronnno how did you fixed that issue ?

Cause I'm facing with this issue too and I'm getting this when my cloud code is empty.

@ronnno
Copy link
Author

ronnno commented Aug 6, 2016

This issue was a bug in one of our cloud code functions that caused an infinite loop.
It was always there - but since Parse.com would not report these issues and just cut the process after 15 seconds of processing we never noticed that in very rare cases the process failed to complete.

Since we moved to our own parse server - there is no process cut off after 15 seconds so the entire server stopped as a result of this bug. we fixed it only after learning how to recreate it on a dev env and then finding the cause was easy using a debugger.

if you don't have cloud code functions or triggers or scheduled jobs running or any javascript code of your own it's hard for me to guess what the reason might be. I would verify that the version you are running is current and create a new issue for this i guess.

And also try to rule out issues with garbage collection as I hear that if set up incorrectly this can cause process stalls. but to my knowledge should eventually free up so if it doesn't ever return to work its not a garbage collection issue.

Hope this helps

@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.1.0-alpha.13

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label May 25, 2023
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.3.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Jun 10, 2023
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.3.0-alpha.1

@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants