conf de apache

Forums: 

Actualmente tengo un server que sirve para alojar varios sitios el cual tiene las siguientes caracteristicas:


Processor Information

Processor #1 Vendor: GenuineIntel
Processor #1 Name: Intel(R) Pentium(R) 4 CPU 2.80GHz
Processor #1 speed: 2793.985 MHz
Processor #1 cache size: 1024 KB

Processor #2 Vendor: GenuineIntel
Processor #2 Name: Intel(R) Pentium(R) 4 CPU 2.80GHz
Processor #2 speed: 2793.985 MHz
Processor #2 cache size: 1024 KB


Memory Information
Memory: 1025360k/1040272k available (1877k kernel code, 14124k reserved, 759k data, 184k init, 122768k highmem)

Como Os tiene CentOS 4.4 i686, y en disco duro 80 GB de los cuales hay disponible 75 Gb.

En vista de las caracteristicas del equipo cual seria la configuracion mas optima para el apache ?

Se agradece los comentarios

No entiendo la pregunta

Imagen de deathUser

No entiendo la pregunta ...???
Estás teniendo problemas de performance ...???
Qué mas ejecutas en tu apache/server ...???

Trata de hacer menos general la pregunta ...

bye
:)

ultimamente veo una

Imagen de devilsoulblack

ultimamente veo una sobrecarga de cpu por parte del apache y queria ver cual es la conf optima del apache para un ekipo con las caracteristcas citadas
® { No HopE & No FeaR } ®
Be part of the change, because We are the change..
Projects:
Orenses.org: http://www.orenses.org
DeVilSoulBlacK WebLog: http://www.devilsoulblack.com
Your Daily News On The Web: http://www.bitsofnews.net

® { No HopE & No FeaR } ®
Be part of the change, because We are the change..
Projects:
Orenses.org: http://www.orenses.org

Haz visto demasiados

Imagen de deathUser

Haz visto demasiados procesos de APACHE corriendo, o un proceso que está comiendose muchos recursos ...???

Puede ser problema de alguna página, alguna vez unos reportes con loops infinitos causaban problemas al mantener demasiado tiempo cautivo al procesador ...

Podrías tratar con ulimit o nice en caso de que quieras limitar los recursos que pueda usar el apache (nobody) ...

Suerte ...

bye
:)

no tanto es eso si no que la

Imagen de devilsoulblack

no tanto es eso si no que la media diaria de visitas unicas de un sitio que tengo alojado es de 35000 y en horas picos se suele comer mucho recurso el apache, :( y queria comparar el conf del apache que tengo con el de alguien mas y ver si el mio es optimo para los recursos que tiene el equipo que esta de servidor

® { No HopE & No FeaR } ®
Be part of the change, because We are the change..
Projects:
Orenses.org: http://www.orenses.org
DeVilSoulBlacK WebLog: http://www.devilsoulblack.com
Your Daily News On The Web: http://www.bitsofnews.net

® { No HopE & No FeaR } ®
Be part of the change, because We are the change..
Projects:
Orenses.org: http://www.orenses.org

Segun como le veas, alguien

Imagen de deathUser

Segun como le veas, alguien alguna vez me dijo que si el uso del CPU estaba por debajo del 90% estaba desperdiciando recursos al tenerlos ociosos, claro que no está demás pensar en tunear tu apache si ya te está dando problemas de performance, ahora, haz analizado los logs, crees que no se estén atendiendo todos los requerimientos, cual es el síntoma que estás teniendo ... más detalles por favor ...

Postea las partes de tu config que tengan que ver con uso de recursos ...

Incluso las resoluciones de DNS (directas e inversas) generan carga en CPU y afectan en el tiempo en el que un requerimiento es atendido ...

bye
:)

La informacion que neesito

Imagen de devilsoulblack

La informacion que neesito saber si es la mas optima para el conf de mi apache seria la siguiente:


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

#
# 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. Rather than making you guess how many
# server processes you need, Apache dynamically adapts to the load it
# sees --- that is, it tries to maintain enough server processes to
# handle the current load, plus a few spare servers to handle transient
# load spikes (e.g., multiple simultaneous requests from a single
# Netscape browser).
#
# It does this by periodically checking how many servers are waiting
# for a request. If there are fewer than MinSpareServers, it creates
# a new spare. If there are more than MaxSpareServers, some of the
# spares die off. The default values are probably OK for most sites.
#
MinSpareServers 5
MaxSpareServers 10

#
# Number of servers to start initially --- should be a reasonable ballpark
# figure.
#
StartServers 5

#
# Limit on total number of servers running, i.e., limit on the number
# of clients who can simultaneously connect --- if this limit is ever
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
# It is intended mainly as a brake to keep a runaway server from taking
# the system with it as it spirals down...
#
MaxClients 150
#
# MaxRequestsPerChild: the number of requests each child process is
# allowed to process before the child dies. The child will exit so
# as to avoid problems after prolonged use when Apache (and maybe the
# libraries it uses) leak memory or other resources. On most systems, this
# isn't really needed, but a few (such as Solaris) do have notable leaks
# in the libraries. For these platforms, set to something like 10000
# or so; a setting of 0 means unlimited.
#
# NOTE: This value does not include keepalive requests after the initial
# request per connection. For example, if a child process handles
# an initial request and 10 subsequent "keptalive" requests, it
# would only count as 1 request towards this limit.
#
MaxRequestsPerChild 0

La informacion citada arriba es la que posee en mi apache, es la mas optima que deberia tener un server con las caracteristicas antes citadas ?

® { No HopE & No FeaR } ®
Be part of the change, because We are the change..
Projects:
Orenses.org: http://www.orenses.org
DeVilSoulBlacK WebLog: http://www.devilsoulblack.com
Your Daily News On The Web: http://www.bitsofnews.net

® { No HopE & No FeaR } ®
Be part of the change, because We are the change..
Projects:
Orenses.org: http://www.orenses.org

Al final al estar probando

Imagen de devilsoulblack

Al final al estar probando con la conf mas optima del apache para mi server resulto ser la que cito a continuacion.


Timeout 300
KeepAlive On
MaxKeepAliveRequests 10
KeepAliveTimeout 2
MinSpareServers 10
MaxSpareServers 25
StartServers 15
MaxClients 250
MaxRequestsPerChild 10

Cabe recordar que esta confiracion es optima para el equipo que tengo como web server, obviamente debe variar tanto por el hardware y el numero de peticiones que se realisen al apache
® { No HopE & No FeaR } ®
Be part of the change, because We are the change..
Projects:
Orenses.org: http://www.orenses.org
DeVilSoulBlacK WebLog: http://www.devilsoulblack.com
Your Daily News On The Web: http://www.bitsofnews.net

® { No HopE & No FeaR } ®
Be part of the change, because We are the change..
Projects:
Orenses.org: http://www.orenses.org

Te felicito que en 2 días

Imagen de Epe

Te felicito que en 2 días has logrado lo que a mi me ha tomado años, ojalá te funcione la confiugración. En todo caso es un bonito ejemplo de alguien que se dedica a mantener su propio servidor. Y para los que vengan que comprendan que tener un servidor linux no es llegar e instalarlo sino darle servicio y ajustarlo.

Tengo bonitos libros que me compro con el fruto de mis ingresos para aprender pues ajustar un servidor es una tarea de meses... te lo juro.

No te garantizo que esos pequeños cambios sean todos, pero suerte, al menos tienes un problema y tienes que resolverlo, me parece bien.

35mil visitas no es gran cosa.. quizá hayan otros problemas mas que las 35 mil visitas.

Saludos
epe
--
EcuaLinux.com
Ecuador: +(593) 9 9246504, +(593) 2 3412402
USA: +1 404 795 0321, España: +34 917617884


Saludos
epe

EcuaLinux.com

+(593) 9 9924 6504

Servicios en Software Libre

Pues te coemnto que en el

Imagen de devilsoulblack

Pues te coemnto que en el top solo observava consumo alto del apache y al modificarlo de tal manera los consumos bajaron, a parte tambien hay que agregar qye tengo bastante consumo de email, aunque ese no es problema, recomiendas algun cambio o tuneada mas al apache ?
® { No HopE & No FeaR } ®
Be part of the change, because We are the change..
Projects:
Orenses.org: http://www.orenses.org
DeVilSoulBlacK WebLog: http://www.devilsoulblack.com
Your Daily News On The Web: http://www.bitsofnews.net

® { No HopE & No FeaR } ®
Be part of the change, because We are the change..
Projects:
Orenses.org: http://www.orenses.org

has usado ab?

Imagen de acl

Apache viene con un utilitario muy simpatico para ayudarte en el "tuning" de tu maquina. ab (apache benchmark) te permite simular algunas condiciones de carga.

Claro que hay paquetes mas completos, pero a veces es bueno comenzar desde lo simple.