[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

Apache Tuning Question

Hello,

I ran a tuner script and this is what it says, can you please tell me what it means :-))

########################################################################
# Apache Buddy v 0.3 ###################################################
########################################################################
Gathering information...
We are checking the service running on port 80
The process listening on port 80 is /usr/sbin/httpd
The process running on port 80 is Apache/2.2.15 (Unix)
Apache has been running 0d 07h 24m 47s
The full path to the Apache config file is: /etc/httpd/conf/httpd.conf
Apache is using prefork model

Examining your Apache configuration...
Apache runs as apache
Your max clients setting is 1500

Analyzing memory use...
Your server has 15923 MB of memory
The largest apache process is using 49.88 MB of memory
The smallest apache process is using 11.11 MB of memory
The average apache process is using 34.49 MB of memory
Going by the average Apache process, Apache can potentially use 51735.00 MB RAM (324.91 % of available RAM)
Going by the largest Apache process, Apache can potentially use 74820.01 MB RAM (469.89 % of available RAM)

Generating reports...
### GENERAL REPORT ###

Settings considered for this report:

	Your server's physical RAM:		15923MB
	Apache's MaxClients directive:		1500
	Apache MPM Model:			prefork
	Largest Apache process (by memory):	49.88MB
[ !! ]	Your MaxClients setting is too high. It should be no greater than 319.
	Max potential memory usage: 74820 MB(469.89 % of available RAM)

	Percentage of RAM allocated to Apache		469.89 %

-----------------------------------------------------------------------
-----------------------------------------------------------------------

ERROR: AllProcsTotalMem (48549.03 MB) exceeds MemTotal (15923.97 MB) and free swap (3992.06 MB) by 28633.00 MB.

Open in new window

0
movieprodw
Asked:
movieprodw
  • 4
  • 3
2 Solutions
 
BharathKumarRaju DasaraRajuDevops EngineerCommented:
Sometimes allocating too much memory creates a memory problem. Unless there is a specific reason to allocate.....could you check your memory allocation and total RAM available please?

Next, check your database allocation. Often memory is the first thing people allocate to make something run faster when there are other items that should be done (like query tuning)
0
 
gheistCommented:
httpd-worker will serve same users at 10x smaller memory footprint.
0
 
movieprodwAuthor Commented:
Hello,

There is no db on this server, it is hosted on a mother server.

The server keeps shutting down when there are 170+ people on it.

Looks like I have to change some stuff.

Any pointers are greatly appreciated
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
gheistCommented:
Read it in my previous comment:
https://httpd.apache.org/docs/2.2/mod/worker.html
0
 
movieprodwAuthor Commented:
Thank you!

I know I am slow, but where are these settings, I can not find the file they are in.

Matt
0
 
movieprodwAuthor Commented:
Oh I found it, sorry.

<IfModule prefork.c>
StartServers       64
MinSpareServers    64
MaxSpareServers   512
ServerLimit      2000
MaxClients       1500
MaxRequestsPerChild  0
</IfModule>

Open in new window


<IfModule worker.c>
StartServers         4
MaxClients         300
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

Open in new window

0
 
gheistCommented:
Not really, sorry. You need to select MPM
Nice if you manage to share name of your distribution. I can guess where it is...
0
 
movieprodwAuthor Commented:
Hired someone, thanks.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now