Hi there ! I'm kind of hopeless right now... I've been looking through forums for days now with no solutions that seem to work for me.
I've migrated a WordPress site that uses an LMS plugin and BuddyBoss platform which seem to be pretty demanding from a shared hosting to a VPS.
The shared hosting used LiteSpeed server so I wanted to use OpenLiteSpeed so I would have less problems migrating.
The server specs are as follows:
- 8 CPU Cores @ 2.394Ghz
- 8GB of RAM
- Nvme Storage
Thing is, I keep having out of memory errors form php in stderr.log for example:
Thing is, my memory_limit on php is set to 6144MB (I've tried increasing it to this value to try and see if it was the issue but seems like it's not.
Here is the config of "Server Configuration" -> "External App"
I have some other logs that I don't really get in /usr/local/lsws/log/error.log:
Does anyone have the same issue I have ? I don't really know what to do from here...
EDIT: My memory usage on the server never exceeds 1.5 - 2GB
I've migrated a WordPress site that uses an LMS plugin and BuddyBoss platform which seem to be pretty demanding from a shared hosting to a VPS.
The shared hosting used LiteSpeed server so I wanted to use OpenLiteSpeed so I would have less problems migrating.
The server specs are as follows:
- 8 CPU Cores @ 2.394Ghz
- 8GB of RAM
- Nvme Storage
Thing is, I keep having out of memory errors form php in stderr.log for example:
Code:
PHP Fatal error: Out of memory (allocated 6291456) (tried to allocate 20480 bytes) in /usr/local/.../xxx.php on line x
Here is the config of "Server Configuration" -> "External App"
I have some other logs that I don't really get in /usr/local/lsws/log/error.log:
Code:
2022-03-16 09:10:45.118504 [INFO] [239999] [lsphp]: locked pid file [/tmp/lshttpd/lsphp.sock.pid].
2022-03-16 09:10:45.118522 [INFO] [239999] [lsphp] remove unix socket for detached process: /tmp/lshttpd/lsphp.sock
2022-03-16 09:10:45.118598 [NOTICE] [239999] [LocalWorker::workerExec] Config[lsphp]: suExec uid 65534 gid 65534 cmd /usr/local/lsws/lsphp74/bin/lsphp, final uid 65534 gid 65534, flags: 0.
2022-03-16 09:10:45.118992 [NOTICE] [239999] [lsphp] add child process pid: 240034
2022-03-16 09:10:45.119119 [INFO] [239999] [lsphp]: unlocked pid file [/tmp/lshttpd/lsphp.sock.pid].
2022-03-16 09:11:12.490672 [NOTICE] [239996] [LocalWorker::workerExec] VHost:_AdminVHost suExec check uid 997 gid 65534 setuidmode 2.
2022-03-16 09:11:12.490719 [INFO] [239996] [LocalWorker::workerExec] VHost:_AdminVHost suExec check uid 997 gid 65534 setuidmode 2.
2022-03-16 09:11:12.490737 [NOTICE] [239996] [LocalWorker::workerExec] Config[AdminPHP]: suExec uid -1 gid -1 cmd /usr/local/lsws/admin/fcgi-bin/admin_php -c ../conf/php.ini, final uid 997 gid 65534, flags: 0.
2022-03-16 09:11:12.491359 [NOTICE] [239996] [AdminPHP] add child process pid: 240705
2022-03-16 09:12:03.028870 [NOTICE] [239996] sendKillCmdToWatchdog: 'extappkill:240705:-3:0'.
2022-03-16 09:12:03.800987 [NOTICE] [239994] Cmd from child: [extappkill:240705:-3:0]
2022-03-16 09:12:03.801064 [INFO] [239994] Failed to get process [240705] start time, not running, skip killing.
EDIT: My memory usage on the server never exceeds 1.5 - 2GB