Increased manuall garbage collection rate

This commit is contained in:
Shoghi Cervantes 2015-04-19 16:16:05 +02:00
parent bf4a8398c4
commit 897774f848
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ class MemoryManager{
if($this->chunkTrigger and $this->chunkCollect){ if($this->chunkTrigger and $this->chunkCollect){
foreach($this->server->getLevels() as $level){ foreach($this->server->getLevels() as $level){
$level->doChunkGarbageCollection(); $level->doChunkGarbageCollection();
} }
} }
$ev = new LowMemoryEvent($memory, $limit, $global, $triggerCount); $ev = new LowMemoryEvent($memory, $limit, $global, $triggerCount);

View File

@ -43,9 +43,9 @@ memory:
continuous-trigger-rate: 30 continuous-trigger-rate: 30
garbage-collection: garbage-collection:
#Period in ticks to fire the garbage collector manually (default 10 minutes), set to 0 to disable #Period in ticks to fire the garbage collector manually (default 30 minutes), set to 0 to disable
#This only affect the main thread. Other threads should fire their own collections #This only affect the main thread. Other threads should fire their own collections
period: 12000 period: 36000
#Fire asynchronous tasks to collect garbage from workers #Fire asynchronous tasks to collect garbage from workers
collect-async-worker: true collect-async-worker: true