-
-
Notifications
You must be signed in to change notification settings - Fork 986
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
Red5 CPU usage 100% #252
Comments
How do you arrive at this conclusion and what are your steps to reproduce the issue? |
I rebuilt the red5 from source code and and added the logs to confirm. After that I modified this file (RTMPProtocolDecoder.java) to avoid the infinite loop which fixed my problem. |
@anvishwakarma would you mind posting what you changed and where this supposed infinite loop is located? Also have you tested the latest pre-release? https://github.com/Red5/red5-server/releases/tag/v1.0.10-M9 |
In the |
We tried with release 1.0.10-M9. But it has the same issue. |
Issue
The red5 threads enter in infinite loop and consumes 100% cpu.
Short description
When RTMP client disconnects, it is not able to clear the session buffer and while trying to do so it enters in infinite loop due to incorrect logic in RTMPProtocolDecoder.java (decodebuffer).
Environment
Operating system and version: Ubuntu 16.04
Java version: java 8
Red5 version: 1.0.9
Expected behavior
Session should be disconnected and all resources released.
Actual behavior
Session disconnects but enters in infinite loop
The text was updated successfully, but these errors were encountered: