I have an VPS 2CPU and 2GBRAM and only one web site (opencart) in the server. However when visitors are on the website there are errors about php memory which is not enough. I off course change it from cyberpanel, actually I did it 4096M but there is no change in real I think. The error log is below
"
2019-10-12 07:29:42.969578 [INFO] [yanflut.990] remove unix socket for detached process: /tmp/lshttpd/yanflut.sock
2019-10-12 07:29:42.971116 [INFO] [yanflut.990] add child process pid: 588
2019-10-12 07:29:42.971467 [INFO] [yanflut.990]: unlocked pid file [/tmp/lshttpd/yanflut.sock.pid].
2019-10-12 07:29:43.054498 [NOTICE] [162.158.91.213:19388#yanflut.com] [STDERR] PHP Warning: “continue 2” targeting switch is equivalent to “break 2”. Did you mean to use “continue 3”? in /home/yanflut.com/public_html/vqmod/vqmod.php on line 684
2019-10-12 07:41:05.006755 [ERROR] [106.75.118.77:51070] [modcompress] AddHooks failed: not enough memory or enable hooks failed.
2019-10-12 07:41:05.006856 [ERROR] [106.75.118.77:51070] [modcompress] AddHooks failed: not enough memory or enable hooks failed.
2019-10-12 07:41:05.385655 [ERROR] [106.75.118.77:55308] [modcompress] AddHooks failed: not enough memory or enable hooks failed.
2019-10-12 07:41:05.385740 [ERROR] [106.75.118.77:55308] [modcompress] AddHooks failed: not enough memory or enable hooks failed.
2019-10-12 08:01:34.942218 [INFO] [yanflut0.990]: locked pid file [/tmp/lshttpd/yanflut0.sock.pid].
2019-10-12 08:01:34.942262 [INFO] [yanflut0.990] remove unix socket for detached process: /tmp/lshttpd/yanflut0.sock
2019-10-12 08:01:34.943578 [INFO] [yanflut0.990] add child process pid: 999
2019-10-12 08:01:34.943828 [INFO] [yanflut0.990]: unlocked pid file [/tmp/lshttpd/yanflut0.sock.pid].
2019-10-12 08:01:35.016916 [NOTICE] [178.154.200.59:46589#yanflut.net] [STDERR] PHP Warning: “continue 2” targeting switch is equivalent to “break 2”. Did you mean to use “continue 3”? in /home/yanflut.net/public_html/vqmod/vqmod.php on line 684
2019-10-12 08:17:33.667472 [INFO] [yanflut0.990]: locked pid file [/tmp/lshttpd/yanflut0.sock.pid].
2019-10-12 08:17:33.667497 [INFO] [yanflut0.990] remove unix socket for detached process: /tmp/lshttpd/yanflut0.sock
2019-10-12 08:17:33.668758 [INFO] [yanflut0.990] add child process pid: 1184
2019-10-12 08:17:33.669099 [INFO] [yanflut0.990]: unlocked pid file [/tmp/lshttpd/yanflut0.sock.pid].
2019-10-12 08:17:33.757044 [NOTICE] [141.8.142.180:37213#yanflut.net] [STDERR] PHP Warning: “continue 2” targeting switch is equivalent to “break 2”. Did you mean to use “continue 3”? in /home/yanflut.net/public_html/vqmod/vqmod.php on line 684
2019-10-12 08:58:01.657255 [ERROR] [37.49.231.15:33964] [modcompress] AddHooks failed: not enough memory or enable hooks failed.
2019-10-12 08:58:01.657378 [ERROR] [37.49.231.15:33964] [modcompress] AddHooks failed: not enough memory or enable hooks failed.
2019-10-12 09:08:34.290451 [INFO] [yanflut.990]: locked pid file [/tmp/lshttpd/yanflut.sock.pid].
2019-10-12 09:08:34.290488 [INFO] [yanflut.990] remove unix socket for detached process: /tmp/lshttpd/yanflut.sock
2019-10-12 09:08:34.291784 [INFO] [yanflut.990] add child process pid: 1888
2019-10-12 09:08:34.292165 [INFO] [yanflut.990]: unlocked pid file [/tmp/lshttpd/yanflut.sock.pid].
2019-10-12 09:08:34.375843 [NOTICE] [162.158.89.253:10390#yanflut.com] [STDERR] PHP Warning: “continue 2” targeting switch is equivalent to “break 2”. Did you mean to use “continue 3”? in /home/yanflut.com/public_html/vqmod/vqmod.php on line 684
2019-10-12 09:42:27.633396 [ERROR] [157.230.143.29:48942] [modcompress] AddHooks failed: not enough memory or enable hooks failed.
2019-10-12 09:42:27.633515 [ERROR] [157.230.143.29:48942] [modcompress] AddHooks failed: not enough memory or enable hooks failed.
2019-10-12 09:47:28.298726 [INFO] [157.230.143.29:48942] Connection idle time too long: 301 while in state: 10 watching for event: 0, close!
2019-10-12 09:47:28.298790 [INFO] [157.230.143.29:48942] Content len: 0, Request line:
GET / HTTP/1.1
2019-10-12 10:18:19.009387 [INFO] [yanflut.990]: locked pid file [/tmp/lshttpd/yanflut.sock.pid].
2019-10-12 10:18:19.009423 [INFO] [yanflut.990] remove unix socket for detached process: /tmp/lshttpd/yanflut.sock
2019-10-12 10:18:19.010315 [INFO] [yanflut.990] add child process pid: 2819
2019-10-12 10:18:19.010445 [INFO] [yanflut.990]: unlocked pid file [/tmp/lshttpd/yanflut.sock.pid].
2019-10-12 10:18:19.086197 [NOTICE] [162.158.88.146:20878#yanflut.com] [STDERR] PHP Warning: “continue 2” targeting switch is equivalent to “break 2”. Did you mean to use “continue 3”? in /home/yanflut.com/public_html/vqmod/vqmod.php on line 684
2019-10-12 10:31:23.135926 [NOTICE] [162.158.91.45:65008-1#yanflut.com] [STDERR] PHP Fatal error: Out of memory (allocated 184557568) (tried to allocate 33554440 bytes) in /home/yanflut.com/public_html/vqmod/vqmod.php on line 341
2019-10-12 10:31:24.381840 [NOTICE] [162.158.91.45:64166-2#yanflut.com] [STDERR] PHP Fatal error: Out of memory (allocated 111157248) (tried to allocate 4096 bytes) in /home/yanflut.com/public_html/vqmod/vqmod.php on line 168
2019-10-12 10:31:24.477757 [NOTICE] [162.158.91.45:61096-3#yanflut.com] [STDERR] PHP Fatal error: Out of memory (allocated 44048384) (tried to allocate 16777224 bytes) in /home/yanflut.com/public_html/vqmod/vqmod.php on line 341
2019-10-12 10:31:26.253806 [NOTICE] [162.158.91.45:64106-1#yanflut.com] [STDERR] PHP Fatal error: Out of memory (allocated 138420224) (tried to allocate 16777224 bytes) in /home/yanflut.com/public_html/vqmod/vqmod.php on line 341
2019-10-12 10:31:26.262633 [NOTICE] [162.158.91.45:58858-3#yanflut.com] [STDERR] PHP Fatal error: Out of memory (allocated 111931392) (tried to allocate 33554440 bytes) in /home/yanflut.com/public_html/vqmod/vqmod.php on line 336
2019-10-12 10:31:26.262671 [NOTICE] [162.158.91.45:58870-3#yanflut.com] [STDERR] PHP Fatal error: Out of memory (allocated 57405440) (tried to allocate 33554440 bytes) in /home/yanflut.com/public_html/vqmod/vqmod.php on line 336
2019-10-12 10:31:26.256255 [NOTICE] [162.158.91.45:12204-1#yanflut.com] [STDERR] PHP Fatal error: Out of memory (allocated 49016832) (tried to allocate 16777224 bytes) in /home/yanflut.com/public_html/vqmod/vqmod.php on line 336
2019-10-12 10:31:29.347293 [NOTICE] [162.158.91.45:61096-4#yanflut.com:lsapi] [STDERR] PHP Fatal error: Out of memory (allocated 73408512) (tried to allocate 4096 bytes) in /home/yanflut.com/public_html/vqmod/vqmod.php on line 168
2019-10-12 10:31:29.350453 [NOTICE] [162.158.91.45:64106-2#yanflut.com:lsapi] [STDERR] PHP Fatal error: Out of memory (allocated 127934464) (tried to allocate 4096 bytes) in /home/yanflut.com/public_html/vqmod/vqmod.php on line 168
2019-10-12 10:31:29.449107 [NOTICE] [162.158.91.45:62352-3#yanflut.com] [STDERR] PHP Fatal error: Out of memory (allocated 125837312) (tried to allocate 4096 bytes) in /home/yanflut.com/public_html/vqmod/vqmod.php on line 168
2019-10-12 10:34:31.117905 [INFO] [yanflut0.990]: locked pid file [/tmp/lshttpd/yanflut0.sock.pid].
2019-10-12 10:34:31.117942 [INFO] [yanflut0.990] remove unix socket for detached process: /tmp/lshttpd/yanflut0.sock
2019-10-12 10:34:31.119705 [INFO] [yanflut0.990] add child process pid: 3248
2019-10-12 10:34:31.119857 [INFO] [yanflut0.990]: unlocked pid file [/tmp/lshttpd/yanflut0.sock.pid].
2019-10-12 10:34:31.378586 [NOTICE] [178.154.200.59:63159#yanflut.net] [STDERR] PHP Warning: “continue 2” targeting switch is equivalent to “break 2”. Did you mean to use “continue 3”? in /home/yanflut.net/public_html/vqmod/vqmod.php on line 684
"
My web site is not a populer one, nearly 200 visitor in a day with different times. I really want to know why I see this error. On the other hand, there is no error log on opencart error.log doc; I checked.
And; I use php 7.3 in my web site, thank you.