Determining system limits affecting Apache - specifically RLimitMEM
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Determining system limits affecting Apache - specifically RLimitMEM
Hi All,
Our Apache server is pretty much configured straight out of the box, and I've noticed it is using far more CPU and less memory than another server where I have the following:
RLimitCPU 8
RLimitMEM 100000000
RLimitNPROC 24
The Apache documentation says that if these aren't set, the values are obtain from the OS. How can you tell what those are? I'd like to see if I can tune Apache's performance, but I don't even know if these values are higher or lower than what it's currently using...
/etc/security/limits.conf has nothing but commented out lines, and not sure how uname is supposed to help. It doesn't provide process ino... unless you are asking me what OS I'm running and wanted to see the output?
/etc/security/limits.conf has nothing but commented out lines, and not sure how uname is supposed to help. It doesn't provide process ino... unless you are asking me what OS I'm running and wanted to see the output?
All help is appreciated!
RLimitCPU 8
RLimitMEM 100000000
RLimitNPROC 24
Code:
ulimit -a
max memory size (kbytes, -m) unlimited
max user processes (-u) 1024
Yeah I edited my post earlier, meant to type ulimit, not uname.
That makes more sense, but still has problems. ulimit is a bash command, meant to show the process limits of the existing shell (the answer was unlimited, btw). Even as root, I still get unlimited. Does that mean Apache *isn't* placing any limits on memory as is? I know our php.ini file limits per process memory to 16MB, maybe I should be looking at that as the ceiling?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.