Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-15-2011, 02:53 PM
|
#1
|
LQ Newbie
Registered: Mar 2011
Posts: 7
Rep:
|
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...
|
|
|
03-15-2011, 03:06 PM
|
#2
|
Member
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114
Rep:
|
Check in /etc/security/limits.conf and ulimit -a.
Last edited by jcalzare; 03-15-2011 at 03:16 PM.
|
|
|
03-15-2011, 03:18 PM
|
#3
|
LQ Newbie
Registered: Mar 2011
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by jcalzare
Check in /etc/security/limits.conf and uname -a.
|
/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!
|
|
|
03-15-2011, 03:24 PM
|
#4
|
Member
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114
Rep:
|
Yeah I edited my post earlier, meant to type ulimit, not uname.
|
|
|
03-15-2011, 03:32 PM
|
#5
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
Quote:
Originally Posted by sean.simpson
/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
CPU, I am unsure of.
|
|
|
03-15-2011, 03:35 PM
|
#6
|
LQ Newbie
Registered: Mar 2011
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by jcalzare
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?
|
|
|
All times are GMT -5. The time now is 08:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|