Closed Tivixo closed 3 years ago
The number 1 solution to memory usage is switching to MySQL: https://docs.madelineproto.xyz/docs/SETTINGS.html#settingsdb
Thank you for your help and sorry for this noob question... this is my $setting array now:
$settings = [];
$settings['logger']['logger'] = \danog\MadelineProto\Logger::FILE_LOGGER;
$settings['logger']['logger_param'] = __DIR__.'/logFile.log';
$settings['db']['type'] = 'mysql';
$settings['db']['mysql']['password'] = 'mypwd';
[all other mysql settings are same with default values.]
but after execute the code I don't see any 'MadelineProto' database in my phpMyAdmin and the memory problem is still exist.
I know it's so amateur question but could you guide me more please? Thank you.
Hi, From almost last week my ubuntu server have memory problem, my memory and swap are more than 90% used. I enter "ps aux --sort=-%mem | head" and this is result:
As you sea the created account's sessions are using too much memory.
Can you help me for fixing this? I can't increase my memory, so what I should to do for decreasing telegram sessions memory usage?
PS: I use last version (for 4/11/2021)
Thank you a lot.