How to Limit suphp user memory limit?
I have a VPS server with 512 MB memory. The php.ini is set so script memory limit = 16 MB. However, I have noticed in my top report, instances like the following:
Quote:
This leads to the next question: Is there some way to limit the amount of memory a single suphp process can use? (Basically, something like the setting in php.ini which limits suphp processes in the same way.) Thanks for the help. |
Quote:
either edit /etc/security/limits.conf or set limit for php user with ulimit, assuming you have access to these, of course |
Thanks for the reply. I do have access to the limits.conf file, but I tried that some time ago, and it didn't seem to work. See:
http://www.linuxquestions.org/questi...orking-795332/ To summarize, "The settings in limits.conf are only applied to normal interactive user logins. These settings don't apply to processes started at boot time, via cron, etc." and I guess the suphp user is started at bootup and thus escapes the limits.conf file. That confounded me, which was why I was hoping suphp itself had some method for limiting users. |
All times are GMT -5. The time now is 05:34 AM. |