Opcache issue on Openlitespeed 1.8

#1
I have an Almalinux 9.5 VPS (4CPU 8GB RAM) with Openlitespeed 1.8.

If I enable opcache I get errors and the site either gets stuck on loading or I get a white screen. This happens with lsphp74, lsphp82 and lsphp83. There is only 1 site on the server where I'm trying to install WordPress.

The server logs have these messages:

"Fatal Error Unable to allocate shared memory segment of 201326592 bytes: mmap: Cannot allocate memory (12)"

"No request delivery notification has been received from LSAPI application, possible dead lock."

In all php versions if I disable opcache with "opcache.enable = 0" in "/usr/local/lsws/lsphp82/etc/php.d/10-opcache.ini" and restart the server all the errors go away and I can install WordPress normally.

I tried different opcache settings besides the default, but none seem to work. My php memory limit in all PHP versions is 512M.
 
#2
I think I found the issue. I later installed WooCommerce and had memory issues again. It had nothing to do with opcache. In my virtual host -> External App -> Memory Soft Limit (bytes) and Memory Hard Limit (bytes), I had these values too low I guess. I raised them to 2047M and everything works fine now even with opcache enabled.
 
Top