"srvctl status" command slow due to many logs in <GI_HOME>/log/<node>/client (Doc ID 1921806.1)

Last updated on SEPTEMBER 03, 2014

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.7 to 11.2.0.4 [Release 11.1 to 11.2]
Information in this document applies to any platform.

Symptoms

Slow response for "srvctl status service" command on some nodes in the cluster:

 

SRVM_TRACE shows a gap:

$ srvctl status service -d <dbname>

[main] [11:28:40:10] [LocalCommand.execute:54]  LocalCommand.execute: Calling run method
[main] [11:28:40:10] [HAOperationImpl.runCommand:1212]  CRS cmd is: /oracle/grid/11.2.0.4/bin/crs_stat ora.rac8.rac801.rac81.srv ora.rac8.rac801.rac84.srv ora.rac8.rac801.rac83.srv ora.rac8.rac801.rac82.srv -c rachost1
[main] [11:28:40:10] [RuntimeExec.runCommand:75]  Calling Runtime.exec() with the command
[main] [11:28:40:10] [RuntimeExec.runCommand:77]  /oracle/grid/11.2.0.4/bin/crs_stat
[main] [11:28:40:10] [RuntimeExec.runCommand:77]  ora.rac8.rac801.rac81.srv
[main] [11:28:40:10] [RuntimeExec.runCommand:77]  ora.rac8.rac801.rac84.srv
[main] [11:28:40:11] [RuntimeExec.runCommand:77]  ora.rac8.rac801.rac83.srv
[main] [11:28:40:11] [RuntimeExec.runCommand:77]  ora.rac8.rac801.rac82.srv
[main] [11:28:40:11] [RuntimeExec.runCommand:77]  -c
[main] [11:28:40:11] [RuntimeExec.runCommand:77]  rachost1
[main] [11:28:40:142] [RuntimeExec.runCommand:142]  runCommand: Waiting for the process
[Thread-3] [11:28:40:145] [StreamReader.run:61]  In StreamReader.run
[Thread-2] [11:28:40:146] [StreamReader.run:61]  In StreamReader.run
[Thread-2] [12:15:4:108] [StreamReader.run:65]  OUTPUT>NAME=ora.rac8.rac801.rac81.srv  <<<<<<<<< long time
[Thread-2] [12:15:4:108] [StreamReader.run:65]  OUTPUT>TYPE=application
[Thread-2] [12:15:4:108] [StreamReader.run:65]  OUTPUT>TARGET=ONLINE
[Thread-2] [12:15:4:109] [StreamReader.run:65]  OUTPUT>STATE=ONLINE on rachost1
[Thread-2] [12:15:4:109] [StreamReader.run:65]  OUTPUT>

 

truss output shows it's looping through below similar lines

truss -aefod /tmp/truss.srvctl srvctl status service -d <dbname>

60885:    7646.4826    stat("/oracle/grid/11.2.0.4/log/rachost1/client/clsc_41203.log", 0xFFFFFFFF7FFF9CF0) = 0
60885:    7646.4863    getcwd("<PWD>", 1024)    = 0
60885:    7646.4871    chdir("/oracle/grid/11.2.0.4/log/rachost1/client") = 0
60885:    7646.4885    getcwd("/oracle/grid/11.2.0.4/log/rachost1/client", 1024) = 0
60885:    7646.4908    chdir("<PWD>")        = 0
60885:    7646.4915    stat("/oracle/grid/11.2.0.4/log/rachost1/client/clsc_41204.log", 0xFFFFFFFF7FFF9CF0) = 0


 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms