Bug 967694 - jobqueue.pl stalls
Summary: jobqueue.pl stalls
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Bugzilla
Classification: Community
Component: Performance
Version: 4.4
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Simon Green
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-28 04:46 UTC by Mark Keir
Modified: 2014-10-12 22:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-30 00:24:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Mark Keir 2013-05-28 04:46:03 UTC
Description of problem:

When the "bugzilla-queue" service runs, the jobqueue.pl process stalls sometimes and does not recover.  Email notifications then backlog unless the service is constantly restarted.

Version-Release number of selected component (if applicable):


How reproducible:

"service bugzilla-queue start"

Steps to Reproduce:
1.  Start service
2.  Watch /var/log/messages for emails being sent and observe if an email takes a long time to be processed (>1 min), assuming a backlog of queued messages.
3.  Watch top to see jobqueue.pl memory use go from 250Mb virtual memory and 5% CPU to 600Mb (up to 1.3Gb) virtual memory and 100% CPU consumption
4. restart the service to see it happen again 

Actual results:

jobqueue.pl process spins at 100% and sendmail connection being written to does not complete and exit with the service stalling.

Expected results:

When well behaved, the jobqueue.pl process consumes a modest amount of RAM and CPU, processing each email batch within a second or so.

Additional info:

Without constant attention can lead to >15K backlogged emails.

Comment 1 Simon Green 2013-05-30 00:24:44 UTC
I think Email::Send was choking on the very large (30MB+) e-mails. Changing this to use Sendmail, and not generating 30MB e-mails seems to have solved this problem.


Note You need to log in before you can comment on or make changes to this bug.