mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 21:59:52 +00:00
Increased manuall garbage collection rate
This commit is contained in:
parent
bf4a8398c4
commit
897774f848
@ -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);
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user