Linux: The server hang while running diagcollection.sh script due to gdb bug (Doc ID 1592512.1) 风险无处不在:运行diagcollection.sh导致 os hang住_linuxTo Bottom 风险无处不在:运行diagcollection.sh导致 os hang住_gdb_02

风险无处不在:运行diagcollection.sh导致 os hang住_gdb_03

In this Document

Symptoms
  Cause
  Solution
  References


APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Generic Linux

SYMPTOMS

While running diagcollection.sh scripit the server hangs due to lack of memory as gdb command consumes significant amount of memory: 

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 
4228 root 20 0 732g 724g 684 R 102.9 35.9 1278:32 /usr/bin/gdb --nx --batch --comm=gdb_info_cmd --e=/u01/app/11.2.0.4/grid/bin/crsd.bin -c

 

CAUSE

The GDB version is below 7.0.1.

rpm -qa | grep gdb
gdb-6.8.50.20090302-1.5.18

Reference bug 16547513 - GDB PROCESS INVOKED BY DIAGCOLLECTION.SH EATS ALL MEMORY ON SYSTEM

 

SOLUTION

Upgrade GDB version to gdb-7.0.1-45.0.1.el5 or onward

REFERENCES


BUG:16396219 - EXADATA: NODE REBOOTED AS A RESULT OF RUNNING DIAGCOLLECTION