Page MenuHomePhabricator

Add a "memory.hint" parameter to Aphlict
ClosedPublic

Authored by epriestley on Apr 15 2016, 1:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 5:05 PM
Unknown Object (File)
Tue, Apr 9, 3:16 AM
Unknown Object (File)
Tue, Apr 2, 6:20 AM
Unknown Object (File)
Sun, Mar 31, 4:45 AM
Unknown Object (File)
Feb 13 2024, 7:45 PM
Unknown Object (File)
Feb 7 2024, 2:18 PM
Unknown Object (File)
Feb 2 2024, 12:11 PM
Unknown Object (File)
Feb 2 2024, 12:11 PM
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.