Page MenuHomePhabricator

Add a "memory.hint" parameter to Aphlict
ClosedPublic

Authored by epriestley on Apr 15 2016, 1:45 PM.
Tags
None
Referenced Files
F18645566: D15720.diff
Fri, Sep 19, 8:05 AM
F18645544: D15720.diff
Fri, Sep 19, 8:01 AM
F18595283: D15720.diff
Fri, Sep 12, 9:07 PM
F18546830: D15720.diff
Mon, Sep 8, 4:24 AM
F18507458: D15720.id.diff
Sep 5 2025, 2:12 AM
F18222201: D15720.id.diff
Aug 19 2025, 8:24 PM
F18202482: D15720.diff
Aug 18 2025, 10:30 AM
F17844247: D15720.id37881.diff
Jul 27 2025, 1:52 AM
Subscribers
None

Details

Summary

Ref T10696. By default, node uses 1.5GB, which is enormous overkill for this service and can crowd out other services if it's running next to things like a database on the same host.

Provide a configuration option to adjust it via --max-old-space-size and default to 256MB. It only seems to need about 30M locally, so this should be plenty of headroom.

Test Plan

Ran bin/aphlict debug, things seemed OK.

It takes a long time (days?) to grow to 1.5GB so I can't easily test this locally without a lot of work, but I'll keep an eye on it in production.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Add a "memory.hint" parameter to Aphlict.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Apr 15 2016, 2:12 PM
This revision was automatically updated to reflect the committed changes.