branch-rewrite.py uses too much RAM on developer machines

Bug #806361 reported by Julian Edwards
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

 1693 root 20 0 537m 185m 9920 S 0 5.0 0:13.77 branch-rewrite. py

Also, it runs as root which is terrible.

We should be able to start this service on demand.

tags: added: infrastructure
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I imagine the ram usage comes from importing launchpad and setting up the zcml and so on. If one was willing to write some raw sql and not worry about code reuse, it could probably be much reduced.

For the root thing, a wrapper than dropped privileges and exec-ed would be appropriate (it's what happens in production I think)

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 806361] Re: branch-rewrite.py uses too much RAM on developer machines

Why does it need privileges to start?

If it's just to listen on a port it might be simpler/safer to have
some other process start it there.

Revision history for this message
Robert Collins (lifeless) wrote :

its started by apache - its a mod-rewrite helper. I suspect the
privilieges are to setuid to the developers account.

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.