宫颈小有什么影响| oc是什么意思| 山东日照有什么好玩的| 老年人吃什么增强免疫力| 纷至沓来是什么意思| 甲乙丙丁戊己庚辛壬癸代表什么| 药师是干什么的| 三角区长痘痘是什么原因| 胃息肉吃什么药治疗| 多囊是什么原因引起的| 哺乳期抽烟对宝宝有什么影响| 治疗带状疱疹用什么药最好| 东华帝君的真身是什么| 女生自慰什么感觉| 公安厅长是什么级别| 为什么学习不好| 玫琳凯属于什么档次| 伤口为什么会痒| 大便黑色是什么原因| 小孩腿抽筋是什么原因引起的| 人民币代码是什么符号| 2022年属虎的是什么命| 介质是什么| 老烂腿用什么药最好| 学子是什么意思| 肾盂肾炎吃什么药| 什么是周期| 美团和美团外卖有什么区别| 不可或缺是什么意思| 胰腺炎是什么病严重吗| 董酒是什么香型| 甲状腺结节吃什么散结| 胃恶心想吐是什么原因| 林五行属什么| 为什么会有霉菌性阴道炎| 老年斑长什么样| 却的偏旁叫什么| 条件反射是什么| 4.26是什么星座| 插茱萸是什么意思| 冷暴力是什么意思| 阑尾炎疼吃什么药| 梦到父母离婚是什么意思| 左侧小腹疼是什么原因| 牙疼吃什么药效果好| 麦穗鱼吃什么| 心电图伪差是什么意思| 补办户口本需要什么材料| 97年五行属什么| 为什么会得多囊卵巢| 孕妇什么情况下打肝素| 皮革胃是什么意思| 舌头两侧溃疡吃什么药| 狗狗胰腺炎吃什么药| 手足口疫苗什么时候打| 皮肤发白一块一块的是什么病| 重丧是什么意思| 什么是同性恋| 肉桂有什么作用| 肺大泡是什么意思| 乳头内陷是什么原因| 为什么掉发严重| 头伏二伏三伏吃什么| 泪崩是什么意思| 心脏房颤吃什么药最好| 归宁是什么意思| 木兮是什么意思| 乳腺结节低回声是什么意思| 天秤和什么星座最配| 畏寒肢冷是什么意思| 坐车头疼是什么原因| 什么是体制内的工作| 睡觉空调开什么模式| 肿瘤标志物cA724高说明什么| 垂爱是什么意思| 老学究什么意思| 小路像什么| 什么地方| 吃东西就打嗝是什么原因| 瑾字属于五行属什么| 喝苏打水有什么好处| 黄桃不能和什么一起吃| vsop是什么酒| 为什么突然长癣了| 菠菜补什么| 上海古代叫什么| 肝风内动是什么意思| 全身大面积湿疹暗示着什么| 报喜鸟属于什么档次| 小狗需要打什么疫苗| 抗巨细胞病毒抗体igg高是什么意思| 孙权孙策什么关系| 你什么都没看见| 杨新鸣包贝尔什么关系| 什么叫大数据| 什么含胶原蛋白最多| 宝宝有口臭是什么原因引起的| 牙上有黑渍是什么原因| 脸上为什么会长斑| 甲状腺一度肿大是什么意思| 简历照片用什么底色| 脑梗有什么特效药| 花苞裤不适合什么人穿| 舌头上有齿痕是什么原因| 脱脂是什么意思| 灼热是什么意思| 排卵期一般在什么时候| 什么是川崎病是什么病| 以什么乱什么| 经常头痛吃什么药效果好| 函询是什么意思| 10月18日什么星座| 牛肉用什么腌制比较嫩| 唐僧的袈裟叫什么| 广西北海有什么好玩的地方| 降压药什么时候吃好| 老当益壮是什么意思| 什么叫增值税| 泛是什么意思| 叶酸吃到什么时候| 吃什么补充维生素d| 朗格手表什么档次| cache是什么意思| 两肋插刀是什么意思| 科目三为什么这么难| 千呼万唤是什么生肖| pears是什么意思| 头发油的快是什么原因| 阴茎硬度不够吃什么药| 7月24日是什么星座| 转氨酶高是什么意思| 扪及是什么意思| hbv是什么| 迟钝是什么意思| 烟雾病是什么原因引起的| 印度洋为什么叫印度洋| 不拘一格是什么意思| 6.8是什么星座| 姑婆的儿子叫什么| 什么梨| 小三阳是什么病| 西红柿对人体有什么好处| 鼻子干痒是什么原因| 喉咙疼痛吃什么药效果最好| 蠼螋对人有什么危害| 刮痧不出痧是什么原因| ct挂号挂什么科| 天安门以前叫什么| 澜字五行属什么| 属虎男和什么属相最配| 梦见西瓜是什么意思| 种植牙是什么| 拉拉秧学名叫什么| 人和是什么意思| 足字旁的有什么字| 何首乌是什么| 梦见孕妇是什么预兆| 铁补多了有什么副作用| 日柱金舆是什么意思| 人的运气跟什么有关| 骨髓纤维化是什么病| 睡美人最怕什么脑筋急转弯| 手不什么| 寒门子弟是什么意思| 12月16号是什么星座| 去加一笔是什么字| 上眼皮痒是什么原因| 胃胀吃什么药最有效| 奥运五环绿色代表什么| 脚肿挂什么科| 男人睡觉流口水是什么原因| 吃什么对肺有好处| 狗血是什么意思| 健脾丸和归脾丸有什么区别| 子宫肌瘤伴钙化是什么意思| 性张力什么意思| 正财代表什么| 卵巢多囊是什么原因造成的| 药敏试验是什么意思| 心脾两虚吃什么药| 盐酸苯海索片治什么病| 活珠子是什么| 德五行属什么| 2月19是什么星座| 燕窝适合什么人吃| 发烧吃什么水果| 炎症反应性细胞改变是什么意思| 七月份有什么水果| 破财免灾什么意思| 什么叫基因| 肌酸有什么用| 不怀孕是什么原因引起的| 什么水果治便秘| 腰椎间盘突出看什么科| 心什么什么什么| 礼尚往来什么意思| 猪狗不如是什么生肖| 豆腐干炒什么好吃| sop是什么意思| 艾灸是什么| 一个口一个且念什么| 双子座是什么性格| 什么饮料解酒效果最好| 狗尾续貂是什么意思| 孩子张嘴睡觉是什么原因| 不将日是什么意思| 白血病有什么征兆| mg什么意思| 乙型肝炎表面抗体高是什么意思| 时尚是什么意思| 哈库呐玛塔塔什么意思| 脾胃虚寒者有什么症状| 老是放屁是什么原因| 梦到和老公离婚了是什么征兆| 耳洞发炎流脓用什么药| 胃难受想吐是什么原因| 伤官女是什么意思| 群青色是什么颜色| 土豆发芽到什么程度不能吃| a21和以纯什么关系| 鱼油什么牌子好| 2月28号是什么星座| 鼠配什么生肖最好| 宫颈多发潴留囊肿是什么意思| 郭靖黄蓉是什么电视剧| 柠檬不能和什么一起吃| 额头上长痘痘什么原因| 为什么智齿老是发炎| 梦见自己的车丢了是什么意思| tct检查是什么检查| 呼吸不顺畅是什么原因| 兵戎相见是什么意思| 孕妇放屁多是什么原因| 女人喝茶有什么好处| 东海龙王叫什么| 今年是什么年天干地支| 什么花代表永恒的爱| 今天什么生肖最旺| 红色的对比色是什么颜色| 乳房边缘一按就疼是什么原因| 肾虚腰疼吃什么药最有效| 胆固醇和血脂有什么区别| 防晒什么时候涂| 靴靴是什么意思| 为什么会胆汁反流| 何去何从什么意思| 心脏支架最怕什么| 南极被称为什么| 回族为什么不吃猪肉| 胆是起什么作用的| 鳞状上皮细胞是什么| 什么原因导致长水痘| 弓形虫抗体阳性是什么意思| 脸肿是什么原因| 努尔哈赤是什么民族| 阴部潮湿是什么原因| 7月25是什么星座| 尿频去药店买什么药| 等不到天黑烟火不会太完美什么歌| 免冠是什么意思| 果断是什么意思| 背厚是什么原因造成的| 男人脖子后面有痣代表什么| 最坚固的锁怕什么| 百度

趾甲大如碗!《动物来啦》揭秘大象美甲全过程

Bug #585126 reported by Steve McInerney
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned
Launchpad itself
Triaged
Critical
Unassigned
nodejs (Ubuntu)
New
Undecided
Unassigned

Bug Description

百度 【活动亮点】1.与国家机构协会联合2.针对民族品牌,与属性吻合3.将品牌、技术、产品与民族爱国情绪的融合,形成共鸣传播4.通过网站传播,微博,论坛,社区配合传播,搭配wap,app进行扩散,全媒体合作,多渠道推广。

Found an oops for this: OOPS-1612BM1
    branch: ~vcs-imports/linux/trunk
    branch_job_id: 1658563

We've had to kill off a sendbranchmail run, as it was driving the server into swap/eating all of it.

bzrsyncd 1629 0.0 0.0 3944 468 ? Ss 20:52 0:00 /bin/sh -c $LP_PY /srv/bzrsyncd.launchpad.net/production/launchpad/cronscripts/sendbranchmail.py >> /srv/bzrsyncd.launchpad.net/production-logs/sendbranchmail.log 2>&1
bzrsyncd 1630 53.0 61.4 6871152 5033008 ? Dl 20:52 6:43 \_ /usr/bin/python2.5 /srv/bzrsyncd.launchpad.net/production/launchpad/cronscripts/sendbranchmail.py

5Gb RSS, is rather uncool.

Related branches

Steve McInerney (spm)
Changed in launchpad-code:
importance: Undecided → Critical
Revision history for this message
Tim Penhey (thumper) wrote :

OK, first step is to identify the branch culprit. This is almost certainly a bzr issue too, but lets work out the branch first.

Given the way jobs work, the same job would have been run shortly after, so we can't tell exactly which job it was, or that there may have been multiple jobs. We need to add a line to the job script that prints out the job it is running... although I have a gut feeling that I added this info before and we may just need an extra '-v' parameter.

Tim Penhey (thumper)
Changed in launchpad-code:
status: New → Triaged
assignee: nobody → Tim Penhey (thumper)
Revision history for this message
Martin Pool (mbp) wrote :

Perhaps we should run this with a ulimit set to something the machine can tolerate.

To get a view of where it's using memory, try following http://jam-bazaar.blogspot.com/2009/11/memory-debugging-with-meliae.html - though this may be a bit hard if it's run non-interactively.

Revision history for this message
Tim Penhey (thumper) wrote :

Hmm... as well as adding '-v' to the mail job, we need the following cowboy. We will then get information about the jobs as they are being run in the log file. With that we can debug more.

=== modified file 'lib/lp/code/model/branchjob.py'
--- lib/lp/code/model/branchjob.py 2025-08-04 05:29:30 +0000
+++ lib/lp/code/model/branchjob.py 2025-08-04 03:56:09 +0000
@@ -183,6 +183,13 @@
     def __init__(self, branch_job):
         self.context = branch_job

+ def __repr__(self):
+ branch = self.branch
+ return '<%(job_type)s job for %(branch)s>' % {
+ 'job_type': self.context.job_type.name,
+ 'branch': branch.unique_name,
+ }
+
     # XXX: henninge 2025-08-04 bug=331919: These two standard operators
     # should be implemented by delegates().
     def __eq__(self, other):

Revision history for this message
Tim Penhey (thumper) wrote :

Spectacular formatting fail there.

Revision history for this message
Tim Penhey (thumper) wrote :
Tim Penhey (thumper)
Changed in launchpad-code:
importance: Critical → High
Revision history for this message
Steve McInerney (spm) wrote :

Hrm. Didn't realise you could set a hard memory limit thru ulimit. have done so via a funky wrapper script:
ulimit -v 1843200
fwiw.

Have added the -v in the script as well; but need approval for the cowboy to go ahead, then we can roll that.

Pls do be ware; we have had at least 2 repeat instances where this has nearly caused loganberry to faceplant.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 585126] Re: sendbranchmail is eating memory

On 27 May 2010 06:24, Steve McInerney <email address hidden> wrote:
> Hrm. Didn't realise you could set a hard memory limit thru ulimit. have done so via a funky wrapper script:
> ulimit -v 1843200
> fwiw.
>
> Have added the -v in the script as well; but need approval for the
> cowboy to go ahead, then we can roll that.
>
> Pls do be ware; we have had at least 2 repeat instances where this has
> nearly caused loganberry to faceplant.

'this' meaning this bug, or using ulimit?

--
Martin <http://launchpad.net/~mbp/>

Revision history for this message
Steve McInerney (spm) wrote : Re: sendbranchmail is eating memory

"'this' meaning this bug, or using ulimit?"

Oops. This meaning the bug.

Tim, you mentioned that the same job runs on the next iteration of sendbranchmail?
If so, we aren't seeing a repeat of this memory gobble, until a day ish later - so far. I have no idea if that's sheer co-incidence or expected. AFAIA,we've had 3 instances of this gobbling incident.

But will do a scan thru our ps(1) history looking for a more complete analysis. Details to follow.

Revision history for this message
Steve McInerney (spm) wrote :

The memory jump is generally fairly sudden and quite rapid, as seen from ~ minute to minute.
a given process will be happily doing it's thing for a while (== minutes) then within 120 seconds has gone from ~ 500Mb RSS, to 5+ Gb RSS.

A longer history look (ifs buts maybes here) over ~ 9300 records of the sendbranchmail script tells us:
~ 97.5% of the time, it's using < 300Mb RSS.
~ 2% of the time, it's using > 1Gb RSS, most of which is > 2Gb.

be ware as I'd suggest that those higher numbers are slanted by the bigger gobbles running for longer periods; also the lower ones slanted in their favour by multiple attempts to startup when a gobbling is in progress.

Not sure if this'll help in *solving* but perhaps in defining the impact. :-)

Revision history for this message
Tim Penhey (thumper) wrote : Re: [Bug 585126] Re: sendbranchmail is eating memory

On Thu, 27 May 2010 10:26:40 you wrote:
> The memory jump is generally fairly sudden and quite rapid, as seen from ~
> minute to minute. a given process will be happily doing it's thing for a
> while (== minutes) then within 120 seconds has gone from ~ 500Mb RSS, to
> 5+ Gb RSS.
>
> A longer history look (ifs buts maybes here) over ~ 9300 records of the
> sendbranchmail script tells us: ~ 97.5% of the time, it's using < 300Mb
> RSS.
> ~ 2% of the time, it's using > 1Gb RSS, most of which is > 2Gb.
>
> be ware as I'd suggest that those higher numbers are slanted by the
> bigger gobbles running for longer periods; also the lower ones slanted
> in their favour by multiple attempts to startup when a gobbling is in
> progress.
>
> Not sure if this'll help in *solving* but perhaps in defining the
> impact. :-)

The additional logging will at least tell us which branches were being
processed when the memory jump occurs.

There are some known big memory requirements for diff, like when the underlying
changed file is very large. There may also be leaks. Until we can get some
sample branches that are causing problems, it is hard to diagnose.

Tom Haddon (mthaddon)
tags: added: canonical-losa-lp
Revision history for this message
Tim Penhey (thumper) wrote : Re: sendbranchmail is eating memory

Lets get the details of branch job 1658563:

select json_data from branchjob where id = 1658563

This will give us the revisions it was trying to generate diffs for.

With this info, we can pass this on to the bazaar team to investigate.

tags: added: oops
description: updated
description: updated
Revision history for this message
Tom Haddon (mthaddon) wrote :
Changed in bzr:
status: New → Incomplete
Martin Pool (mbp)
Changed in bzr:
status: Incomplete → Confirmed
importance: Undecided → Medium
importance: Medium → High
Revision history for this message
Robert Collins (lifeless) wrote :

So, what branch as revisions {"last_revision_id": "git-v1:67a3e12b05e055c0415c556a315a3d3eb637e29e", "last_scanned_id": "git-v1:b3f2f6cd1ff935ecac9a5346904b899d7af689fe", "from_address": "<email address hidden>"}
(1 row) ?

I'm guessing linux.

Revision history for this message
Tim Penhey (thumper) wrote :

Rob, the description was changed when I found the branch.

+ Found an oops for this: OOPS-1612BM1
+ branch: ~vcs-imports/linux/trunk
+ branch_job_id: 1658563

summary: - sendbranchmail is eating memory
+ sendbranchmail with lp:~vcs-imports/linux/trunk is eating memory
Changed in launchpad:
importance: High → Critical
Tim Penhey (thumper)
Changed in launchpad:
assignee: Tim Penhey (thumper) → nobody
Revision history for this message
Aaron Bentley (abentley) wrote :

A quick note: "Tim, you mentioned that the same job runs on the next iteration of sendbranchmail?"

Actually, no. That job will be in the RUNNING state. (Or, if killed nicely with SIGINT, in the FAILED state.) Only WAITING jobs will be run.

Aaron Bentley (abentley)
Changed in launchpad:
assignee: nobody → Aaron Bentley (abentley)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → Fix Committed
Aaron Bentley (abentley)
tags: added: qa-untestable
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
Aaron Bentley (abentley)
tags: added: qa-ok
removed: qa-untestable
Revision history for this message
Aaron Bentley (abentley) wrote :

The branch that landed a fix for Launchpad was rolled back.

Changed in launchpad:
status: Fix Released → Triaged
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Aaron Bentley (abentley) → nobody
William Grant (wgrant)
tags: added: bzr
Wojciech (wojaugustow)
Changed in bzr:
status: Confirmed → Fix Committed
Colin Watson (cjwatson)
Changed in bzr:
status: Fix Committed → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
summary: - sendbranchmail with lp:~vcs-imports/linux/trunk is eating memory
+ sendbranchmail lp-vel: ~ vcs-import / linux / trunk memóriát eszik
information type: Public → Private
Colin Watson (cjwatson)
information type: Private → Public
summary: - sendbranchmail lp-vel: ~ vcs-import / linux / trunk memóriát eszik
+ sendbranchmail with lp:~vcs-imports/linux/trunk is eating memory
Gazaliy Alade (al42925)
Changed in bzr:
status: Confirmed → Fix Committed
Colin Watson (cjwatson)
Changed in bzr:
status: Fix Committed → Confirmed
Gazaliy Alade (al42925)
Changed in bzr:
status: Confirmed → Fix Committed
Colin Watson (cjwatson)
Changed in bzr:
status: Fix Committed → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "__repr__ method for BranchJobDerived" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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

晏字五行属什么 七月七是什么节日 白蚂蚁长什么样子图片 晚上吃芒果有什么好处和坏处 人死之前为什么会拉屎
酸笋炒什么好吃 jdk是什么 毛戈平属于什么档次 97年出生属什么 白水晶五行属什么
动人是什么意思 龟头上抹什么药能延时 什么是试管婴儿 大便不正常是什么原因造成的 尿液清澈透明说明什么
荷叶搭配什么一起喝减肥效果好 甘蔗什么时候成熟 苏州立秋吃什么 多囊肾是什么意思 六月初六是什么日子
前列腺是什么病hcv8jop2ns1r.cn 五月26日是什么星座hcv9jop0ns2r.cn 飞的第一笔是什么hcv8jop3ns4r.cn 破财消灾什么意思hcv9jop1ns9r.cn 天字加一笔是什么字hcv7jop9ns2r.cn
经常掏耳朵有什么危害hcv8jop1ns4r.cn 血脂高吃什么药最好hcv8jop6ns9r.cn 十二月十四日是什么星座hcv9jop1ns4r.cn 女人外阴瘙痒用什么药hcv9jop4ns0r.cn 肺疼是什么原因hcv8jop0ns1r.cn
慢性扁桃体炎吃什么药hcv7jop6ns3r.cn 什么是脑中风hcv9jop7ns3r.cn 脑蛋白治疗什么病hcv9jop5ns0r.cn 毛峰是什么茶hcv7jop9ns7r.cn 荷花什么季节开hcv8jop4ns3r.cn
梦见打人是什么意思hcv7jop5ns3r.cn 香港警司是什么级别hcv9jop0ns3r.cn 前方高能什么意思hcv9jop3ns4r.cn 8月23号是什么星座hcv8jop7ns8r.cn 他不懂你的心假装冷静是什么歌hcv9jop2ns0r.cn
百度