Skip to content
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

Slow response, high cpu and errors in log #359

Closed
Redferne opened this issue Feb 11, 2017 · 12 comments
Closed

Slow response, high cpu and errors in log #359

Redferne opened this issue Feb 11, 2017 · 12 comments
Assignees
Labels
Milestone

Comments

@Redferne
Copy link

My MC instance on a RPI3 slowed to a crawl and hogged 99% of the CPU. There are alot of SQL errors in the log. Is this normal? Log here:

https://drive.google.com/file/d/0B9erfGyVgWBlX1BncHRzQThqcFU/view?usp=drivesdk

@jkandasa
Copy link
Member

@Redferne Is this latest version of SNAPSHOT? recently I have changed database version. That might fix this issue.

@Redferne
Copy link
Author

@jkandasa New log available on todays snapshot. Not sure if I feel any difference. Still sluggish and drawing graphs spanning a month takes forever on my Raspberry Pi 3. Still some errors in the log though. (https://drive.google.com/file/d/0B9erfGyVgWBlMWZjeFRTQTJsWFk/view?usp=drivesdk)

@cimba007
Copy link

cimba007 commented Feb 18, 2017

Got the same feeling. After I upgraded to the snapshot like 1-2 weeks ago everything feels "slow".

Selecting different time-spans for battery-level doesn't work at all.

Selected last month .. nothing changes ..

image

Upadte: Currently testing snapshot from 12.02. .. battery history seems to be still broken?! Performance is under test

@jkandasa
Copy link
Member

@Redferne @cimba007 Can you post screen shot of Status >> System status

@cimba007
Copy link

(History of SensorValues is working fine btw! Only VCC-History not)

image

@jkandasa
Copy link
Member

@cimba007 you mean only battery graph is not working good?

@cimba007
Copy link

cimba007 commented Feb 18, 2017

Yeah,

upon chganging the interval I can observe that there timestampFrom is changed according to dropdown option. Check the second picture. The returned values do not reflect timestampFrom but are all the same no matter what value I pick from History-Dropdown option.

image

image

Edit: Maybe related to this change?

06c0607

(The REST api is with timestampFrom, duration etc. is working fantastic btw.!!!)

@Redferne
Copy link
Author

@cimba007

Cool log. Which tool do you use to visualise the api calls?

@cimba007
Copy link

cimba007 commented Feb 19, 2017 via email

@jkandasa
Copy link
Member

@cimba007
Copy link

Nice, glad you found it so quickly!

@jkandasa jkandasa self-assigned this Feb 21, 2017
@jkandasa jkandasa added the bug label Feb 21, 2017
@jkandasa jkandasa added this to the 0.0.3.Final milestone Feb 21, 2017
@cimba007
Copy link

@jkandasa: fixed, is working again, ty

@jkandasa jkandasa modified the milestones: 0.0.3.Final, 1.0.0.Final Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants