-
Notifications
You must be signed in to change notification settings - Fork 112
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
CPU Load very high #215
Comments
How much? |
I have disabled nearly all stuff. Only No motion detection record or onfiv is enabled |
Please: login with ssh, run top and share the screen |
The problem is that the web interface and ssh is often so slow that I can hardly connect to it. The rtsp stream also fails after a few hours. Then only a restart of the cam helps. I just restarted the cam and try to figure it out. |
Something is wrong. |
Yes :D any ideas to try? |
I need some logs. |
rmm, normally it's about 30%. |
Everything of this services is off. After some runtime the cam doesn't give me the rtsp stream. |
Very strange.
|
Did you solve the problem? |
No :( still the same. Replace hardware does not bring a different result |
Did you block the internet connection of the cam with a firewall/router? |
Yes it's blocked! |
Now I have allowed http and https traffic. I hope that helps. I give you the information after some days |
Now it's working for more than 24h without problems. But I have to allow all traffic. Only http and https is not enaugh. I hope you could fix this bug :) |
I'm sorry but this problem is out of my scope. Maybe we could try to kill the process that run out of memory. |
how about a script that writes a log to the SD every minute? You could even include this as debugging directly into the firmware. Then I can upload this one to you |
Unfortunately I was happy too early. The error appears again :( |
Create the file /tmp/sd/yi-hack/startup.sh
Share the log with me in a few days. |
did you check if the cam is still connected to wifi when the issue occurs? in my case it is always not connected to the wlan @roleoroleo I see the CPU between 30 and 40%. I copied your script to add further details on this issue. Just an information: in tmp/sd there weren't a folder "yi-hack" so i created it. is it normal? |
@fabiosci The PTZ of the GUI is still working when RTSP is not working. I had to create the folder for the log. Since I don't know if the script is now executed automatically on startup, I executed it with startip.sh &. Let's wait and see what happens here. |
Yes, it's normal. |
if your cam appears online your behaviour is different. from my router i see it offline. A news is that this happens also with "Disable cloud" OFF and internet connection allowed. I'm not sure that our issues are related... |
Last connection lost on 01.09.2020-08:46
|
The log doesn't show strange behaviors. I would like to know if the problem is only rtsp daemon.
|
I will gladly check that. |
All Stuff from ps
The Server is running " 2985 root 0:00 rRTSPServer"
netstat looks OK
after killing the process and restarting the server its getting terminated :( and again ps and netstat
|
The watchdog wd_rtsp.sh should solve your issue: if rRTSPServer is blocked, it cannot send the stream to the connected clients. In your first ps h264grabber is missing and this is not ok. |
Big Thanks! |
Do you want to try this commit manually? |
What's to do to manually change it? |
Edit /home/yi-hack/script/wd_rtsp.sh |
I changed the file. I give you feedback on some days |
So the adjustment has brought an improvement. When the image is gone, it works again after a few minutes. |
Still working like charm |
Still working. I think you could add this to the actual build :) |
Ok, thanks. |
i have flashed a BFUSY. but when i enable the rtsp the cpu load is very high. is that normal or any ideas to reduce it?
The text was updated successfully, but these errors were encountered: