1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 11:22:40 +01:00
phorge-phorge/src/applications/cache
epriestley 9875af739f When we purge the request cache, also force PHP to collect cycles
Summary:
Ref T12997. See that task for more details. Briefly, an unusual dataset (where commits are mentioned hundreds of times by other commits) is causing some weird memory behavior in the daemons.

Forcing PHP to GC cycles explicitly after each task completes seems to help with this, by cleaning up some of the memory between tasks. A more thorough fix might be to untangle the `$xactions` structure, but that's significantly more involved.

Test Plan:
  - Did this locally in a controlled environment, saw an immediate collection of a 500MB `$xactions` cycle.
  - Put a similar change in production, memory usage seemed less to improve. It's hard to tell for sure that this does anything, but it shouldn't hurt.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T12997

Differential Revision: https://secure.phabricator.com/D18657
2017-09-28 12:37:22 -07:00
..
__tests__ Introduce a request cache mechanism 2015-06-04 17:27:31 -07:00
garbagecollector Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
management Add a cache purger for builtin files 2017-06-22 11:13:23 -07:00
purger Add a cache purger for builtin files 2017-06-22 11:13:23 -07:00
spec When "apcu_clear_cache()" exists, prefer it as a cache clear callback over "apc_clear_cache()" 2017-08-21 15:32:44 -07:00
storage Fix visiblity of LiskDAO::getConfiguration() 2015-01-14 06:54:13 +11:00
PhabricatorCachedClassMapQuery.php Provide a cached class map query for making key-based class lookups more efficient 2016-12-06 08:34:29 -08:00
PhabricatorCaches.php When we purge the request cache, also force PHP to collect cycles 2017-09-28 12:37:22 -07:00
PhabricatorKeyValueDatabaseCache.php Cache generation of the SSH authentication keyfile for sshd 2016-10-21 07:29:40 -07:00
PhabricatorKeyValueSerializingCacheProxy.php Introduce a serializing key-value cache proxy 2016-12-06 09:11:32 -08:00