[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Ayuda con Apache y configuración de MaxClients



Hola a todos.

Tengo un problema con mi servidor, ya con esta es la segunda vez que
apache se cae y con el el server, no permite conexiones entrantes ni
por ssh para administrarlo y poder reiniciar servicios.

El mensaje que muestra es este en log de errores de apache:
[error] server reached MaxClients setting, consider raising the
MaxClients setting

Esta es mi configuración de apache2.conf tengo apache2 con el modulo itk:
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 30

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

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 3

##
## 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
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
    StartServers	40
    MinSpareServer	30
    MaxSpareServer	50
    MaxClients          5000 #Tenia 240 y despues de dicho error se
cambio a 5000
    MaxRequestsPerChild   500 #Tenia 1000 y despues de dicho error se
cambio a 500
</IfModule>

Esto me aparece en el syslog:
Sep 13 12:45:01 koha-bib kernel: [513720.960462] INFO: task
opac-search.pl:13700 blocked for more than 120 seconds.
Sep 13 12:45:01 koha-bib kernel: [513720.960547] "echo 0 >
/proc/sys/kernel/hung_task_timeout_secs" disables this message.
Sep 13 12:45:01 koha-bib kernel: [513720.960627] opac-search.p D
0000000000000000     0 13700      1 0x00000000
Sep 13 12:45:01 koha-bib kernel: [513720.960635]  ffff88021ec77100
0000000000000082 0000000000000000 ffff880163631fd8
Sep 13 12:45:01 koha-bib kernel: [513720.960642]  0000000000015780
0000000300015780 000000000000f9e0 ffff880163631fd8
Sep 13 12:45:01 koha-bib kernel: [513720.960648]  0000000000015780
0000000000015780 ffff88009bd9cdb0 ffff88009bd9d0a8
Sep 13 12:45:01 koha-bib kernel: [513720.960654] Call Trace:
Sep 13 12:45:01 koha-bib kernel: [513720.960674]  [<ffffffff810b420d>]
? sync_page+0x0/0x46
Sep 13 12:45:01 koha-bib kernel: [513720.960682]  [<ffffffff812fb25a>]
? io_schedule+0x73/0xb7
Sep 13 12:45:01 koha-bib kernel: [513720.960687]  [<ffffffff810b424e>]
? sync_page+0x41/0x46
Sep 13 12:45:01 koha-bib kernel: [513720.960692]  [<ffffffff812fb66a>]
? __wait_on_bit_lock+0x3f/0x84
Sep 13 12:45:01 koha-bib kernel: [513720.960697]  [<ffffffff810b41da>]
? __lock_page+0x5d/0x63
Sep 13 12:45:01 koha-bib kernel: [513720.960705]  [<ffffffff81064f48>]
? wake_bit_function+0x0/0x23
Sep 13 12:45:01 koha-bib kernel: [513720.960709]  [<ffffffff810b41e9>]
? lock_page+0x9/0x1f
Sep 13 12:45:01 koha-bib kernel: [513720.960715]  [<ffffffff810b481e>]
? filemap_fault+0xb9/0x2f6
Sep 13 12:45:01 koha-bib kernel: [513720.960722]  [<ffffffff810ca84a>]
? __do_fault+0x54/0x3c3
Sep 13 12:45:01 koha-bib kernel: [513720.960730]  [<ffffffff8105226d>]
? current_fs_time+0x1e/0x24
Sep 13 12:45:01 koha-bib kernel: [513720.960735]  [<ffffffff810ccb73>]
? handle_mm_fault+0x3b8/0x80f
Sep 13 12:45:01 koha-bib kernel: [513720.960741]  [<ffffffff810d01d1>]
? get_unmapped_area+0xd7/0x139
Sep 13 12:45:01 koha-bib kernel: [513720.960748]  [<ffffffff812fe9f6>]
? do_page_fault+0x2e0/0x2fc
Sep 13 12:45:01 koha-bib kernel: [513720.960753]  [<ffffffff812fc895>]
? page_fault+0x25/0x30
Sep 13 12:45:01 koha-bib kernel: [513720.960759] INFO: task
opac-search.pl:13703 blocked for more than 120 seconds.
Sep 13 12:45:01 koha-bib kernel: [513720.960835] "echo 0 >
/proc/sys/kernel/hung_task_timeout_secs" disables this message.
Sep 13 12:45:01 koha-bib kernel: [513720.960914] opac-search.p D
0000000000000002     0 13703      1 0x00000000
Sep 13 12:45:01 koha-bib kernel: [513720.960920]  ffff88021edb3880
0000000000000082 ffff880000000040 ffffea0003d0a868
Sep 13 12:45:01 koha-bib kernel: [513720.960925]  ffffea0003d0a840
0000000300014d00 000000000000f9e0 ffff880147cfbfd8
Sep 13 12:45:01 koha-bib kernel: [513720.960931]  0000000000015780
0000000000015780 ffff8800d1c746a0 ffff8800d1c74998
Sep 13 12:45:01 koha-bib kernel: [513720.960937] Call Trace:
Sep 13 12:45:01 koha-bib kernel: [513720.960945]  [<ffffffff8101657d>]
? read_tsc+0xa/0x20
Sep 13 12:45:01 koha-bib kernel: [513720.960950]  [<ffffffff810b420d>]
? sync_page+0x0/0x46
Sep 13 12:45:01 koha-bib kernel: [513720.960955]  [<ffffffff812fb25a>]
? io_schedule+0x73/0xb7
Sep 13 12:45:01 koha-bib kernel: [513720.960959]  [<ffffffff810b424e>]
? sync_page+0x41/0x46
Sep 13 12:45:01 koha-bib kernel: [513720.960964]  [<ffffffff812fb66a>]
? __wait_on_bit_lock+0x3f/0x84
Sep 13 12:45:01 koha-bib kernel: [513720.960968]  [<ffffffff810b41da>]
? __lock_page+0x5d/0x63
Sep 13 12:45:01 koha-bib kernel: [513720.960973]  [<ffffffff81064f48>]
? wake_bit_function+0x0/0x23
Sep 13 12:45:01 koha-bib kernel: [513720.960977]  [<ffffffff810b41e9>]
? lock_page+0x9/0x1f
Sep 13 12:45:01 koha-bib kernel: [513720.960982]  [<ffffffff810b481e>]
? filemap_fault+0xb9/0x2f6
Sep 13 12:45:01 koha-bib kernel: [513720.960987]  [<ffffffff810ca84a>]
? __do_fault+0x54/0x3c3
Sep 13 12:45:01 koha-bib kernel: [513720.960991]  [<ffffffff8105226d>]
? current_fs_time+0x1e/0x24
Sep 13 12:45:01 koha-bib kernel: [513720.960997]  [<ffffffff810ccb73>]
? handle_mm_fault+0x3b8/0x80f
Sep 13 12:45:01 koha-bib kernel: [513720.961001]  [<ffffffff810d01d1>]
? get_unmapped_area+0xd7/0x139
Sep 13 12:45:01 koha-bib kernel: [513720.961006]  [<ffffffff812fe9f6>]
? do_page_fault+0x2e0/0x2fc
Sep 13 12:45:01 koha-bib kernel: [513720.961011]  [<ffffffff812fc895>]
? page_fault+0x25/0x30
Sep 13 12:45:01 koha-bib kernel: [513720.961110] INFO: task
opac-search.pl:14031 blocked for more than 120 seconds.
Sep 13 12:45:01 koha-bib kernel: [513720.961186] "echo 0 >
/proc/sys/kernel/hung_task_timeout_secs" disables this message.
Sep 13 12:45:14 koha-bib kernel: [513720.961265] opac-search.p D
0000000000000000     0 14031      1 0x00000000
Sep 13 12:45:14 koha-bib kernel: [513720.961270]  ffff88021ec77100
0000000000000082 0000000000000000 ffff88000d4affd8
Sep 13 12:45:14 koha-bib kernel: [513720.961276]  0000000000015780
0000000300015780 000000000000f9e0 ffff88000d4affd8
Sep 13 12:45:14 koha-bib kernel: [513720.961282]  0000000000015780
0000000000015780 ffff88013411d4c0 ffff88013411d7b8
Sep 13 12:45:14 koha-bib kernel: [513720.961288] Call Trace:
Sep 13 12:45:14 koha-bib kernel: [513720.961293]  [<ffffffff810b420d>]
? sync_page+0x0/0x46
Sep 13 12:45:14 koha-bib kernel: [513720.961298]  [<ffffffff812fb25a>]
? io_schedule+0x73/0xb7
Sep 13 12:45:14 koha-bib kernel: [513720.961302]  [<ffffffff810b424e>]
? sync_page+0x41/0x46
Sep 13 12:45:14 koha-bib kernel: [513720.961307]  [<ffffffff812fb66a>]
? __wait_on_bit_lock+0x3f/0x84
Sep 13 12:45:14 koha-bib kernel: [513720.961311]  [<ffffffff810b41da>]
? __lock_page+0x5d/0x63
Sep 13 12:45:14 koha-bib kernel: [513720.961316]  [<ffffffff81064f48>]
? wake_bit_function+0x0/0x23
Sep 13 12:45:14 koha-bib kernel: [513720.961320]  [<ffffffff810b41e9>]
? lock_page+0x9/0x1f
Sep 13 12:45:14 koha-bib kernel: [513720.961325]  [<ffffffff810b481e>]
? filemap_fault+0xb9/0x2f6
Sep 13 12:45:14 koha-bib kernel: [513720.961330]  [<ffffffff810ca84a>]
? __do_fault+0x54/0x3c3
Sep 13 12:45:14 koha-bib kernel: [513720.961339]  [<ffffffff8118e350>]
? cpumask_any_but+0x28/0x34
Sep 13 12:45:14 koha-bib kernel: [513720.961344]  [<ffffffff810ccb73>]
? handle_mm_fault+0x3b8/0x80f
Sep 13 12:45:14 koha-bib kernel: [513720.961349]  [<ffffffff812fe9f6>]
? do_page_fault+0x2e0/0x2fc
Sep 13 12:45:14 koha-bib kernel: [513720.961354]  [<ffffffff812fc895>]
? page_fault+0x25/0x30
Sep 13 12:45:14 koha-bib kernel: [513720.961362] INFO: task
mainpage.pl:14040 blocked for more than 120 seconds.
Sep 13 12:45:14 koha-bib kernel: [513720.961413] "echo 0 >
/proc/sys/kernel/hung_task_timeout_secs" disables this message.
Sep 13 12:45:14 koha-bib kernel: [513720.961492] mainpage.pl   D
0000000000000000     0 14040  14034 0x00000004
Sep 13 12:45:14 koha-bib kernel: [513720.961497]  ffff88021ecd46a0
0000000000000086 0000000000000000 ffffea0002d76200
Sep 13 12:45:14 koha-bib kernel: [513720.961503]  ffffea0002d761d8
0000000300013680 000000000000f9e0 ffff8801297f3fd8
Sep 13 12:45:14 koha-bib kernel: [513720.961509]  0000000000015780
0000000000015780 ffff88013effe9f0 ffff88013effece8
Sep 13 12:45:14 koha-bib kernel: [513720.961515] Call Trace:
Sep 13 12:45:14 koha-bib kernel: [513720.961520]  [<ffffffff810b420d>]
? sync_page+0x0/0x46
Sep 13 12:45:14 koha-bib kernel: [513720.961524]  [<ffffffff812fb25a>]
? io_schedule+0x73/0xb7
Sep 13 12:45:14 koha-bib kernel: [513720.961529]  [<ffffffff810b424e>]
? sync_page+0x41/0x46
Sep 13 12:45:14 koha-bib kernel: [513720.961533]  [<ffffffff812fb66a>]
? __wait_on_bit_lock+0x3f/0x84
Sep 13 12:45:14 koha-bib kernel: [513720.961538]  [<ffffffff810b41da>]
? __lock_page+0x5d/0x63
Sep 13 12:45:14 koha-bib kernel: [513720.961542]  [<ffffffff81064f48>]
? wake_bit_function+0x0/0x23
Sep 13 12:45:14 koha-bib kernel: [513720.961547]  [<ffffffff810b41e9>]
? lock_page+0x9/0x1f
Sep 13 12:45:14 koha-bib kernel: [513720.961551]  [<ffffffff810b481e>]
? filemap_fault+0xb9/0x2f6
Sep 13 12:45:14 koha-bib kernel: [513720.961556]  [<ffffffff810ca84a>]
? __do_fault+0x54/0x3c3
Sep 13 12:45:14 koha-bib kernel: [513720.961561]  [<ffffffff8118e350>]
? cpumask_any_but+0x28/0x34
Sep 13 12:45:14 koha-bib kernel: [513720.961567]  [<ffffffff810ccb73>]
? handle_mm_fault+0x3b8/0x80f
Sep 13 12:45:14 koha-bib kernel: [513720.961572]  [<ffffffff812fe9f6>]
? do_page_fault+0x2e0/0x2fc
Sep 13 12:45:14 koha-bib kernel: [513720.961576]  [<ffffffff812fc895>]
? page_fault+0x25/0x30

El equipo es un ProLiant DL580 G3, procesador Intel(R) Xeon(TM) MP CPU
3.00GHz y cuenta con 8 GB en RAM.
No se si alguno de ustedes me pudiera ayudar en como dejar la
configuración de mi apache2.conf con el numero de MaxClients adecuado.

Cualquier ayuda sera muy agradecida.
Por cierto mi versión es una Debian Squeeze 64 bits.

Saludos.
Jesus Camargo.


Reply to: