github danog/MadelineProto 8.0.0-beta27
MadelineProto 8 beta 27

latest releases: 8.3.1, 8.3.0, 8.2.4...
20 months ago

Added mmap configuration debug tool.

Run it with the following script:

<?php

if (!file_exists('madeline.php')) {
    copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';

var_dump(\danog\MadelineProto\Tools::testFibers());

It will print out the maximum number of startable fibers, according to the current system configuration.

If the number of maxFibers is smaller than 100000, modify the system configuration to increase the number of mmap'able regions:

echo 262144 | sudo tee /proc/sys/vm/max_map_count

To persist the change across reboots:

echo vm.max_map_count=262144 | sudo tee /etc/sysctl.d/40-madelineproto.conf

Don't miss a new MadelineProto release

NewReleases is sending notifications on new releases.