Sponsored Content
Full Discussion: lamp performance
Top Forums Web Development lamp performance Post 302246792 by Neo on Tuesday 14th of October 2008 11:34:17 AM
Old 10-14-2008
Quote:
Originally Posted by otheus
This is straight from Apache documentation. In your case, you want to set the maximum servers to something like 1024 (!) and the MinSpareServers to something like 128 or maybe even 512.
These numbers are too high and will cause performance problems.

FYI, our site is quite busy (do you have more traffic than this site?) and our numbers are much lower!




Code:
Timeout 20

ServerLimit 250
#
# 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 1000

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

...

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
    StartServers         30
    MinSpareServers      25
    MaxSpareServers      100
    MaxClients           250
    MaxRequestsPerChild  4000
</IfModule>

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

LAMP configuration

Hi there, I've got a debian 3.1r4 half working (no x yet :P) I need some pointers for installing a Apache - MySQL - PHP configuration on my box, and set them up to work together. I know to use vim a bit :) I would like something that is similar to tanguay.at, or even simpler, since I'm a real... (1 Reply)
Discussion started by: izua
1 Replies

2. UNIX for Advanced & Expert Users

LAMP Server Failover

How does everyone else handle this? My Setup: Server A: CentOS 5.x 10.0.0.1 Apache MySQL Master Server B: CentOS 5.x 10.0.0.2 Apache MySQL Slave My Domains: dom1.com A record: 10.0.0.1 A Record: 10.0.0.2 dom2.com A record: 10.0.0.1 A Record: 10.0.0.2 (3 Replies)
Discussion started by: Ikon
3 Replies

3. Web Development

LAMP - version updates and the impact!

Hello All, I have a LAMP server (CentOS 5.5) which has a lot of php scripts and the php pages runs fine. My question is if I have to allow the OS udpates regularly on the server, will there be any problems in running the existing php scripts? Please advise if my apache/mysql/php functionality... (3 Replies)
Discussion started by: ilan
3 Replies

4. Solaris

Need LAMP tutorial!

Hello Everybody, Does anybody know or recommend me a tutorial for LAMP server on Solaris 10 x86? (3 Replies)
Discussion started by: ahmedamer12
3 Replies

5. Web Development

Building LAMP server from scratch (build a server with compiled LAMP from CentOS mini)

Hello everyone, I would like to setup a lamp server from a minimal distro and to compile PHP, MySQL and Apache myself. I have chosen CentOS minimal for the OS and I am trying to build the stack by hand... But well, it appears I need some help! First: I am looking for good and recent... (3 Replies)
Discussion started by: freddie50
3 Replies

6. Programming

Lamp tutorial

Hello All, I need a good lamp(linux, apache, mysql, php) tutorial for web development. I searched in net but not finding suitable one. suggest me something. (3 Replies)
Discussion started by: amisubha
3 Replies

7. HP-UX

LAMP Installation On HP-UX

Dear Folks, How to Install LAMP on HP-UX system. Please Guide. Regards, KRISHNA (2 Replies)
Discussion started by: krishna.lu
2 Replies

8. Red Hat

Setting up LAMP environment

I wish to setup LAMP environment. Amongst, I have successfully installed Linux 6.1. I am looking fwd to install - Apace Web Server, My Sql Database & PHP environment. Say if I look for MySql, could see downloadable available in rpm format. But this must be copied over to Linux machine. As... (2 Replies)
Discussion started by: videsh77
2 Replies

9. UNIX for Advanced & Expert Users

LAMP Sever

How do I install a LAMP server on a new installation of Debian 9 using the lalest versions of AMP? Here is what I have. Corrections please. MYSQL apt-get install mysql-server mysql-client You can verify the MySQL server status using command: systemctl status mysql ------- PHP7... (0 Replies)
Discussion started by: Meow613
0 Replies
mod_ipp(4)							   File Formats 							mod_ipp(4)

NAME
mod_ipp - Embedded Internet Print Protocol (IPP) listener for the Apache HTTP server SYNOPSIS
/usr/apache/libexec/mod_ipp.so DESCRIPTION
The mod_ipp module implements RFCs 2910 and 2911 to provide an IPP handling service for the Apache HTTP server. When loaded on the Apache server, mod_ipp processes all HTTP requests with MIME types of application/ipp. The mod_ipp module also processes additional configuration directives to enable or disable portions of the protocol support. Using Configuration Directives The following is a list of configuration directives that apply to the Apache IPP Listening service: o ipp-conformance (automatic|1.0|1.1) o ipp-operation (operation) (enable|disable) o enable|disable The values true, yes, on, enable are considered to be synonymous and will enable support for the named operation. All other values will disable support for the named operation. Operations The following is a list of IPP handling service operations: print-job This operation is a required IPP operation that allows client systems to submit a print job with a single docu- ment embedded in the data stream. This operation is primarily used from the IPP support Microsoft has provided for its Windows (9X/ME/NT/2K/XP). print-uri This is an optional IPP operation that allows client systems to submit a print job with a reference (URL) for a single document. This operation is currently not supported by the mod_ipp Apache Module. validate-job This is a required IPP operation that allows client systems to simulate the submission of a print job to verify that the server is capable of handling the job. This operation is supported by mod_ipp. create-job This is an optional IPP operation that allows client systems to submit a print job. The operation is used with the send-document and send-uri operations. get-jobs This is a required IPP operation that allows client systems to retrieve a list of print jobs from the print ser- vice. get-printer-attributes This is a required IPP operation that allows client systems to retrieve attributes from the print service that describes the named printer object. pause-printer This an optional IPP operation that allows client systems to stop job processing on the named print queue. resume-printer This is an optional IPP operation that allows client systems to resume job processing on the named print queue. purge-jobs This is an optional IPP operation that allows client systems to cancel all print jobs on the named print queue. send-document This is a required IPP operation that allows client systems to add documents to print jobs created with the cre- ate-job operation, but not yet submitted. send-uri This is an optional IPP operation that allows a client system to add a document reference (URI) to a print job created with the create-job operation, but not yet submitted. This operation is currently not supported by the mod_ipp Apache Module. cancel-job This is a required IPP operation that allows client systems to cancel print jobs. get-job-attributes This is a required IPP operation that allows client systems to retrieve attributes that describe a print job from the print service. hold-job This is an optional IPP operation that allows client systems to hold print jobs. release-job This is an optional IPP operation that allows client systems to release print jobs. restart-job This is an optional IPP operation that allows client systems to restart print jobs. all This is a place holder for enabling or disabling support for all IPP operations implemented by the mod_ipp Apache module. required This is a place holder for enabling or disabling support for the required IPP operations implemented by the mod_ipp Apache module. EXAMPLES
Example 1 Using a Configuration File to Start a Standalone Apache Server The following configuration file can be used to start a standalone Apache server to respond to IPP request sent to port 631. ServerType standalone ServerRoot "/usr/apache" PidFile /var/run/httpd-standalone-ipp.pid ErrorLog /var/lp/logs/ipp-errors Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 1 MaxSpareServers 3 StartServers 1 MaxClients 150 MaxRequestsPerChild 0 LoadModule ipp_module libexec/mod_ipp.so ClearModuleList AddModule mod_ipp.c AddModule mod_so.c Port 631 User lp Group lp ServerAdmin lp@localhost DefaultType application/ipp <IFModule mod_app> <Location /> ipp-operation all on </Location> </IFModule mod_app> A more restrictive configuration might include the following parameters: <IFModule mod_app> <Location /> ipp-operation all offn ipp-operation required on </Location> </IFModule mod_app> ATTRIBUTES
See attributes(5) or descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWipplu | +-----------------------------+-----------------------------+ |Interface Stability |External | +-----------------------------+-----------------------------+ SEE ALSO
man(1), catman(1M), attributes(5) Herriot, R., Ed., Butler, S., Moore, P., Turner, R., Wenn, J. RFC 2910, Internet Printing Protocol/1.1: Encoding and Transport. Network Working Group. September 2000. Hastings, T., Ed., Herriot, R., deBry, R., Isaacson, S., Powell, P. RFC 2911, Internet Printing Protocol/1.1: Model and Semantics. Network Working Group. September 2000. http://www.apache.org NOTES
Configuration file directives are processed in the order listed in the config file. The default behavior is to enable support for all oper- ations implemented in the mod_ipp Apache module. Since the Apache IPP listening service implements some capabilities that are more of operator features, it may not be desirable to enable all IPP operations without requiring user authentication on the Apache listening service. The following is an example of a more reasonable configuration for Apache IPP servers without user authentication enabled: ipp-operations all disabled ipp-operations required enabled The printers and jobs available under this service can be accessed using URIs of the following form: printer: http://server[:port]/printers/{queue} ipp://server[:port]/printers/{queue} job: http://server[:port]/printers/{queue}/{job-id} ipp://server[:port]/printers/{queue}/{job-id} 631 is the default IPP port and implied when the URI scheme is ipp. However, some client implementations do not recognize the ipp URI scheme and require http://server:631/... instead. For example, Microsoft's IPP client implementation does not recognize the ipp scheme. In addition to the documentation and man pages included with Solaris, more information is available at http://www.apache.org The httpd(8) man page and other Apache man pages are provided with the programming modules. To view the Apache manual pages with the man command, add /usr/apache/man to the MANPATH environment variable. See man(1) for more information. Running catman(1M) on the Apache manual pages is not supported. SunOS 5.11 26 Nov 2003 mod_ipp(4)
All times are GMT -4. The time now is 05:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy