LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-19-2016, 05:53 AM   #1
circus78
Member
 
Registered: Dec 2011
Posts: 234

Rep: Reputation: Disabled
Apache and high memory usage


Hi,
I am using Apache 2.2.15 on CentOS 6.7.
MPM is prefork, PHP is running as module.

On this server I often notice high memory consumption, swap usage, and high I/O.
Generally I restart Apache, and memory returns ok.
In general error_log I see this:

[Sat Mar 19 08:40:27 2016] [error] server reached MaxClients setting, consider raising the MaxClients setting

Now MaxClients (and ServerLimit) is 1024.
It is quite strange, this issue happens even in very low-traffic hours.
Could be a DOS attack? How can I debug this?

Thankyou

p.s. I already tried with FastCGI (php-fpm). No way, too unstable, too hard to configure
 
Old 03-21-2016, 08:46 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170
The connection log should tell you what's going on. (It's definitely peculiar if such things happen "in the wee hours," although the world never sleeps.)

It also very much depends on what your Apache server processes are doing, and how they have been configured. For example, are you using "mod_php" or "mod_perl" or somesuch? Are you doing work that might ordinarily be expected to be memory-hungry?
 
  


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
[SOLVED] Memory usage high fkasmani Linux - Software 14 04-08-2010 02:26 PM
High Memory Usage jbum Slackware 6 04-26-2008 03:46 PM
Memory usage too high duBeN Slackware 2 12-04-2006 07:03 AM
High memory usage Kapriel Debian 6 07-29-2005 12:01 PM
High memory usage? Davus Linux - General 6 11-28-2004 03:33 AM

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

All times are GMT -5. The time now is 05:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration