Memory section only updates on page refresh.
Closed this issue · 16 comments
I have been running this on a couple of Pis and it happens on all of them.
After running Berryio for a while, I have to refresh the page to get updated Memory data.
Hi Salvorin,
The automatic updates are achieved by having a small Javascript program on the status page which is downloaded and run in the browser. This program loops around repeatedly requesting the latest information from the Pi using the HTML API.
If the page stops updating this will be because either the browser can't access the Pi over the network anymore or the Javascript program in the browser is crashing. The reason you are seeing the problem on all your Pi's is because the issue is in the browser and not the Pi.
In your case it sounds like it might be the Javascript crashing? How long is it running before it stops updating, are we talking about a few minutes, or is it hours? Could you help me resolve the problem and please test the page using a different browser?
Thanks for any help!
Daniel
Well, I can see that the java thing might be an issue, however the other modules DO update.
System Load, CPU Readings do update on a regular basis, so I don't think it's the java script on 3 different OS's using the latest Chrome.
It seems to happen, when I either open a program on the Pi then I have to refresh the page to see the new memory load. Or after closing a program on the Pi to see the new memory load.
It also seems to be mainly the GPU, Apps and Cache bars that change the most after a page refresh.
Ooo.. so only the memory updates stop, thats interesting.
Can you do me a favour and hit F12 in Chrome to go into diagnostics mode and look at the network tab.
You should see it polling for cpu_status, disk_status and memory_status. When it goes wrong can you check all three are still polling correctly?
All three of those appear to be polling normally
Did you say you were rebooting the Pi?
Yes I would expect it to require a page refresh if you did that.
I've been discussing this issue with some other developers and we think maybe the only sensible thing to do is automatically refresh the page every 5 mins or so, not sure what your thoughts on that are.
That sounds reasonable. I use Berryio to monitor 2 Pi's one model B and one model B+, I don't think that the refresh every 5 mins will have that much impact on the monitoring system, whether it's Linux or Windows.
Just an additional thought, maybe it could be 5 mins by default but as an option the refresh could be set to a customized amount of time, via either a config file or a drop down box.
Yeah that would be what I would do.
I tried what you wrote berryio, but I open the browser midfielder seeking landing, the account password I do not know, tell me cry, and look forward to your reply, thank you
The password is the same as your Raspberry Pi login, which means if you haven't changed it its pi for the username and raspberry for the password.
Mr.Bull,your berryio are pretty good!Could you please share the LCD1602 circuit diagram to me .much more shanks.Because of translation problems, just could not clearly express, I am deeply sorry
This can be closed now, I don't know why this other user is using this for another topic.