Foros del Web » Administración de Sistemas » Cloud Computing »

Problema servidor dedicado

Estas en el tema de Problema servidor dedicado en el foro de Cloud Computing en Foros del Web. Hola buen dia, tengo un servidor dedica, y tengo una web que es mimp3.net normalmente anda entre 70 y 120 usuarios enlinea al mismo tiempo, ...
  #1 (permalink)  
Antiguo 22/08/2009, 19:54
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Problema servidor dedicado

Hola buen dia, tengo un servidor dedica, y tengo una web que es mimp3.net normalmente anda entre 70 y 120 usuarios enlinea al mismo tiempo, y al dia tiene entre 4500 y 5500 visitas unicas, pero el problemas esq luego contrato publicidad y las visitantes online simultaneos aumentan como a 170, y la carga del server se sube hasta 100 o 120, cuando no tienen mas de 5 minutos en la web, que puede ser, como puedo arregarlo, me habian comentado que poniendo nginx como rever proxy, pero no si se eso ayude, espero me puedan auxiliar.
  #2 (permalink)  
Antiguo 24/08/2009, 06:32
 
Fecha de Ingreso: agosto-2008
Ubicación: España
Mensajes: 216
Antigüedad: 15 años, 8 meses
Puntos: 5
Respuesta: Problema servidor dedicado

Un servidor que con 100 visitas anda perfectamente, si le metes 170 (es casi el doble) puede dejarte de funcionar por un simple problema de limites en su hardware, deberias revisar mas que otra cosa tema recursos de hardware.
Se te queda sin memoria y tira peticiones a la swap?, te levanta un numero muy alto de consultas mysql?, como anda el acceso a disco?.Suerte.
__________________
RAN Networks S.L
Servidores Dedicados
Cloud Computing
  #3 (permalink)  
Antiguo 24/08/2009, 07:22
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

Mira mi servidor tiene:

Intel(R) Pentium(R) CPU E5400 @ 2.70GHz
3gb de ram
320gb

el servidor tiene 4 paginas, que al dia esta recibiendo como 9000 visita, pero mimp3.net es la que envia aprox. 5000 al dia, pero cuando se duplican los usuarios online es cuando empieza a ahcer esto y a subir la carga hasta 100-120 que es demasiado.



Cita:
Iniciado por ranman Ver Mensaje
Un servidor que con 100 visitas anda perfectamente, si le metes 170 (es casi el doble) puede dejarte de funcionar por un simple problema de limites en su hardware, deberias revisar mas que otra cosa tema recursos de hardware.
Se te queda sin memoria y tira peticiones a la swap?, te levanta un numero muy alto de consultas mysql?, como anda el acceso a disco?.Suerte.
  #4 (permalink)  
Antiguo 24/08/2009, 09:01
Avatar de calerito  
Fecha de Ingreso: marzo-2008
Mensajes: 205
Antigüedad: 16 años, 1 mes
Puntos: 2
Respuesta: Problema servidor dedicado

Es normal, tienes un procesador demasiado chico para tu web te recomiendo que te piyes otro server con otro procesador más efectivo, o en otro caso quitar todos los módulos que no te merezcan la pena del server y de la web, así aligerarás la cosa.

Un saludo!
  #5 (permalink)  
Antiguo 24/08/2009, 09:18
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

pues fijate que ayer les dije a los de soporte que configuraran el my.cnf y lo hicieron, ya no se sobre carga tanto, ahora con 140 usuarios en linea la carga sube a 5-6 maximo, tu crees que con un procesador CORE2 Duo E8400 3.00GHz pueda funcionar bien? o algun servicio de dedicados a buen precio que me recomiendes.
  #6 (permalink)  
Antiguo 24/08/2009, 09:20
Avatar de calerito  
Fecha de Ingreso: marzo-2008
Mensajes: 205
Antigüedad: 16 años, 1 mes
Puntos: 2
Respuesta: Problema servidor dedicado

Del pentium que tienes ahora al CORE2 Duo E8400 3.00GHz cambia el dirección de camino te debería de ir bien.

Otra cosilla ¿Qué panel de control utilizas?
  #7 (permalink)  
Antiguo 24/08/2009, 09:34
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

Utilizo el directamin
  #8 (permalink)  
Antiguo 24/08/2009, 09:40
Avatar de calerito  
Fecha de Ingreso: marzo-2008
Mensajes: 205
Antigüedad: 16 años, 1 mes
Puntos: 2
Respuesta: Problema servidor dedicado

MMM... entonces utiliza el correcto es muy ligero y práctico siga utilizandolo!
  #9 (permalink)  
Antiguo 24/08/2009, 10:06
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

solo una pregunta mas, en que variables del httpd.conf puedo hacer alguna otra optimizacion para hacer que la carga baje o no se alente, o si instalo en nginx como reverse proxy funcionaria?
  #10 (permalink)  
Antiguo 24/08/2009, 12:25
Avatar de calerito  
Fecha de Ingreso: marzo-2008
Mensajes: 205
Antigüedad: 16 años, 1 mes
Puntos: 2
Respuesta: Problema servidor dedicado

Lo del proxy lo veo una pura tonteria, a mi parecer, y al httpd no le toques, te recomiendo que en todo caso bajes los complementos de la web, cualquier modulo que no sea muy necesario ya está demás...

Recuerda que lo que gasta un modulo se multiplica x 170 usuarios online...
  #11 (permalink)  
Antiguo 24/08/2009, 12:38
 
Fecha de Ingreso: abril-2009
Mensajes: 371
Antigüedad: 15 años
Puntos: 22
Respuesta: Problema servidor dedicado

Cita:
Iniciado por calerito Ver Mensaje
Del pentium que tienes ahora al CORE2 Duo E8400 3.00GHz cambia el dirección de camino te debería de ir bien.
eing? si la diferencia tampoco es tan grande, de 2.7ghz a 3ghz y mas cache...

el reverse proxy con nginx solucionaria un problema de carga si fuera causado por apache, yo creo que tu problema esta en la base de datos

la solucion barata seria configurar mejor la base de datos (caches, indices...) y despues incluso cachear algunas queries con memcached
la solucion cara seria contratar otro servidor y usarlo exclusivamente para la base de datos, o mas memoria en el servidor actual

el procesador no afecta practicamente para nada a la base de datos
  #12 (permalink)  
Antiguo 24/08/2009, 13:31
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

el dia de ayer acaban de configurar el mysql, aqui les dejo el my.cnf:

# Example MySQL config file for large systems.
#
# This is for a large system with memory = 512M where the system runs mainly
# MySQL.
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /var/lib/mysql) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /var/lib/mysql/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 256M
max_allowed_packet = 1M
table_cache = 2900
sort_buffer_size = 2M
read_buffer_size = 1M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 256M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8

# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking

# Disable Federated by default
skip-federated

# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout


No se que me puedan decir de la configuracion
  #13 (permalink)  
Antiguo 24/08/2009, 14:39
Avatar de calerito  
Fecha de Ingreso: marzo-2008
Mensajes: 205
Antigüedad: 16 años, 1 mes
Puntos: 2
Respuesta: Problema servidor dedicado

Cita:
Iniciado por mpeg Ver Mensaje
eing? si la diferencia tampoco es tan grande, de 2.7ghz a 3ghz y mas cache...

el reverse proxy con nginx solucionaria un problema de carga si fuera causado por apache, yo creo que tu problema esta en la base de datos

la solucion barata seria configurar mejor la base de datos (caches, indices...) y despues incluso cachear algunas queries con memcached
la solucion cara seria contratar otro servidor y usarlo exclusivamente para la base de datos, o mas memoria en el servidor actual

el procesador no afecta practicamente para nada a la base de datos
De un Pentium a un Core 2 duo va mucha diferencia, no te fijes tan solo en la potencia GHz..., ademas no se si el primero tiene dos núcleos, supongo que si... pero sino...

Y como que el servidor no afecta a la base de datos? entonces las consultas que se realizan girando una manivela?

Un Salu2!
  #14 (permalink)  
Antiguo 24/08/2009, 14:51
 
Fecha de Ingreso: abril-2009
Mensajes: 371
Antigüedad: 15 años
Puntos: 22
Respuesta: Problema servidor dedicado

Cita:
Iniciado por calerito Ver Mensaje
De un Pentium a un Core 2 duo va mucha diferencia, no te fijes tan solo en la potencia GHz..., ademas no se si el primero tiene dos núcleos, supongo que si... pero sino...

Y como que el servidor no afecta a la base de datos? entonces las consultas que se realizan girando una manivela?

Un Salu2!
es un pentium (y si, tiene 2 nucleos) muy nuevo el 5400, lo he mirado y de fabrica el 8400 saca 1.5 veces mas puntuacion en passmark (teoricamente 1.5 veces mas potente) aunque al 5400 se le puede sacar mucho mas rendimiento con OC (si no fuese un servidor, claro xD)
asi que dependeria de la diferencia de precio el si vale la pena o no

y dije que el procesador no influye para la base de datos, no el servidor

y lo digo con conocimiento de causa, llevo años trabajando con SQL server y (en menor medida) mysql y la diferencia de rendimiento si a un servidor le añades unos cuantos gb de ram comparado con un procesador mejor es tremenda
mi servidor de base de datos tenia 8 nucleos y 32gb de ram, el procesador siempre estaba al minimo (excepto para reports y cosas muy bestias) pero la ram hacia que las queries fueran rapidisimas

@viciovirtual: la configuracion es bastante estandar, importa mas si tus bases de datos tienen indices, si tu aplicacion web hace las consultas de forma optimizada, etc.

Última edición por mpeg; 24/08/2009 a las 14:57
  #15 (permalink)  
Antiguo 25/08/2009, 06:55
 
Fecha de Ingreso: agosto-2008
Ubicación: España
Mensajes: 216
Antigüedad: 15 años, 8 meses
Puntos: 5
Respuesta: Problema servidor dedicado

totalmente con mpeg, hablar de que el micro que tiene es pequeño es algo a mi punto de ver un sin sentido, me inclino mas a poca RAM para las consultas que esta generando, el servidor mysql que no esta del todo optimizado ( veo ya lo has tocado algo y va mejor el servicio), o el tema de optimizacion de las consultas a la BDD. Pero insisto en un servidor web el micro queda muy bonito pero se usa normalmente para poco. Posteate un free,top,uptime para sacar alguna conclusion mas fiable.
Suerte
__________________
RAN Networks S.L
Servidores Dedicados
Cloud Computing
  #16 (permalink)  
Antiguo 25/08/2009, 12:25
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

Hola buen dia, aqui esta el:

UPTIME:

10:41:42 up 2 days, 15:36, 1 user, load average: 2.28, 2.25, 3.00


FREE:

total used free shared buffers cached
Mem: 3085240 2873804 211436 0 309208 1867940
-/+ buffers/cache: 696656 2388584
Swap: 2048276 18252 2030024

TOP:
top - 10:44:17 up 2 days, 15:39, 1 user, load average: 2.81, 2.54, 2.99
Tasks: 265 total, 7 running, 258 sleeping, 0 stopped, 0 zombie
Cpu(s): 33.7%us, 8.1%sy, 0.0%ni, 57.3%id, 0.2%wa, 0.0%hi, 0.7%si, 0.0%st
Mem: 3085240k total, 2835188k used, 250052k free, 310064k buffers
Swap: 2048276k total, 18252k used, 2030024k free, 1872268k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
26627 apache 15 0 26272 12m 3548 S 4.6 0.4 0:00.26 httpd
26516 mysql 5 -10 554m 138m 4088 S 3.6 4.6 0:06.77 mysqld
26617 mysql 5 -10 554m 138m 4088 S 3.6 4.6 0:01.71 mysqld
26457 mysql 5 -10 554m 138m 4088 S 3.0 4.6 0:09.21 mysqld
26575 apache 15 0 30228 14m 3676 S 3.0 0.5 0:01.01 httpd
26585 mysql 5 -10 554m 138m 4088 S 3.0 4.6 0:03.16 mysqld
26607 apache 15 0 26132 12m 3564 S 3.0 0.4 0:00.21 httpd
26437 apache 15 0 25868 12m 3860 S 2.7 0.4 0:01.69 httpd
26565 mysql 5 -10 554m 138m 4088 S 2.7 4.6 0:05.60 mysqld
26615 mysql 6 -10 554m 138m 4088 S 2.7 4.6 0:02.58 mysqld
26048 apache 15 0 26968 13m 3648 S 2.3 0.4 0:01.66 httpd
26584 apache 16 0 26476 12m 3564 R 2.0 0.4 0:00.64 httpd
26566 mysql 5 -10 554m 138m 4088 S 1.3 4.6 0:04.13 mysqld
24756 apache 15 0 29840 14m 4092 S 1.0 0.5 0:07.99 httpd
25351 apache 16 0 26460 12m 3624 S 1.0 0.4 0:04.30 httpd
26083 apache 15 0 26132 12m 3576 S 1.0 0.4 0:01.21 httpd
26111 apache 15 0 26776 13m 3624 S 1.0 0.4 0:01.88 httpd
26181 apache 15 0 26132 12m 3860 S 1.0 0.4 0:01.91 httpd
26330 apache 15 0 26404 12m 3628 S 1.0 0.4 0:02.13 httpd
26412 apache 15 0 26388 12m 3612 S 1.0 0.4 0:00.59 httpd
26456 apache 15 0 26144 12m 3608 S 1.0 0.4 0:01.56 httpd
26538 apache 15 0 26136 12m 3812 S 1.0 0.4 0:00.91 httpd
26586 apache 15 0 26212 12m 3616 S 1.0 0.4 0:00.87 httpd
26620 mysql 5 -10 554m 138m 4088 S 1.0 4.6 0:01.17 mysqld
26632 apache 15 0 26004 12m 3512 S 1.0 0.4 0:00.03 httpd
24917 apache 15 0 26440 12m 3616 S 0.7 0.4 0:06.24 httpd
26018 apache 15 0 26416 12m 3624 S 0.7 0.4 0:02.15 httpd
26031 apache 15 0 26152 12m 3584 S 0.7 0.4 0:02.63 httpd
26131 apache 15 0 26132 12m 3616 S 0.7 0.4 0:00.63 httpd
26190 apache 15 0 26132 12m 3640 S 0.7 0.4 0:02.28 httpd
26316 apache 15 0 26160 12m 4252 S 0.7 0.4 0:01.72 httpd
26384 apache 15 0 26144 12m 3628 S 0.7 0.4 0:01.45 httpd
26392 apache 15 0 26024 11m 3348 S 0.7 0.4 0:00.03 httpd
26445 apache 16 0 26132 12m 3604 S 0.7 0.4 0:01.42 httpd
26451 apache 15 0 26696 12m 3628 S 0.7 0.4 0:01.66 httpd
26532 apache 15 0 26148 12m 3572 S 0.7 0.4 0:00.83 httpd
26540 apache 15 0 26684 12m 3616 S 0.7 0.4 0:00.73 httpd
26601 apache 16 0 26144 12m 3556 S 0.7 0.4 0:00.47 httpd
26610 apache 15 0 26168 12m 3548 S 0.7 0.4 0:00.32 httpd

Porfavor ayudenme si se fijan tiene 2 dias que lo reinicie y la memoria esta muerta casi.
  #17 (permalink)  
Antiguo 25/08/2009, 15:29
Avatar de Adsl5mb  
Fecha de Ingreso: junio-2007
Mensajes: 1.589
Antigüedad: 16 años, 10 meses
Puntos: 34
Respuesta: Problema servidor dedicado

El load en ese último top que mostraste está correcto, y para la memoria utiliza el comando free -m y pega el resultado, ya que normalmente Linux guarda en cache parte de la memoria para poder procesar más rápido.

SWAP está utilizando un poco y eso es un problema, según el top el problema es Apache, MySQL parece que está andando bien, pideles que te optimicen el archivo httpd.conf del servidor.

Y también podrías instalar algún script como MySQLTuner o Tuning-primer para optimizar aún más el my.cnf
__________________
Foro: Yelsoft
Blog: Milutilidades
  #18 (permalink)  
Antiguo 25/08/2009, 15:41
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

Mira aqu esta el comando free -m:

total used free shared buffers cached
Mem: 3012 2898 114 0 267 1849
-/+ buffers/cache: 782 2230
Swap: 2000 17 1982


si tengo mysqltuner

./mysqltuner.pl:

Código PHP:
-------- General Statistics --------------------------------------------------
[--] 
Skipped version check for MySQLTuner script
[OKCurrently running supported MySQL version 5.0.67-community-log
[!!] Switch to 64-bit OS MySQL cannot currently use all of your RAM

-------- Storage Engine Statistics -------------------------------------------
[--] 
Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables82M (Tables436)
[--] 
Data in InnoDB tables96K (Tables6)
[--] 
Data in MEMORY tables1M (Tables2)
[!!] 
Total fragmented tables7

-------- Performance Metrics -------------------------------------------------
[--] 
Up for: 1d 17h 52m 18s (18M q [122.740 qps], 2M connTX2BRX3B)
[--] 
Reads Writes77% / 23%
[--] 
Total buffers538.0M global + 11.2M per thread (100 max threads)
[
OKMaximum possible memory usage1.6G (55of installed RAM)
[
OKSlow queries0% (2/18M)
[
OKHighest usage of available connections47% (47/100)
[
OKKey buffer size total MyISAM indexes256.0M/23.8M
[OKKey buffer hit rate99.9% (201M cached 143K reads)
[
OKQuery cache efficiency68.2% (7M cached 11M selects)
[
OKQuery cache prunes per day0
[OKSorts requiring temporary tables3% (12K temp sorts 362K sorts)
[
OKTemporary tables created on disk9% (233K on disk 2M total)
[
OKThread cache hit rate99% (18K created 2M connections)
[!!] 
Table cache hit rate7% (400 open 5K opened)
[
OKOpen file limit used12% (731/5K)
[
OKTable locks acquired immediately98% (8M immediate 8M locks)
[
OKInnoDB data size buffer pool96.0K/8.0M

-------- Recommendations -----------------------------------------------------
General recommendations:
    
Run OPTIMIZE TABLE to defragment tables for better performance
    Enable the slow query log to troubleshoot bad queries
    Increase table_cache gradually to avoid file descriptor limits
Variables to adjust
:
    
table_cache (> 2900


Y bueno, el httpd.conf realmente ese si no creo que este personalizado en nada, aqui esta el httpd.conf:

Código PHP:
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:apache.org/docs/2.2> for detailed information.
# In particular, see 
# <URL:apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  

ServerRoot "/etc/httpd"
Listen 80

#LoadModule dummy_module /usr/lib/apache/mod_dummy.so
#LoadModule php5_module        /usr/lib/apache/libphp5.so
Include    /etc/httpd/conf/extra/httpd-phpmodules.conf

User apache
Group apache

ServerAdmin admin
@localhost
DocumentRoot 
"/var/www/html"

<Directory /home/*>
    AllowOverride All
    Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
</LimitExcept>
</Directory>

<Directory />
    Options All
    AllowOverride None
</Directory>

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
   <IfModule mod_suphp.c>
        suPHP_Engine On
        suPHP_UserGroup webapps webapps
    SetEnv PHP_INI_SCAN_DIR
   </IfModule>
</Directory>

<IfModule dir_module>
    DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi
</IfModule>

<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

ErrorLog /var/log/httpd/error_log
LogLevel warn

<IfModule log_config_module>
    #replace %b with %O for more accurate logging
    <IfModule mod_logio.c>
      LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
      LogFormat "%h %l %u %t \"%r\" %>s %O" common
      LogFormat "%O" bytes

      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    CustomLog /var/log/httpd/access_log common
</IfModule>

<IfModule alias_module>
    # Include some DirectAdmin alias
    Include conf/extra/httpd-alias.conf
</IfModule>

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-gzip .tgz
    AddEncoding x-compress .Z
    AddEncoding x-gzip .gz .tgz
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddHandler cgi-script .cgi .pl
    AddHandler type-map var
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    AddType video/x-ms-asf .avi
    AddType video/mpeg .mpg
    AddType video/mpeg .mpeg
    AddType video/quicktime .mov
    AddType video/x-ms-wmv .wmv
</IfModule>

<IfModule rewrite_module>
#    AllowOverride All
    Options Indexes FollowSymLinks
#    AllowOverride FileInfo Options
#    Order allow,deny
#    Allow from all
</IfModule>    
    

#EnableMMAP off
#EnableSendfile off

#######################################################################################
# Do not change anything in included files, because they are rewritten by DirectAdmin #
#######################################################################################

# This is needed for PHP
Include conf/extra/httpd-php-handlers.conf

# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf

# Multi-language error messages
Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
Include conf/extra/httpd-autoindex.conf

# Language settings
Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
Include conf/extra/httpd-info.conf

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
Include conf/extra/httpd-dav.conf

# Various default settings
Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf

# Deflate module settings
Include conf/extra/httpd-deflate.conf

# All the DirectAdmin vhosts
Include conf/extra/directadmin-vhosts.conf

# All suPHP directives
Include conf/extra/httpd-suphp.conf

# For user configurations not maintained by DirectAdmin. Empty by default.
Include conf/extra/httpd-includes.conf

#######################################################################################
# End of included files that are rewritten by DirectAdmin                             #
#######################################################################################

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule> 
espero me puedan ayudar porq realmente es la primera vez que tengo un servidor dedicado, y tengo como 1 mes con el, anteriormente utilizaba hosting compartido. Gracias de antemano
  #19 (permalink)  
Antiguo 25/08/2009, 15:58
Avatar de Adsl5mb  
Fecha de Ingreso: junio-2007
Mensajes: 1.589
Antigüedad: 16 años, 10 meses
Puntos: 34
Respuesta: Problema servidor dedicado

En el MySQL optimiza la siguiente variable:
table_cache
A un valor mayor de 2900 por ejemplo 3500.

Y ese httpd.conf es incorrecto sólo tiene los includes, pega el contenido de este:
conf/extra/httpd-mpm.conf

Aunque no se bien como será en DirectAdmin ya que arriba da una advertencia:
# Do not change anything in included files, because they are rewritten by DirectAdmin #
__________________
Foro: Yelsoft
Blog: Milutilidades
  #20 (permalink)  
Antiguo 25/08/2009, 16:47
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

Pues mira pregunte a los de soporte que donde estaba el httpd.conf correcto, me contestaron:

In apache2 httpd.conf was split to different files, please check Include section in your config.
Like, # All the DirectAdmin vhosts
Include conf/extra/directadmin-vhosts.conf

entonces fui a

conf/extra/directadmin-vhosts.conf

y me aparece lo siguiente un httpd.conf para cada dominio o usuario, no es posible configurar 1 para todo el server?




Cita:
Iniciado por Adsl5mb Ver Mensaje
En el MySQL optimiza la siguiente variable:
table_cache
A un valor mayor de 2900 por ejemplo 3500.

Y ese httpd.conf es incorrecto sólo tiene los includes, pega el contenido de este:
conf/extra/httpd-mpm.conf

Aunque no se bien como será en DirectAdmin ya que arriba da una advertencia:
# Do not change anything in included files, because they are rewritten by DirectAdmin #
  #21 (permalink)  
Antiguo 25/08/2009, 17:13
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

MIra aqui esta el httpd.conf:

#
# This configuration file reflects default settings for Apache HTTP Server.
#
# You may change these, but chances are that you may not need to.
#

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

#
# 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 1

#
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client. When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of: Full | OS | Minor | Minimal | Major | Prod
# where Full conveys the most information, and Prod the least.
#
ServerTokens Major

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of: On | Off | EMail
#
ServerSignature On

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>



al aparecer todo el httpd.conf esta dividido en varios archivos que son:

/etc/httpd/conf/extra/httpd-php-handlers.conf
/etc/httpd/conf/extra/httpd-mpm.conf
/etc/httpd/conf/extra/httpd-multilang-errordoc.conf
/etc/httpd/conf/extra/httpd-autoindex.conf
/etc/httpd/conf/extra/httpd-languages.conf
/etc/httpd/conf/extra/httpd-userdir.conf
/etc/httpd/conf/extra/httpd-info.conf
/etc/httpd/conf/extra/httpd-vhosts.conf
/etc/httpd/conf/extra/httpd-manual.conf
/etc/httpd/conf/extra/httpd-dav.conf
/etc/httpd/conf/extra/httpd-default.conf
/etc/httpd/conf/extra/httpd-ssl.conf
/etc/httpd/conf/extra/httpd-deflate.conf
/etc/httpd/conf/extra/directadmin-vhosts.conf
/etc/httpd/conf/extra/httpd-suphp.conf
/etc/httpd/conf/extra/httpd-includes.conf

cuales seria necesario configurar

Última edición por viciovirtual; 25/08/2009 a las 17:24
  #22 (permalink)  
Antiguo 25/08/2009, 17:40
 
Fecha de Ingreso: abril-2009
Mensajes: 371
Antigüedad: 15 años
Puntos: 22
Respuesta: Problema servidor dedicado

ahi no pone la info de los procesos/threads minimos y maximos que es lo mas importante, y saber si usas worker o prefork...

aunque el timeout lo puedes bajar un poco y puedes subir el keepalivetimeout.. a 2 o 3 segundos
  #23 (permalink)  
Antiguo 25/08/2009, 17:52
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

mira aqui esta lo que es mas importante, porfavor ayudame:

# Server-Pool Management (MPM specific)
#

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
# Note that this is the default PidFile for most MPMs.
#
<IfModule !mpm_netware_module>
PidFile "/var/run/httpd.pid"
</IfModule>

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_module>
LockFile /var/logs/accept.lock
</IfModule>
</IfModule>

#
# Only one of the below sections will be relevant on your
# installed httpd. Use "apachectl -l" to find out the
# active mpm.
#

# 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 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 450
MaxClients 450
MaxRequestsPerChild 10000
</IfModule>

# 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 mpm_worker_module>
StartServers 2
ServerLimit 450
MaxClients 450
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 10000
</IfModule>

# BeOS MPM
# StartThreads: how many threads do we initially spawn?
# MaxClients: max number of threads we can have (1 thread == 1 client)
# MaxRequestsPerThread: maximum number of requests each thread will process
<IfModule mpm_beos_module>
StartThreads 10
MaxClients 50
MaxRequestsPerThread 10000
</IfModule>

# NetWare MPM
# ThreadStackSize: Stack size allocated for each worker thread
# StartThreads: Number of worker threads launched at server startup
# MinSpareThreads: Minimum number of idle threads, to handle request spikes
# MaxSpareThreads: Maximum number of idle threads
# MaxThreads: Maximum number of worker threads alive at the same time
# MaxRequestsPerChild: Maximum number of requests a thread serves. It is
# recommended that the default value of 0 be set for this
# directive on NetWare. This will allow the thread to
# continue to service requests indefinitely.
<IfModule mpm_netware_module>
ThreadStackSize 65536
StartThreads 250
MinSpareThreads 25
MaxSpareThreads 250
MaxThreads 1000
MaxRequestsPerChild 10000
MaxMemFree 100
</IfModule>

# OS/2 MPM
# StartServers: Number of server processes to maintain
# MinSpareThreads: Minimum number of idle threads per process,
# to handle request spikes
# MaxSpareThreads: Maximum number of idle threads per process
# MaxRequestsPerChild: Maximum number of connections per server process
<IfModule mpm_mpmt_os2_module>
StartServers 2
MinSpareThreads 5
MaxSpareThreads 10
MaxRequestsPerChild 10000
</IfModule>


Una pregunta, al bajar el timeout,mi pagina es de descargas y descargan de ahi las canciones, no se cortarian las descargas cuando llege el timeout?

Última edición por viciovirtual; 26/08/2009 a las 07:02
  #24 (permalink)  
Antiguo 25/08/2009, 22:08
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

porfavor ayuda, q el server esta muy sobrecargado
  #25 (permalink)  
Antiguo 26/08/2009, 11:12
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

alguien que me pueda ayudar porfavorr
  #26 (permalink)  
Antiguo 26/08/2009, 19:47
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

En este momento la carga esta en 72 porfavor alguien ayudeme, devido a que es, a mysql o apache y como puedo evitar esto?

Tasks: 420 total, 38 running, 381 sleeping, 0 stopped, 1 zombie
Cpu(s): 85.0%us, 13.8%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.2%hi, 1.0%si, 0.0%st
Mem: 3085240k total, 2972836k used, 112404k free, 361560k buffers
Swap: 2048276k total, 17776k used, 2030500k free, 1590984k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30437 mysql 6 -10 563m 168m 4088 R 16.4 5.6 0:00.56 mysqld
27682 apache 16 0 26472 13m 4260 R 16.1 0.4 0:04.22 httpd
28173 apache 16 0 25884 12m 3844 S 6.0 0.4 0:02.60 httpd
27713 apache 16 0 25884 12m 3856 S 5.0 0.4 0:03.21 httpd
27259 apache 15 0 29952 14m 3880 S 4.4 0.5 0:03.66 httpd
28118 apache 15 0 25884 12m 3844 S 4.4 0.4 0:01.67 httpd
28615 apache 16 0 25960 12m 3788 S 4.4 0.4 0:02.56 httpd
28614 apache 15 0 27228 13m 3796 S 4.1 0.5 0:01.31 httpd
28754 apache 15 0 25744 12m 3816 S 4.1 0.4 0:02.16 httpd
28769 apache 15 0 25884 12m 3860 S 4.1 0.4 0:02.01 httpd
28676 apache 15 0 26036 12m 3796 S 3.8 0.4 0:02.15 httpd
28193 apache 15 0 26044 12m 3844 S 3.5 0.4 0:03.19 httpd
28208 apache 15 0 31896 18m 4268 S 3.5 0.6 0:02.56 httpd
26936 apache 15 0 26496 13m 4200 S 3.2 0.4 0:03.93 httpd
27730 apache 15 0 26428 13m 3860 S 3.2 0.4 0:02.79 httpd
29898 apache 15 0 25884 12m 3796 S 3.2 0.4 0:00.47 httpd
30382 apache 15 0 25724 12m 3544 S 3.2 0.4 0:00.22 httpd
28590 apache 15 0 26396 12m 3584 R 2.8 0.4 0:03.32 httpd
28755 apache 15 0 25948 12m 3832 S 2.8 0.4 0:01.81 httpd
28767 apache 16 0 30736 15m 3840 R 2.8 0.5 0:01.81 httpd
26341 apache 15 0 26516 13m 3868 S 2.5 0.4 0:04.22 httpd
28206 apache 15 0 25732 12m 3820 S 2.5 0.4 0:02.93 httpd
29571 apache 15 0 25884 12m 3556 S 2.5 0.4 0:00.45 httpd
26579 apache 15 0 27196 13m 3816 S 2.2 0.4 0:04.58 httpd
26596 apache 15 0 26028 12m 3852 S 2.2 0.4 0:04.34 httpd
27727 apache 15 0 26716 13m 3812 S 2.2 0.4 0:03.05 httpd
28596 apache 16 0 25884 12m 3840 S 2.2 0.4 0:01.78 httpd
30491 mysql 5 -10 563m 168m 4088 S 2.2 5.6 0:00.07 mysqld
26796 apache 15 0 26300 13m 4064 S 1.9 0.4 0:05.77 httpd
27176 apache 15 0 25884 12m 3852 S 1.9 0.4 0:03.87 httpd
28191 apache 15 0 28248 13m 4308 S 1.9 0.4 0:02.26 httpd
29555 apache 15 0 27228 13m 3760 S 1.9 0.4 0:00.58 httpd
27261 apache 15 0 26000 12m 3860 S 1.6 0.4 0:02.79 httpd
28669 apache 15 0 26140 12m 3844 S 1.6 0.4 0:01.60 httpd
28764 apache 15 0 25948 12m 3828 S 1.6 0.4 0:02.06 httpd
26324 apache 15 0 28220 13m 4300 S 1.3 0.4 0:07.58 httpd
26467 apache 15 0 28832 13m 3920 S 1.3 0.4 0:03.23 httpd
27258 apache 15 0 25884 12m 3844 S 1.3 0.4 0:05.16 httpd
28197 apache 15 0 30144 15m 4292 S 1.3 0.5 0:03.16 httpd

pare el httpd y espere 1 minutos, despues hize un TOP, y me resulto esto:

top - 18:16:29 up 3 days, 23:11, 1 user, load average: 12.22, 28.54, 25.59
Tasks: 139 total, 1 running, 138 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.2%us, 0.2%sy, 0.0%ni, 98.6%id, 0.9%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 3085240k total, 2256764k used, 828476k free, 368964k buffers
Swap: 2048276k total, 17776k used, 2030500k free, 1584404k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
727 root 15 0 2196 1040 796 R 0.3 0.0 0:00.01 top
8891 root 15 0 0 0 0 S 0.3 0.0 0:05.50 pdflush
18235 admin 15 0 10160 1696 1136 S 0.3 0.1 0:03.38 sshd
1 root 15 0 2064 556 524 S 0.0 0.0 0:02.01 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.08 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0.0 0.0 0:00.05 migration/1
6 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/1
7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
8 root 10 -5 0 0 0 S 0.0 0.0 0:07.57 events/0
9 root 10 -5 0 0 0 S 0.0 0.0 0:01.23 events/1
10 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
11 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
15 root 10 -5 0 0 0 S 0.0 0.0 0:00.31 kblockd/0
16 root 10 -5 0 0 0 S 0.0 0.0 0:00.20 kblockd/1
17 root 14 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
125 root 14 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0
126 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/1
129 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
131 root 19 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
199 root 10 -5 0 0 0 S 0.0 0.0 1:31.32 kswapd0
200 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
201 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 aio/1
368 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused
399 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 ata/0
400 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 ata/1
401 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 ata_aux
405 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
406 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
407 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_2
408 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_3
412 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_4
413 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_5
423 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 kstriped
436 root 10 -5 0 0 0 S 0.0 0.0 1:19.86 kjournald
463 root 11 -5 0 0 0 S 0.0 0.0 0:00.27 kauditd
497 root 21 -4 2248 376 372 S 0.0 0.0 0:00.17 udevd
532 nobody 15 0 8904 588 192 S 0.0 0.0 0:00.00 directadmin

Última edición por viciovirtual; 26/08/2009 a las 19:59
  #27 (permalink)  
Antiguo 29/08/2009, 16:19
Avatar de Adsl5mb  
Fecha de Ingreso: junio-2007
Mensajes: 1.589
Antigüedad: 16 años, 10 meses
Puntos: 34
Respuesta: Problema servidor dedicado

Sin duda el problema es la aplicación o programación intenta optimizarla ya que con 5000 visitas es muy complicado tirar un servidor de ese tipo.
__________________
Foro: Yelsoft
Blog: Milutilidades
  #28 (permalink)  
Antiguo 30/08/2009, 19:42
Avatar de Kaiser  
Fecha de Ingreso: febrero-2001
Ubicación: Heredia, Costa Rica
Mensajes: 239
Antigüedad: 23 años, 2 meses
Puntos: 1
Respuesta: Problema servidor dedicado

Mira, a simple vista tienes varios problemas. El primero es que no puedes ir por ahi preguntando y siguiendo los consejos de todos, pues en esto de la optimización de servidores, todos pensamos diferentes. Deberias contratar un profesional y que te de resultados.

Por otro lado, lo primero que yo haria es sacar el MySQL del localhost. Preferiria pagar un dedicado $69.95, o un VPS mas barato, con tal de tener el MySQL en otro servidor, y que el performance no se vea muy afectado. Además implementa cache.
__________________
http://www.abdicar.com - Undisputed Hosting Leader!
  #29 (permalink)  
Antiguo 01/09/2009, 09:41
Avatar de netandino  
Fecha de Ingreso: mayo-2009
Ubicación: Perú
Mensajes: 238
Antigüedad: 15 años
Puntos: 3
Respuesta: Problema servidor dedicado

Pues bein, no peinses en que tu micro corra y corra, piensa en que sea robusto puede irte mejor un AMD Opteron en este caso bien, cuantos TB al mes consumes de trafico? no creo que superes los 10 tb al mes o a lo mucho 15 pues te saldria un promedio de $299 a $399 al mes ese server.

saludos
__________________
Net Andino| Creando Nuevas Soluciones en Informática y Sistemas
Hosting, Streaming Shoutcast y Icecast en HE-AAC, TV Video, Dominios y más
  #30 (permalink)  
Antiguo 01/09/2009, 17:01
 
Fecha de Ingreso: junio-2008
Mensajes: 104
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Problema servidor dedicado

Hola mira, ya me instalaron el server, yo al mes consumo 3tb mas o menos pero ha ido aumentando esta cantidad, ahorita un no cambio la pagina, el serve viene con 4tb de ancho de banda p por $39 USD mas al mes seria unmetered con una linea de 100mbps compartida
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:46.