Logo
  • Entries
  • Comments
  • Popular
Recent Posts
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • July 2007
Recent Comments
  • Rubén Ortiz Bueno, algo vamos haciendo :P...
  • Edith Hola Rubén, desconozco si aún sigas atendiendo este blog, te...
  • Rubén Ortiz Este script trata sobre ello :)...
  • jonathan Hola Ruben, sabes como se puede realizar un backup de la bd ...
  • Rubén Ortiz Hola Eloy francamente no lo se, cada fabricante tiene un mé...
Popular Articles
  • Declaro la guerra al mosquito Tigre (35)
  • Phpbb3 - encode error converter (19)
  • MySQL - Variables básicas a configurar (19)
  • Reinicio programado Windows 2003 Server (17)
  • Plesk - Evitar el SPAM (10)
  • Home
  • Hosting Linux
  • Legal
  • Sobre mí – About me

Virtuozzo Containers – Apache alcanza MaxClients

Posted by Rubén Ortiz on Dec 11, 2008 in Parallels, Virtualizacion, Virtuozzo | 3 comments

Qué bonita sorpresa me encontré jugando con Apache bajo Virtuozzo 64 bits. ¿Pues no van y añaden un bonito swtune.conf del que yo no conocía, ni remotamente, su existencia? En definitiva, lo que pasaba es que, iluso de mi, modifica los parámetros típicos de Apache relativos a MaxClients, etc. Reiniciaba y enseguida, el servicio me avisaba de que había llegado al tope. Con un golpe de google encontré el problema/solución.

# cat /etc/httpd/conf.d/swtune.conf

##
## Server-Pool Size Regulation (MPM specific)
# 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
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
/IfModule prefork.c/
StartServers 1
MinSpareServers 1
MaxSpareServers 5
ServerLimit 10
MaxClients 10
MaxRequestsPerChild 4000
/IfModule/
/IfModule worker.c/
StartServers 1
MaxClients 10
MinSpareThreads 1
MaxSpareThreads 4
ThreadsPerChild 25
MaxRequestsPerChild 0
/IfModule/

En el fichero de configuración de Apache, se incluye la línea

Include conf.d/*.conf

Que a su vez, tiene el fichero swtune.conf, que lo que hace es volver a cargar unas directivas de Apache distintas a las que configuramos en httpd.conf. Podemos, o bien editar ese swtune.conf, o por otro lado, mover o borrar ese archivo para que no sobreescriba la configuración.

Links

  • http://forum.swsoft.com/showthread.php?t=56234

Saludos

3 Responses to “Virtuozzo Containers – Apache alcanza MaxClients”

  1. PDD20 says:
    10 de July, 2009 at 12:59 pm

    Muchisimas gracias por avisarnos, es absurda la configuracion que llevan. Llevaba tiempo buscando porque el maximo estaba en solo 10 y asi encontre tu blog :P

    Gracias!

  2. Rubén Ortiz says:
    10 de July, 2009 at 1:17 pm

    Yo también no lo entendía pero mira, perro viejo que empieza a ser uno XD

    Saludos

  3. ptt says:
    10 de February, 2010 at 7:40 pm

    Gracias. Me pasaba lo mismo y lo he solucionado. Llevo meses cambiando la configuración del httpd.conf porque apache se ralentizaba.

    No entiendo la razón del swtune.conf

    ¿putear a la gente?

Leave a Reply

Click here to cancel reply.

Nube de Tags

apache bare metal benchmark cacti centos dell esxi General gripe A Hardware IIS ipmi kayako Linux lpi lyric Lyrics memcached mysql nexenta nginx openfiler OpenVZ openx Parallels php Phpbb plesk postgresql prestashop proftpd raid SQL Server ssh svn trac ubuntu varnish Virtualizacion Virtuozzo Virtuozzo Linux Warphammer.net windows 2003 wordpress zabbix

Categorias

  • 2003 Server
  • Apache 2.X
  • benchmark
  • Centos
  • Cuanto (Luser) Cabron
  • ESXi
  • General
  • Hardware
  • IIS
  • Lighttpd
  • Linux
  • Lyrics
  • MySql
  • Nginx
  • OpenVZ
  • Parallels
  • Parallels Bare Metal
  • Php
  • Phpbb
  • Plesk
  • PostgreSQL
  • Prestashop
  • Software
  • SQL SERVER
  • Ubuntu
  • Varnish
  • Virtualizacion
  • Virtuozzo
  • Virtuozzo Windows
  • VMWare
  • Warphammer.net
  • Windows
  • Wordpress

Blogroll

  • David Toribio
  • EasyCompany.es
  • Marius Duch
  • Series
  • Warphammer.net

Recursos

  • Backup Plesk9
  • CentOS 5 32 bits RPMs
  • CentOS 5 64 bits RPMs
  • Lighttpd
  • MySQL Tunner
  • OpenVZ – Panel – PROXMOX
  • OpenVZ – Panel – VTONF
  • OpenVZ Wiki
  • Parallels Virtual Automation Resources
  • Plesk 8 Docs
  • Plesk 9 Docs
  • Plesk Hacker
  • Port80 – Compression Check
  • Virtuozzo DOCS
  • Virtuozzo Lin Commands
  • Virtuozzo Win Commands
  • Virtuozzo Windows Docu

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Designed by Elegant Themes | Powered by Wordpress