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

Slowness on Octoprint API #374

Closed
crashburn65 opened this issue Feb 12, 2014 · 8 comments
Closed

Slowness on Octoprint API #374

crashburn65 opened this issue Feb 12, 2014 · 8 comments
Labels
needs information More information is needed to further process this issue or PR

Comments

@crashburn65
Copy link

Hi all,

I'm on the devel branch.

When I'm printing a job, uploading a file as well as querying the printer (api/job) both via the API, I'm getting Timeout::Errors.

Is there currently multi-threaded support or are there plans for one?

@foosel
Copy link
Member

foosel commented Feb 15, 2014

The communication with the printer already happens in its own thread. What's the load on the system?

@crashburn65
Copy link
Author

An average of 0.87 on a 512MB Raspi (Octopi image).

Initially I suspected that it was an IO issue, but iotop doesn't point to any anomaly.

@foosel
Copy link
Member

foosel commented Feb 15, 2014

Might also be something related to #357

Otherwise, I'm a bit at a loss. Will try to do some testing ASAP to see if I can reproduce it on a Pi -- no luck locally.

@foosel
Copy link
Member

foosel commented Mar 3, 2014

Do you also see symptoms as described in #390 ?

@foosel
Copy link
Member

foosel commented Apr 1, 2014

@davidchua Still waiting for feedback here ;)

@crashburn65
Copy link
Author

Hi @foosel sorry I dropped the ball here, had a busy month and missed the notifications.

I'm back now :)

Its not the same as #390. My load average is < 1 at all 3 intervals. The highest peak I got was about 40-50% CPU usage on the python octoprint thread on my Raspi 512MB.

I'm still having this problem. A simple HTTP GET to /api/job for example can take up to 10-30 seconds to return.

I've just added benchmarking on my app that utilizes the API, will get back to you in a day or two with actual results.

@foosel
Copy link
Member

foosel commented Jul 9, 2014

@davidchua any update here?

@foosel
Copy link
Member

foosel commented Jul 27, 2014

Closing until more information is available (e.g. the mentioned benchmarking results) since for the life of me I can't reproduce that at all.

@foosel foosel closed this as completed Jul 27, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs information More information is needed to further process this issue or PR
Projects
None yet
Development

No branches or pull requests

2 participants