Closed Bug 1632639 Opened 6 years ago Closed 2 months ago

[mozproxy] Raptor/AWSY tests can leave mitmdump processes behind with each of those consuming 100% cpu load

Categories

(Testing :: Raptor, defect, P3)

Version 3
defect

Tracking

(firefox150 fixed)

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: whimboo, Assigned: kshampur)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxp])

Attachments

(2 files)

I noticed again a huge CPU load on my machine and when checking the activity monitor a couple of mitmproxy processes were running with each of them utilizing 100% of CPU load. See screenshot attached.

Most likely this happens when the Raptor job gets aborted eg. Ctrl+C, but maybe also in other situations.

This might have a really bad impact on our CI machines, especially the Mac Minis. We should get this investigated and fixed.

Severity: -- → S3
Priority: P2 → P3

I can also see this for AWSY now. Basically each time you break a running mach raptor/awsy test job with Ctrl+C a mitmdump instance is left behind. Usually it doesn't consume any CPU but can hold a quite amount of memory, e.g one of these instances locally uses 377MB! Then after a while or due to some other reason such processes go crazy and the reported CPU usage can be seen.

Summary: Raptor tests can leave mitmdump processes behind with each of those consuming 100% cpu load → [mozproxy] Raptor/AWSY tests can leave mitmdump processes behind with each of those consuming 100% cpu load

This is still a valid issue, most frequently reproducible on Android. Less frequently on Desktop platforms.

Whiteboard: [fxp]

I added a WIP patch that seems to work for me. I think only edge case not accounted for is when Exceptions are hit, otherwise things like keyboard interrupt and session terminations are handled

Assignee: nobody → kshampur
Status: NEW → ASSIGNED
Blocks: 1590137
Attachment #9496505 - Attachment description: WIP: Bug 1632639 - Add signal handler to remove rogue mitmdump processes in AWSY/Raptor. r?#perftest → Bug 1632639 - Add signal handler to remove rogue mitmdump processes in AWSY/Raptor. r?#perftest
Attachment #9496505 - Attachment description: Bug 1632639 - Add signal handler to remove rogue mitmdump processes in AWSY/Raptor. r?#perftest → WIP: Bug 1632639 - Add signal handler to remove rogue mitmdump processes in AWSY/Raptor. r?#perftest
Attachment #9496505 - Attachment description: WIP: Bug 1632639 - Add signal handler to remove rogue mitmdump processes in AWSY/Raptor. r?#perftest → Bug 1632639 - Add signal handler to remove rogue mitmdump processes in AWSY/Raptor. r?#perftest
Attachment #9496505 - Attachment description: Bug 1632639 - Add signal handler to remove rogue mitmdump processes in AWSY/Raptor. r?#perftest → WIP: Bug 1632639 - Add signal handler to remove rogue mitmdump processes in AWSY/Raptor. r?#perftest
Attachment #9496505 - Attachment description: WIP: Bug 1632639 - Add signal handler to remove rogue mitmdump processes in AWSY/Raptor. r?#perftest → Bug 1632639 - Add signal handler to remove rogue mitmdump processes in AWSY/Raptor. r?#perftest
Pushed by kshampur@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/656bae3199dc https://hg.mozilla.org/integration/autoland/rev/cafcdd4b5b92 Add signal handler to remove rogue mitmdump processes in AWSY/Raptor. r=perftest-reviewers,sparky
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: