Foros del Web » Administración de Sistemas » Software para Servers »

Tengo un problema con mi servidor, ¿alguien me echa un cable?

Estas en el tema de Tengo un problema con mi servidor, ¿alguien me echa un cable? en el foro de Software para Servers en Foros del Web. Hola! me presento, me llamo Jorge y soy el admin del portal HTCMania.com. Tengo un problema... algo le sucede a mi servidor que no funciona ...
  #1 (permalink)  
Antiguo 05/10/2009, 08:30
 
Fecha de Ingreso: noviembre-2003
Ubicación: Madrid
Mensajes: 43
Antigüedad: 20 años, 6 meses
Puntos: 0
Tengo un problema con mi servidor, ¿alguien me echa un cable?

Hola!

me presento, me llamo Jorge y soy el admin del portal HTCMania.com.

Tengo un problema... algo le sucede a mi servidor que no funciona como debería. La web es muy grande, con miles de usuarios simultaneos, pero aún así el servidor debería comportarse mucho mejor.

Estas son sus características

* 2 x Opteron 2352
* 2 x 4 x 2,1 GHz
* 16 GB RAM
* 3 x 750 GB de disco duro

Vamos, un buen pepino

El asunto es que ni así funciona correctamente... y de hecho, no mejora lo que tenía hace un mes (uno mucho menos potente con sólo 4 GB de RAM). El servidor aloja varios foros, pero muy pequeños y de pocos usuarios simultanos, a excepción de HTCMania.

¿El síntoma? lentitud casi todo el día... o al menos no va tan fino como debería... y de noche casi es innavegable... y ya os digo, algo raro debe de haber porque va igual de 'mal' que con el antiguo server...

He intentado hacer de todo: optimizar my.cnf y php.ini, instalar un anti ataques DOS, un firewall, un caché (xcache) y nada, la cosa no mejora...

A ver si algún alma caritativa me echa un cable y me comenta qué se me puede estar escapando...

Os copio algunos datos del server

TOP
top - 10:18:41 up 21 days, 1:26, 2 users, load average: 2.42, 2.78, 2.74
Tasks: 396 total, 3 running, 393 sleeping, 0 stopped, 0 zombie
Cpu(s): 23.2%us, 3.7%sy, 0.0%ni, 72.6%id, 0.1%wa, 0.0%hi, 0.3%si, 0.0%st

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
29599 mysql 15 -5 1029m 504m 5668 S 41 3.1 196:24.57 mysqld
16677 apache 20 0 747m 48m 23m S 26 0.3 0:06.34 httpd
16776 apache 20 0 746m 43m 17m S 26 0.3 0:06.20 httpd
18069 apache 20 0 750m 41m 11m S 13 0.3 0:00.71 httpd
17880 apache 20 0 747m 43m 17m S 10 0.3 0:04.28 httpd
16696 apache 20 0 747m 50m 24m S 8 0.3 0:09.03 httpd
18172 apache 20 0 747m 41m 14m S 8 0.3 0:01.08 httpd
17031 apache 20 0 751m 42m 13m S 7 0.3 0:03.43 httpd
18054 apache 20 0 738m 28m 10m S 7 0.2 0:00.42 httpd
18068 apache 20 0 739m 28m 10m S 7 0.2 0:01.33 httpd
18177 apache 20 0 748m 38m 10m S 6 0.2 0:00.84 httpd
18091 apache 20 0 750m 47m 17m S 6 0.3 0:02.58 httpd
17161 apache 20 0 747m 41m 16m S 4 0.3 0:04.07 httpd
16862 apache 20 0 750m 48m 20m S 3 0.3 0:03.70 httpd
18096 apache 20 0 738m 31m 15m S 3 0.2 0:01.24 httpd
18185 apache 20 0 735m 21m 6708 S 3 0.1 0:00.19 httpd
16678 apache 20 0 739m 35m 16m S 2 0.2 0:03.31 httpd
16668 apache 20 0 749m 52m 23m S 2 0.3 0:06.13 httpd
16694 apache 20 0 749m 49m 20m S 2 0.3 0:06.34 httpd
18057 apache 20 0 736m 27m 11m S 2 0.2 0:00.74 httpd
18078 apache 20 0 747m 40m 12m S 2 0.2 0:01.00 httpd
17117 apache 20 0 746m 47m 21m S 2 0.3 0:05.41 httpd
18046 apache 20 0 739m 32m 12m S 2 0.2 0:00.55 httpd
18047 apache 20 0 733m 21m 8528 S 2 0.1 0:00.44 httpd
18053 apache 20 0 738m 30m 13m S 2 0.2 0:00.51 httpd
18138 apache 20 0 748m 41m 12m S 2 0.3 0:01.21 httpd
17039 apache 20 0 751m 47m 18m S 1 0.3 0:03.30 httpd
17407 apache 20 0 745m 42m 18m S 1 0.3 0:02.67 httpd
17972 apache 20 0 749m 41m 13m S 1 0.3 0:01.83 httpd
17986 apache 20 0 749m 42m 13m S 1 0.3 0:03.47 httpd
18159 apache 20 0 749m 36m 8372 S 1 0.2 0:00.54 httpd
7359 root 20 0 6728 932 416 S 1 0.0 5:45.99 dhclient
18242 apache 20 0 748m 35m 7964 S 1 0.2 0:00.54 httpd
11175 root 20 0 13004 1592 932 S 1 0.0 5:43.00 top
12980 apache 20 0 751m 55m 26m S 1 0.3 0:12.57 httpd
13010 apache 20 0 751m 56m 27m S 1 0.4 0:07.47 httpd
17002 apache 20 0 748m 44m 18m S 1 0.3 0:03.77 httpd
18170 apache 20 0 737m 27m 11m S 1 0.2 0:00.58 httpd
12876 apache 20 0 750m 52m 24m R 0 0.3 0:12.07 httpd
12965 apache 20 0 748m 45m 19m S 0 0.3 0:07.01 httpd




# free -m
total used free shared buffers cached
Mem: 16084 14193 1890 0 16 8994
-/+ buffers/cache: 5182 10901
Swap: 1907 121 1786





# more /etc/my.cnf
[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
skip-bdb
safe-show-database
old_passwords
back_log = 50
max_connections = 800
key_buffer_size = 512M
myisam_sort_buffer_size = 128M
join_buffer_size = 2M
read_buffer_size = 2M
sort_buffer_size = 4M
table_cache = 10000
thread_cache_size = 768
wait_timeout = 20
connect_timeout = 10
tmp_table_size = 128M
max_heap_table_size = 128M
max_allowed_packet = 128M
net_buffer_length = 16384
max_connect_errors = 100000
thread_concurrency = 16
concurrent_insert = 2
table_lock_wait_timeout = 30
read_rnd_buffer_size = 2M
bulk_insert_buffer_size = 64M
query_cache_limit = 7M
query_cache_size = 64M
query_cache_type = 1
query_prealloc_size = 262144
query_alloc_block_size = 65536
transaction_alloc_block_size = 8192
transaction_prealloc_size = 4096
default-storage-engine = MyISAM
max_write_lock_count = 8
long_query_time = 5
log-slow-queries = /root/slow.log

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
nice = -5
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 64M

[myisamchk]
key_buffer = 512M
sort_buffer = 16M
read_buffer = 16M
write_buffer = 16M
  #2 (permalink)  
Antiguo 05/10/2009, 08:44
 
Fecha de Ingreso: noviembre-2003
Ubicación: Madrid
Mensajes: 43
Antigüedad: 20 años, 6 meses
Puntos: 0
Respuesta: Tengo un problema con mi servidor, ¿alguien me echa un cable?

por cierto, el nº de impactos de este foro es de unos 70 millones de impactos/mes... unos 100k impactos por hora...
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 11:14.