LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-14-2017, 01:09 PM   #1
jcorzo21
LQ Newbie
 
Registered: Sep 2017
Posts: 1

Rep: Reputation: Disabled
There are many unfinished apache processes


I have an apache server that at one point starts to generate many instances to the point that my web page does not load, I have to kill all the apache processes and restart the service, to be able to solve the problems.

This is one of the outputs of the processes

apache 31431 12443 0 09:05? 00:00:12 / usr / sbin / apache2 -k start
apache 31460 12443 0 09:06? 00:00:06 / usr / sbin / apache2 -k start
apache 31502 12443 0 09:10? 00:00:06 / usr / sbin / apache2 -k start
apache 31530 12443 0 09:15? 00:00:08 / usr / sbin / apache2 -k start
apache 31567 12443 0 09:24? 00:00:03 / usr / sbin / apache2 -k start
apache 31576 12443 0 09:24? 00:00:07 / usr / sbin / apache2 -k start
apache 31628 12443 0 09:28? 00:00:03 / usr / sbin / apache2 -k start
apache 31639 12443 0 09:28? 00:00:07 / usr / sbin / apache2 -k start
apache 31642 12443 0 09:28? 00:00:05 / usr / sbin / apache2 -k start
apache 31655 12443 0 09:29? 00:00:05 / usr / sbin / apache2 -k start
apache 31669 12443 0 09:30? 00:00:05 / usr / sbin / apache2 -k start
apache 31707 12443 0 09:38? 00:00:03 / usr / sbin / apache2 -k start
apache 31708 12443 0 09:38? 00:00:02 / usr / sbin / apache2 -k start
apache 31719 12443 0 09:39? 00:00:01 / usr / sbin / apache2 -k start
apache 31728 12443 0 09:40? 00:00:04 / usr / sbin / apache2 -k start
apache 31730 12443 0 09:40? 00:00:02 / usr / sbin / apache2 -k start
apache 31740 12443 0 09:40? 00:00:02 / usr / sbin / apache2 -k start
apache 31747 12443 0 09:40? 00:00:04 / usr / sbin / apache2 -k start
apache 31753 12443 0 09:41? 00:00:01 / usr / sbin / apache2 -k start
apache 31757 12443 0 09:41? 00:00:03 / usr / sbin / apache2 -k start
apache 31775 12443 0 09:42? 00:00:02 / usr / sbin / apache2 -k start

This is the configuration of the workers module
****<IfModule mpm_worker_module>
*******StartServers 128
*******ServerLimit 256
*******MinSpareThreads 32
*******MaxSpareThreads 128
*******ThreadLimit 2048
*******ThreadsPerChild 64
*******MaxClients 4096
*******MaxRequestsPerChild 8000
****</ IfModule>
 
Old 09-14-2017, 06:06 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by jcorzo21 View Post
I have an apache server that at one point starts to generate many instances to the point that my web page does not load, I have to kill all the apache processes and restart the service, to be able to solve the problems.
We do not know what this server is supposed to provide, what the application documentation (if any) suggests performance-wise or what causes the problem without you posting more details.


Quote:
Originally Posted by jcorzo21 View Post
This is one of the outputs of the processes
No it isn't because UNIX doesn't do spaces like that. Minor nit but please post actual representations of what output system commands offer.


Quote:
Originally Posted by jcorzo21 View Post
This is the configuration of the workers module
****<IfModule mpm_worker_module>
*******StartServers 128
*******ServerLimit 256
*******MinSpareThreads 32
*******MaxSpareThreads 128
*******ThreadLimit 2048
*******ThreadsPerChild 64
*******MaxClients 4096
*******MaxRequestsPerChild 8000
****</ IfModule>
What are these settings based on? Application (as in HTTPd) installation defaults? Recommended by the application?
*The first reflex would be to up any values. That's nice but it's wrong. Try to set more aggressive settings: less servers, less spares, shorter TTL's, less requests-per-child. Basically less of everything, forcing the system to work harder. Before you do that establish a baseline by stress testing the application and jotting down configuration changes and the effect they have on performance running consecutive tests.
 
  


Reply



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
Unfinished file copies? brpy1 Linux Mint 3 06-21-2011 07:20 PM
[SOLVED] Can't boot after unfinished -current upgrade; libblkid.so.1 missing sombragris Slackware 2 04-06-2010 11:58 AM
LXer: Software's unfinished business for 2007 LXer Syndicated Linux News 0 12-27-2006 08:21 AM
so many apache processes cjpsparks Linux - Software 4 01-07-2004 04:54 PM
Unfinished threads unSpawn LQ Suggestions & Feedback 3 07-12-2001 04:39 PM

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

All times are GMT -5. The time now is 05:05 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