Page MenuHomePhabricator

phabot leaks memory
Closed, InvalidPublic

Description

I'm running a snapshot from 2015-06-26 (a little over a month old at this point) and the chatbot seems to be leaking memory rather quickly. A few snapshots from various points in time:

3:09pm:

PID USERNAME       THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
19511 swills           1  35   15  3030M  2216M select  2   2:24   0.00% php ./exec_daemon.php PhabricatorBot

3:14pm:

PID USERNAME       THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
19511 swills           1  35   15  3054M  2232M select  3   2:26   0.29% php ./exec_daemon.php PhabricatorBot

3:50pm:

PID USERNAME       THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
19511 swills           1  35   15  3190M  2336M select  6   2:37   0.38% php ./exec_daemon.php PhabricatorBot

I can restart it regularly of course, but that clutters up the channel with join/part messages and at the rate it's leaking, I'm going to have to restart it fairly often.

Event Timeline

swills raised the priority of this task from to Needs Triage.
swills updated the task description. (Show Details)
swills added a subscriber: swills.
chad renamed this task from chatbot leaks memory to phabot leaks memory.Jul 30 2015, 4:15 PM
chad added a project: Phabot.
chad added a subscriber: chad.
epriestley triaged this task as Wishlist priority.Jul 30 2015, 6:51 PM
epriestley closed this task as Invalid.EditedOct 24 2015, 3:37 PM
epriestley claimed this task.
epriestley added a subscriber: epriestley.

We don't see this on this install:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
ubuntu    6442  0.0  0.4 283932 31192 ?        Ss   12:43   0:01 php ./exec_daemon.php PhabricatorBot

That process has been up for about 3 hours and is consuming about 32MB of RAM.

We don't run the FeedHandler, so it's possible that this is just a version of T7829.

Otherwise, it's unreproducible.