menu
#5037762 Failed to set memory limit to 2097152 bytes (Current memory usage is 4194304 bytes)

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: None
Report date: 2021-07-21 22:11:33 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 7.4.21
Operating system: win
System banner: Windows NT DESKTOP-PHULB29 10.0 build 19042 (Windows 10) AMD64

Error information

Message: Failed to set memory limit to 2097152 bytes (Current memory usage is 4194304 bytes)
File: pmsrc/src/pocketmine/MemoryManager
Line: #153
Error level: ErrorException
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
				}
}
}

$hardLimit = ((int) $this->server->getProperty("memory.main-hard-limit", $defaultMemory));

if($hardLimit <= 0){
ini_set("memory_limit", '-1');
}else{
ini_set("memory_limit", $hardLimit . "M");
}

$this->globalMemoryLimit = ((int) $this->server->getProperty("memory.global-limit", 0)) * 1024 * 1024;
$this->checkRate = (int) $this->server->getProperty("memory.check-rate", 20);
$this->continuousTrigger = (bool) $this->server->getProperty("memory.continuous-trigger", true);
$this->continuousTriggerRate = (int) $this->server->getProperty("memory.continuous-trigger-rate", 30);

$this->garbageCollectionPeriod = (int) $this->server->getProperty("memory.garbage-collection.period", 36000);
$this->garbageCollectionTrigger = (bool) $this->server->getProperty("memory.garbage-collection.low-memory-trigger", true);
$this->garbageCollectionAsync = (bool) $this->server->getProperty("memory.garbage-collection.collect-async-worker", true);
#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[83] Failed to set memory limit to 2097152 bytes (Current memory usage is 4194304 byt, string[65] phar://C:/ser/PocketMine-MP.phar/src/pocketmine/MemoryManager.php, integer 153, array[3])
#1 pmsrc/src/pocketmine/MemoryManager(153): ini_set(string[12] memory_limit, string[2] 2M)
#2 pmsrc/src/pocketmine/MemoryManager(118): pocketmine\MemoryManager->init()
#3 pmsrc/src/pocketmine/Server(1379): pocketmine\MemoryManager->__construct(object pocketmine\Server)
#4 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[7] C:\ser\, string[15] C:\ser\plugins\)
#5 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#6 pmsrc(11): require(string[62] phar://C:/ser/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show