Max Memory for a User
It seems as though cPanel limits all shell users (other than root) to using just 200 mb of RAM for a process (according to ulimit's max memory), which is causing "Out of memory!" errors on a script I'm trying to run that is multithreaded. Is there a way to change the limit for a particular user?
-
(The context: I have a Perl backend to one of my web sites that does a bunch of updates via multiple threads. Perhaps the version of Perl or the libraries it uses are somehow smaller on my old CentOS system, but on the new AlmaLinux server I put it on, it seems to need about 300-400MB of RAM to operate its four threads without running out of memory. It runs fine as root, when there are no limits on it.) 0 -
Hey there! Do you have fork bomb protection enabled on that machine? If so, can you try temporarily disabling it to see if that resolves the issue? 0 -
Thanks @cPRex! I did try disabling it and didn't notice a difference. I only left it off momentarily -- does it take awhile to "take effect"? 0 -
No, that would be an immediate change, but you'd have to re-login as the user to ensure you're getting a new session with that change in place. 0
Please sign in to leave a comment.
Comments
4 comments