Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/02/2012, 17:03
xdunkelheitx
 
Fecha de Ingreso: enero-2009
Mensajes: 53
Antigüedad: 15 años, 4 meses
Puntos: 1
Configuracion MaxClient

buenas, tengo un problema con mi servidor. Estoy que estudio los diferentes tiempos de respuesta de un servidor apache cambiando el maxclient para esto uso :


1. Laptop windows 7 core i3 . Pero el servidor lo tengo instalado en un virtualizado, vmware de windows server 2003 con 1 core, 2gb de ram y 10 de disco duro. La instalacion del apache la hize manual. (wifi)

2. Una pc windows xp dual core 2 duo. En el tengo el JMeter con el que hago la carga de trabajo para analizar la data. ( cable utp)

3. EL medio es un router TP-Link de 300 mb ... aunque solo esta pra 150mb wifi y la tarjeta de red de la pc para 100mb.

Hize mi prueba usando una pagina sencilla y cambiando los maxclient por intervalos de tiempo pero no me salio mucha la diferencia. Asi que quize ponerle algo mas de peso a la pagina para ver si los resultados eran mas notorios y me di cuenta que aun asi no hay tanto cambio.

Se que windows usa el modulo mpm_winnt pero no logre hacer cambiar, probe con los demas mpm y sin ningun resultado. Aqui un cuadro de los resultados que me salieron.



MaxClient/ThreadsPerChild-----mpm_winnt_module - mpm_winnt.c---prefork---worker---beos
35---------------------------15-------------------12--------12-----12------15
175--------------------------12-------------------12--------12-----11------12


Creo que entre 35 y 175 de MaxClient o ThreadsPerChild hay mucha diferencia a parte que la pagina que estoy probando pesa alrededor de 4 megas ( fotos para hacerla pesada ).

Alguna idea de que problema puedo tener?. Estoy intentando hacer un controlador PID. Y para esto necesito muestras y sacar el modelo matematico, pero con los datos que me estan saliendo no me sale ningun modelo confiable ( incluso se va a negativo la confiabilidad).

Espero me puedan ayudar con la configuracion. Gracias.

Adjunto mi httdp.conf ( tuve que eliminar algunas cosas para que pueda entrar )


Código HTML:
Ver original
  1. #
  2.  
  3.  
  4. PHPIniDir "C:/php"
  5.  
  6. #<IfModule mpm_winnt_module>
  7. #    ThreadsPerChild       175
  8. #    MaxRequestsPerChild    0
  9. #</IfModule>
  10.  
  11.  
  12. #<IfModule mpm_winnt.c>
  13. #  ThreadsPerChild       175
  14. #  MaxRequestsPerChild     0
  15. #</IfModule>
  16.  
  17. #<IfModule mpm_prefork_module>
  18. #    StartServers          5
  19. #    MinSpareServers       5
  20. #    MaxSpareServers      10
  21. #    MaxClients          175
  22. #    MaxRequestsPerChild   0
  23. #</IfModule>
  24.  
  25. #<IfModule mpm_worker_module>
  26. #    StartServers          2
  27. #    MaxClients           175
  28. #    MinSpareThreads      25
  29. #    MaxSpareThreads      75
  30. #    ThreadsPerChild      175
  31. #    MaxRequestsPerChild   0
  32. #</IfModule>
  33.  
  34. #<IfModule mpm_beos_module>
  35. #    StartThreads            10
  36. #    MaxClients             175
  37. #    MaxRequestsPerThread 10000
  38. #</IfModule>
  39.  
  40.  
  41. <IfModule !mpm_netware_module>
  42. <IfModule !mpm_winnt_module>
  43. #
  44. # If you wish httpd to run as a different user or group, you must run
  45. # httpd as root initially and it will switch.  
  46. #
  47. # User/Group: The name (or #number) of the user/group to run httpd as.
  48. # It is usually good practice to create a dedicated user and group for
  49. # running httpd, as with most system services.
  50. #
  51. User daemon
  52. Group daemon
  53.  
  54. </IfModule>
  55. </IfModule>
  56.  
  57.  
  58. <Directory />
  59.     Options FollowSymLinks
  60.     AllowOverride None
  61.     Order deny,allow
  62.     Deny from all
  63. </Directory>
  64.  
  65.  
  66. <Directory "C:/Archivos de programa/Apache Software Foundation/Apache2.2/htdocs">
  67.     #
  68.     # Possible values for the Options directive are "None", "All",
  69.     # or any combination of:
  70.     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  71.     #
  72.     # Note that "MultiViews" must be named *explicitly* --- "Options All"
  73.     # doesn't give it to you.
  74.     #
  75.     # The Options directive is both complicated and important.  Please see
  76.     # http://httpd.apache.org/docs/2.2/mod/core.html#options
  77.     # for more information.
  78.     #
  79.     Options Indexes FollowSymLinks
  80.  
  81.     #
  82.     # AllowOverride controls what directives may be placed in .htaccess files.
  83.     # It can be "All", "None", or any combination of the keywords:
  84.     #   Options FileInfo AuthConfig Limit
  85.     #
  86.     AllowOverride None
  87.  
  88.     #
  89.     # Controls who can get stuff from this server.
  90.     #
  91.     Order allow,deny
  92.     Allow from all
  93.  
  94. </Directory>
  95.  
  96. #
  97. # DirectoryIndex: sets the file that Apache will serve if a directory
  98. # is requested.
  99. #
  100. <IfModule dir_module>
  101.     DirectoryIndex index.html index.php
  102. </IfModule>
  103.  
  104. #
  105. # The following lines prevent .htaccess and .htpasswd files from being
  106. # viewed by Web clients.
  107. #
  108. <FilesMatch "^\.ht">
  109.     Order allow,deny
  110.     Deny from all
  111.     Satisfy All
  112. </FilesMatch>
  113.  
  114. #
  115. # ErrorLog: The location of the error log file.
  116. # If you do not specify an ErrorLog directive within a <VirtualHost>
  117. # container, error messages relating to that virtual host will be
  118. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  119. # container, that host's errors will be logged there and not here.
  120. #
  121. ErrorLog "logs/error.log"
  122.  
  123. #
  124. # LogLevel: Control the number of messages logged to the error_log.
  125. # Possible values include: debug, info, notice, warn, error, crit,
  126. # alert, emerg.
  127. #
  128. LogLevel warn
  129.  
  130. <IfModule log_config_module>
  131.     #
  132.     # The following directives define some format nicknames for use with
  133.     # a CustomLog directive (see below).
  134.     #
  135.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  136.     #LogFormat "%h %l %u %t \"%r\" %>s %b" common
  137.     #LogFormat "%D %h %t \"%r\" %>s" common
  138.     LogFormat "%h %t \"%r\" %b sec:%T usec:%D" common
  139.  
  140.  
  141.  
  142.     <IfModule logio_module>
  143.       # You need to enable mod_logio.c to use %I and %O
  144.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  145.     </IfModule>
  146.  
  147.     #
  148.     # The location and format of the access logfile (Common Logfile Format).
  149.     # If you do not define any access logfiles within a <VirtualHost>
  150.     # container, they will be logged here.  Contrariwise, if you *do*
  151.     # define per-<VirtualHost> access logfiles, transactions will be
  152.     # logged therein and *not* in this file.
  153.     #
  154.     CustomLog "logs/access.log" common
  155.  
  156.    
  157.  
  158.     #
  159.     # If you prefer a logfile with access, agent, and referer information
  160.     # (Combined Logfile Format) you can use the following directive.
  161.     #
  162.     #CustomLog "logs/access.log" combined
  163. </IfModule>
  164.  
  165. <IfModule alias_module>
  166.     #
  167.     # Redirect: Allows you to tell clients about documents that used to
  168.     # exist in your server's namespace, but do not anymore. The client
  169.     # will make a new request for the document at its new location.
  170.     # Example:
  171.     # Redirect permanent /foo http://IngControl_Server/bar
  172.  
  173.     #
  174.     # Alias: Maps web paths into filesystem paths and is used to
  175.     # access content that does not live under the DocumentRoot.
  176.     # Example:
  177.     # Alias /webpath /full/filesystem/path
  178.     #
  179.     # If you include a trailing / on /webpath then the server will
  180.     # require it to be present in the URL.  You will also likely
  181.     # need to provide a <Directory> section to allow access to
  182.     # the filesystem path.
  183.  
  184.     #
  185.     # ScriptAlias: This controls which directories contain server scripts.
  186.     # ScriptAliases are essentially the same as Aliases, except that
  187.     # documents in the target directory are treated as applications and
  188.     # run by the server when requested rather than as documents sent to the
  189.     # client.  The same rules about trailing "/" apply to ScriptAlias
  190.     # directives as to Alias.
  191.     #
  192.     ScriptAlias /cgi-bin/ "C:/Archivos de programa/Apache Software Foundation/Apache2.2/cgi-bin/"
  193.  
  194. </IfModule>
  195.  
  196. <IfModule cgid_module>
  197.     #
  198.     # ScriptSock: On threaded servers, designate the path to the UNIX
  199.     # socket used to communicate with the CGI daemon of mod_cgid.
  200.     #
  201.     #Scriptsock logs/cgisock
  202. </IfModule>
  203.  
  204. #
  205. # "C:/Archivos de programa/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased
  206. # CGI directory exists, if you have that configured.
  207. #
  208. <Directory "C:/Archivos de programa/Apache Software Foundation/Apache2.2/cgi-bin">
  209.     AllowOverride None
  210.     Options None
  211.     Order allow,deny
  212.     Allow from all
  213. </Directory>
  214.  
  215.  
  216. DefaultType text/plain
  217.  
  218. <IfModule mime_module>
  219.    
  220.     TypesConfig conf/mime.types
  221.  
  222.    
  223.     AddType application/x-compress .Z
  224.     AddType application/x-gzip .gz .tgz
  225.  
  226.  
  227. </IfModule>
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234. <IfModule ssl_module>
  235. SSLRandomSeed startup builtin
  236. SSLRandomSeed connect builtin
  237. </IfModule>