LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-15-2011, 02:53 PM   #1
sean.simpson
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Rep: Reputation: 0
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...
 
Old 03-15-2011, 03:06 PM   #2
jcalzare
Member
 
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
Check in /etc/security/limits.conf and ulimit -a.

Last edited by jcalzare; 03-15-2011 at 03:16 PM.
 
Old 03-15-2011, 03:18 PM   #3
sean.simpson
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jcalzare View Post
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!
 
Old 03-15-2011, 03:24 PM   #4
jcalzare
Member
 
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
Yeah I edited my post earlier, meant to type ulimit, not uname.
 
Old 03-15-2011, 03:32 PM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Quote:
Originally Posted by sean.simpson View Post
/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.
 
Old 03-15-2011, 03:35 PM   #6
sean.simpson
LQ Newbie
 
Registered: Mar 2011
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jcalzare View Post
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RLimitMEM and apache mabin Linux - Server 1 10-18-2008 01:51 PM
file system limits monkeynuts84 Linux - Software 5 03-29-2007 03:04 PM
system logs (specifically for security) AmphetaminePhreak Linux - Newbie 4 07-31-2006 05:08 PM
PHP/Apache 2.0 POST limits merana Linux - Software 1 10-15-2002 10:56 PM
open file limits in 2.4 kernel/apache? eva2000 Linux - Newbie 8 07-29-2002 08:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration