Consumes a lot of CPU resources

Bug #1155548 reported by Marius B. Kotsbak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-gui
Triaged
Low
Unassigned
pyjuju
Triaged
Low
Unassigned

Bug Description

I have juju-gui running in an Amazon t1.micro instance, and monitoring indicates that it uses around 70% of the CPU, even when it is not much used (just probably open in one window some of the time).

I see manually in "top" that the "python" process in intervals with some seconds apart consumes around 40% CPU.

I use version "cs:precise/juju-gui" with "juju-gui-source: stable".

Gary Poster (gary)
Changed in juju-gui:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Gary Poster (gary) wrote :

Hi Marius. This is an issue with the PyJuju "rapi" branch. As such, it is unlikely to be addressed, since all Juju engineering resources are working on the Go Juju version (juju-core). The Go version is growing its own API for use with the GUI as I write this. We will definitely want to address performance issues like this one on the Go side.

On the bright side, the GUI charm itself uses standard, well-behaved components (nginx, haproxy) to deliver its resources.

We have not had the need to explore the PyJuju rapi behavior, but based on the approach used, I expect the resources consumed should grow very slowly as more users are added. I'd be interested in validating that with some careful experimentation, though we have not had any issues with the shared demo instance on http://uistage.jujucharms.com:8080/ , which https://juju.ubuntu.com/ links to prominently.

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

It might also be that the micro instance CPU resources are so tiny that the usage is relatively high just in those instances.

Curtis Hovey (sinzui)
Changed in juju:
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.