XF User-Caching 100% CPU

au lait

Well-known member
Hello,

have the following problem. As soon as I activate the user caching, the server goes to its knees (CPU 100% by PHP) this also no longer normalizes. Do you have any idea where I can look?


Server:
6 CPU
13GB RAM
SSD
PHP 7.4.x
mySQL 8.x


Config Caching:
Code:
$config['cache']['enabled'] = true;
$config['cache']['namespace'] = 'xfredis_';

$config['pageCache']['enabled'] = true;
$config['pageCache']['recordSessionActivity'] = true;
$config['cache']['context']['page']['namespace'] = 'pl_';
$config['cache']['context']['page']['provider'] = 'Redis';

$config['cache']['context']['page']['config'] = [
        'host' => '127.0.0.1',
        'port' => 6379,
        ];
$config['pageCache']['lifetime'] = 120;
 

Attachments

  • screen_1610034248.webp
    screen_1610034248.webp
    124.5 KB · Views: 55
64mb of swap is rather useless.

It looks like Elasticsearch is chewing up about ~2gb of memory (37%!), you can tune that down lower for such a small server via the /etc/elasticsearch/jvm.options file for newer versions.

I'm betting this setup only has a limited number of CPU cores too.
 
@Masetrix How can I tell if my system swaps? I have WHM and Cpanel.
Connect to your system via ssh

Enter the command: top there you see it in the header:
KiB Swap: 16760828 total, 16756732 free, 4096 used.

Maybe you have htop, then you see
...
Mem[|||||||||||||||||||||||||||||||||||||||22.3G/31.4G] Tasks: 707, 199 kthr; 2 running
Swp[| 4.00M/16.0G] (4MB==Used)
 
Last edited:
Back
Top Bottom