Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Configuration of apache 2.0.47 running on AIX 5.2

Posted on 2004-11-23
4
Medium Priority
?
303 Views
Last Modified: 2008-02-01
We are experiencing problems on our AIX server when we are running many processes.  I am not sure if it is apache related but it seemed like a good starting point.  The processes generated on the AIX server will usually require access to a separate database server to retrieve data.  We have demonstrated that when we run a particular application wherebye many processes of the same type are running in parallel, we find that some processes are failing when they are not expected to.  If we run these processes serially we do not experience this problem.  I wondered if there could be a configuration problem with apache that is causing this.  I'm not that familiar with apache so I'm not sure how I can check out if it is an apache problem.  I'm aware of the /usr/IBMIHS/logs/error_log file but I'm not sure how to interpret what's in it.
Also of the /usr/IBMIHS/conf/http.conf file but there are many settings in here and I'm not sure how I can check if, for example, any of the max values specified are being exceeded.  Any pointers would be very welcome.  I can provide more config/log info if this would help.
0
Comment
Question by:DLyall
  • 3
4 Comments
 
LVL 19

Expert Comment

by:ramazanyich
ID: 12656190
you can limit maximum number of client connections. It is set by parameter in httpd.conf:
MaxClients number
0
 
LVL 6

Author Comment

by:DLyall
ID: 12656696
Hi ramazanyich

MaxClients is currently set to 150.  Below is an extract of other settings in the http.conf file.  Is there a problem with MaxKeepAliveRequests being set to 100, less than MaxClients?  What would be a sensible value for MaxClients to try?

Thanks

Don

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 43200

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
##


# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 12657369
I think parameter
Timeout 43200

is to big. Put it to 15 minutes (or even try to disable):
Timeout 900
0
 
LVL 19

Accepted Solution

by:
ramazanyich earned 700 total points
ID: 12657390
Another problem will be that your DB to which you connect has a limit of client connections.
if you set maxclients 150 - then it is possible that all HTTP connections will trigger connection to DB.
Check that number of DB connections is enough
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month13 days, left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question