Sometimes, it seems like around the time that LVE limits are hit, I'll get PHP errors. Particularly include() failures. The includes work perfectly fine when tested normally. I just want to understand if this is just a byproduct of how the LVE protections work rather that something else I'm missing. I don't see any other reason the files would fail to be accessed from include(). Thanks.
Announcement
Collapse
No announcement yet.
PHP errors when LVE limits hit?
Collapse
X
-
Well, it depends of what LVE limit is hit. In case of PMEM it will result in error 503.
The EP or nproc should not be hit with a simple include() function, if other files are not doing strange things.
The question is, what are the errors and what limits are being hit?
-
The majority of the LVE faults were PMEM with just a few EP faults. The errors in the PHP logs are: "include(): Failed opening 'FILENAME' for inclusion". Returning 503 to the requestor makes sense, but I end up with a bunch of PHP errors in the logs.
Comment
-
My guess is they are not directly related, the error in logs should be different. When the PMEM limit is reached, the server may not be able to allocate the necessary memory for PHP processes, but it should not end up with include() error.
If I were you I would increase the PMEM limit for some time to monitor if it's still happening without PMEM faults.
Is this any popular website engine or self written?
Comment
Comment