Foros del Web » Administración de Sistemas » Unix / Linux »

[SOLUCIONADO] Out of memory

Estas en el tema de Out of memory en el foro de Unix / Linux en Foros del Web. Hola, CPU Intel Xeon E312xx (Sandy Bridge) (4 core(s)) Versión Plesk v12.5.30 os_CentOS 6 SO CentOS 6.7 (Final) Memoria 8GB Alguien puede ayudarme? revisando el ...
  #1 (permalink)  
Antiguo 29/04/2016, 08:17
 
Fecha de Ingreso: septiembre-2013
Mensajes: 32
Antigüedad: 10 años, 7 meses
Puntos: 0
Pregunta Out of memory

Hola,


CPU Intel Xeon E312xx (Sandy Bridge) (4 core(s))
Versión Plesk v12.5.30 os_CentOS 6
SO CentOS 6.7 (Final)
Memoria 8GB


Alguien puede ayudarme? revisando el fichero de log /var/log/httpd/error_log

Tengo una mayoría de mensajes de este tipo:

Código PHP:
Fri Apr 29 13:18:05 2016 (4053): Fatal Error Unable to allocate shared memory segment of 67108864 bytesshmgetCannot allocate memory (12)
Fri Apr 29 13:18:05 2016 (4054): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Fri Apr 29 13:17:44 2016] [error] (12)Cannot allocate memoryforkUnable to fork new process
[critMemory allocation failedaborting process.
[
Fri Apr 29 13:18:04 2016] [noticechild pid 4044 exit signal Aborted (6)

[
Fri Apr 29 13:15:53 2016] [warn] (12)Cannot allocate memorymod_fcgidspawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
[Fri Apr 29 13:15:53 2016] [error] (12)Cannot allocate memorymod_fcgidcan't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Fri Apr 29 13:15:53 2016] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
[Fri Apr 29 13:15:53 2016] [error] (12)Cannot allocate memory: mod_fcgid: can'
t run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Fri Apr 29 13:15:53 2016] [warn] (12)Cannot allocate memorymod_fcgidspawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
[Fri Apr 29 13:17:46 2016] [error] (12)Cannot allocate memorymod_fcgidcant run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Fri Apr 29 13:17:46 2016] [warn] (12)Cannot allocate memorymod_fcgidspawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error 
Podría ser que tengo que aumentar algún parámetro de fcgid.conf?

Código PHP:
  FcgidMaxRequestsPerProcess 500
  FcgidMaxProcesses 1000
  FcgidMinProcessesPerClass 0
  FcgidMaxProcessesPerClass 100
  FcgidIdleScanInterval 30
  FcgidZombieScanInterval 3
  FcgidErrorScanInterval 3
  FcgidBusyScanInterval 120
  FcgidInitialEnv RAILS_ENV production
  FcgidProcessLifeTime 3600
  FcgidConnectTimeout  100
  FcgidIdleTimeout 300
  FcgidIOTimeout 600
  FcgidBusyTimeout 3600
  FcgidMaxRequestLen 100000000 

He buscado información por google pero no encuentro solución al problema y lo que encuentro no hace efecto. que provoca estos mensajes? gracias

Última edición por sulator; 29/04/2016 a las 08:28
  #2 (permalink)  
Antiguo 29/04/2016, 14:02
Avatar de barna_rasta  
Fecha de Ingreso: agosto-2003
Mensajes: 214
Antigüedad: 20 años, 8 meses
Puntos: 11
Respuesta: Out of memory

Buenas noches sulator,


comentas tener
Cita:
Memoria 8GB
quizas este dañada y no la reconozca?
muestranos la salida de :

# free -k
  #3 (permalink)  
Antiguo 29/04/2016, 14:34
 
Fecha de Ingreso: septiembre-2013
Mensajes: 32
Antigüedad: 10 años, 7 meses
Puntos: 0
Respuesta: Out of memory

Cita:
Iniciado por barna_rasta Ver Mensaje
Buenas noches sulator,


comentas tener

quizas este dañada y no la reconozca?
muestranos la salida de :

# free -k
Pues no lo se, porque el servidor es un vps esta alojado en ovh, eso es lo que quiero averiguar.

Código PHP:

             total       used       free     shared    buffers     cached
Mem
:       7864744    3222508    4642236     598832     124468    1978712
-/+ buffers/cache:    1119328    6745416
Swap
:            0          0          0 
  #4 (permalink)  
Antiguo 02/05/2016, 04:17
Avatar de senseeye3led  
Fecha de Ingreso: abril-2016
Ubicación: 127.0.0.1
Mensajes: 163
Antigüedad: 8 años
Puntos: 11
Respuesta: Out of memory

¿Tienes posibilidad de escribir al soporte técnico de OVH?

Supongo que con los datos que tienes podrán facilitarte alguna ayuda.

Según he podido leer en internet, debe ser un mensaje bastante común en servidores virtualizados.

Te dejo una discursión sobre lo que comentas:
https://github.com/zendtech/ZendOptimizerPlus/issues/134

Sería de interés saber si al final has podido solucionar el problema.
  #5 (permalink)  
Antiguo 02/05/2016, 09:53
 
Fecha de Ingreso: septiembre-2013
Mensajes: 32
Antigüedad: 10 años, 7 meses
Puntos: 0
Respuesta: Out of memory

Cita:
Iniciado por senseeye3led Ver Mensaje
¿Tienes posibilidad de escribir al soporte técnico de OVH?

Supongo que con los datos que tienes podrán facilitarte alguna ayuda.

Según he podido leer en internet, debe ser un mensaje bastante común en servidores virtualizados.

Te dejo una discursión sobre lo que comentas:
https://github.com/zendtech/ZendOptimizerPlus/issues/134

Sería de interés saber si al final has podido solucionar el problema.
Hola, si me he puesto en contacto con ellos, y me dicen esto:

Código PHP:
Estimado cliente,

Los errores que está recibiendo derivan de un uso excesivo de CPU y RAMlo cual provoca que los procesos no puedan ejecutarse correctamenteno se trata de un error de infraestructura.

Estamos a su disposición para cualquier aclaración adicional y le agradecemos la confianza depositada en nosotros.  

Reciba un cordial saludo
Que poca verguenza, es evidente que es problema de ellos.

y sigo con los problemas:

Código PHP:

[Mon May 02 17:21:52 2016] [error] (12)Cannot allocate memoryforkUnable to fork new process
[Mon May 02 17:21:52 2016] [error] (12)Cannot allocate memorymod_fcgidcan't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Mon May 02 17:21:52 2016] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
[Mon May 02 17:21:52 2016] [error] (12)Cannot allocate memory: mod_fcgid: can'
t run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Mon May 02 17:21:52 2016] [warn] (12)Cannot allocate memorymod_fcgidspawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
[Mon May 02 17:21:52 2016] [error] (12)Cannot allocate memorymod_fcgidcan't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Mon May 02 17:21:52 2016] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
[Mon May 02 17:21:52 2016] [error] (12)Cannot allocate memory: mod_fcgid: can'
t run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Mon May 02 17:21:52 2016] [warn] (12)Cannot allocate memorymod_fcgidspawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
[Mon May 02 17:21:52 2016] [error] (12)Cannot allocate memorymod_fcgidcan't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Mon May 02 17:21:52 2016] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
[Mon May 02 17:21:52 2016] [error] (12)Cannot allocate memory: mod_fcgid: can'
t run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Mon May 02 17:21:52 2016] [warn] (12)Cannot allocate memorymod_fcgidspawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
Mon May  2 17
:21:53 2016 (10003): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Out of memory
Mon May  2 17
:21:53 2016 (10006): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:21:53 2016 (10009): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:21:54 2016 (10013): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:21:54 2016 (10015): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:21:55 2016 (10021): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:21:56 2016 (10024): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:21:57 2016 (10028): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:21:59 2016 (10030): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
[
Mon May 02 17:22:02 2016] [noticechild pid 9953 exit signal Segmentation fault (11)
Mon May  2 17:22:02 2016 (10034): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
[
Mon May 02 17:22:03 2016] [error] (12)Cannot allocate memoryforkUnable to fork new process
[critMemory allocation failedaborting process.
Mon May  2 17:22:06 2016 (10038): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:22:08 2016 (10040): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
[
Mon May 02 17:22:09 2016] [error] (12)Cannot allocate memorymod_fcgidcant run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
[Mon May 02 17:22:09 2016] [warn] (12)Cannot allocate memorymod_fcgidspawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
Mon May  2 17
:22:10 2016 (10062): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
[
Mon May 02 17:22:13 2016] [error] (12)Cannot allocate memoryforkUnable to fork new process
[critMemory allocation failedaborting process.
Mon May  2 17:22:17 2016 (10091): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:22:17 2016 (10094): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:22:22 2016 (10106): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:22:22 2016 (10107): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
[
Mon May 02 17:22:23 2016] [error] (12)Cannot allocate memoryforkUnable to fork new process
[critMemory allocation failedaborting process.
Mon May  2 17:22:24 2016 (10117): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:22:31 2016 (10130): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
[
Mon May 02 17:22:33 2016] [noticechild pid 10037 exit signal Aborted (6)
[
Mon May 02 17:22:33 2016] [noticechild pid 10077 exit signal Aborted (6)
[
Mon May 02 17:22:33 2016] [noticechild pid 10109 exit signal Aborted (6)
Mon May  2 17:22:36 2016 (10138): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
Mon May  2 17:22:37 2016 (10140): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
[
Mon May 02 17:23:03 2016] [error] (12)Cannot allocate memoryforkUnable to fork new process
[Mon May 02 17:23:14 2016] [error] (12)Cannot allocate memoryforkUnable to fork new process
[Mon May 02 17:23:24 2016] [error] (12)Cannot allocate memoryforkUnable to fork new process
[Mon May 02 17:23:35 2016] [error] (12)Cannot allocate memoryforkUnable to fork new process
[Mon May 02 17:23:45 2016] [error] (12)Cannot allocate memoryforkUnable to fork new process
Mon May  2 17
:23:53 2016 (10208): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12)
[
Mon May 02 17:23:55 2016] [errormod_fcgidprocess /var/www/cgi-bin/cgi_wrapper/cgi_wrapper(8805) exit(communication error), get unexpected signal 11
Mon May  2 17
:23:55 2016 (10222): Fatal Error Unable to allocate shared memory segment of 67108864 bytesmmapCannot allocate memory (12
En cuanto a la página que me has cedido, ya he revisado tampoco esta ahí la solución, no se que hacer más estoy desesperado.

donde puede estar el fallo?????????
  #6 (permalink)  
Antiguo 02/05/2016, 13:38
Avatar de franciscomarin  
Fecha de Ingreso: junio-2009
Ubicación: Terrassa, BCN, CAT
Mensajes: 2.414
Antigüedad: 14 años, 10 meses
Puntos: 327
Respuesta: Out of memory

Yo no sé porque dices que el problema es claramente de tu proveedor y que se están lavando las manos. ¿Tan seguro estás que en algunos picos tu servidor no esté a full? ¿Tienes algún servicio de monitorización como Munin que pueda confirmar este punto?
  #7 (permalink)  
Antiguo 03/05/2016, 01:06
 
Fecha de Ingreso: septiembre-2013
Mensajes: 32
Antigüedad: 10 años, 7 meses
Puntos: 0
Respuesta: Out of memory

Cita:
Iniciado por franciscomarin Ver Mensaje
Yo no sé porque dices que el problema es claramente de tu proveedor y que se están lavando las manos. ¿Tan seguro estás que en algunos picos tu servidor no esté a full? ¿Tienes algún servicio de monitorización como Munin que pueda confirmar este punto?
Hola,

Así es, aveces pasan de todo, Me ha pasado en más de una ocasión... se lo que digo. Puede que en este caso me este equivocando y hable de más.

Solo tengo el htop, poco que hacer de instalar este modulo que me indicas Munin estando en Out of memory seguire intentando hasta que lo consiga gracias
  #8 (permalink)  
Antiguo 04/05/2016, 01:44
 
Fecha de Ingreso: septiembre-2013
Mensajes: 32
Antigüedad: 10 años, 7 meses
Puntos: 0
De acuerdo Respuesta: SOLUCIÓN

Buenas...

Por lo visto plesk en la actualización, corrompió el modulo php 5.6 de ahí el problema de quedarse el vps sin memoria, menos mal que apache solto el siguiente error:


Código PHP:
PHP Warning:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/tidy.so' libtidy-0.99.so.0failed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/xmlreader.so' - /opt/plesk/php/5.6/lib64/php/modules/xmlreader.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/xmlrpc.so' - /opt/plesk/php/5.6/lib64/php/modules/xmlrpc.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/xmlwriter.so' - /opt/plesk/php/5.6/lib64/php/modules/xmlwriter.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/xsl.so' - /opt/plesk/php/5.6/lib64/php/modules/xsl.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/zip.so' - /opt/plesk/php/5.6/lib64/php/modules/zip.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/sysvshm.so' - /opt/plesk/php/5.6/lib64/php/modules/sysvshm.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/tidy.so' - /opt/plesk/php/5.6/lib64/php/modules/tidy.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/xmlreader.so' - /opt/plesk/php/5.6/lib64/php/modules/xmlreader.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/xmlrpc.so' - /opt/plesk/php/5.6/lib64/php/modules/xmlrpc.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/xmlwriter.so' - /opt/plesk/php/5.6/lib64/php/modules/xmlwriter.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/xsl.so' - /opt/plesk/php/5.6/lib64/php/modules/xsl.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
PHP Warning
:  PHP StartupUnable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/zip.so' - /opt/plesk/php/5.6/lib64/php/modules/zip.sofailed to map segment from shared objectCannot allocate memory in Unknown on line 0
Out of memory 
Solución: actualizar versión PHP 7.0.5 y problema solucionado
  #9 (permalink)  
Antiguo 04/05/2016, 02:52
Avatar de franciscomarin  
Fecha de Ingreso: junio-2009
Ubicación: Terrassa, BCN, CAT
Mensajes: 2.414
Antigüedad: 14 años, 10 meses
Puntos: 327
Respuesta: Out of memory

Por lo tanto tu proveedor no tiene la culpa y le has acusado de que era un problema suyo.

Esto es algo que ocurre muy a menudo y muy pocas veces la culpa la tiene el proveedor, casi siempre es por culpa del usuario.

Etiquetas: centos, log, memory
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 23:32.