oraagent.bin High Memory Usage as Dependent Listener was Removed/Renamed
Grid Infrastructure oraagent.bin process using huge amount of memory and forking huge number of threads.
- <GI_HOME>/log/<node>/agent/crsd/oraagent_grid/oraagent_grid.log
2014-02-12 08:08:10.132: [ USRTHRD][417280]{0:13:2} checkCrsStat 2 clscrs_res_get_op_status CLSCRS_STAT status 210 err_msg CRS-0210: Could not find resource 'ora.LISTENER.lsnr'. ====>> resource missing
2014-02-12 08:08:10.132: [ USRTHRD][417280]{0:13:2} CrsCmd::ClscrsCmdData::stat entity 1 statflag 33 useFilter 0
2014-02-12 08:08:10.476: [ USRTHRD][417280]{0:13:2} checkCrsStat 2 CLSCRS_STAT ret: 200
2014-02-12 08:08:10.476: [ USRTHRD][417280]{0:13:2} checkCrsStat 2 clscrs_res_get_op_status CLSCRS_STAT status 210 err_msg CRS-0210: Could not find resource 'ora.LISTENER.lsnr'.
2014-02-12 08:08:10.476: [ USRTHRD][417280]{0:13:2} AsmCommonAgent::setLocalListener cls::Exception CRS-0210: Could not find resource 'ora.LISTENER.lsnr'.
2014-02-12 08:08:10.476: [ USRTHRD][417280]{0:13:2} ASM Dedicated Thread }
- "<GI_HOME>/bin/crsctl stat res -t" shows no 'ora.LISTENER.lsnr' resource
- "<GI_HOME>/bin/crsctl stat res ora.asm -p" shows ora.asm depends on 'ora.LISTENER.lsnr' resource
....
START_DEPENDENCIES=hard(ora.cssd) weak(ora.LISTENER.lsnr)
CAUSE
Dependent resource ' ora.LISTENER.lsnr' was removed.
The issue is being investigated in bug 18261183 and bug 18427298
SOLUTION
The workaround is to add the missing "ora.LISTENER.lsnr" listener or set correct "listener" resource for ora.asm as grid user:
In the case of "ora.LISTENER.lsnr" is gone, add the listener back:
In the case of "ora.LISTENER.lsnr" was renamed to something else, i.e. "ora.ASM_LISTENER.lsnr"
The issue is fixed in 11.2.0.4 GI PSU5
####isssue
cradmin@sdbdb01:/home/cradmin]# ps -ef|grep 12320912
grid 4259970 12320912 120 0:00 <defunct>
grid 4784202 12320912 28 0:00 <defunct>
grid 4915348 12320912 120 0:00 <defunct>
grid 6947042 12320912 85 0:00 <defunct>
grid 7012576 12320912 29 0:00 <defunct>
grid 7143450 12320912 86 0:00 <defunct>
grid 7209134 12320912 120 0:00 <defunct>
grid 7274710 12320912 31 0:00 <defunct>
grid 7405822 12320912 29 0:00 <defunct>
grid 7536764 12320912 97 0:00 <defunct>
grid 7864386 12320912 64 0:00 <defunct>
grid 8126494 12320912 16 0:00 <defunct>
grid 12320912 1 0 Aug 21 - 98:55 /db/db/oracleapp/11.2.0/grid/bin/oraagent.bin
[cradmin@sdbdb01:/home/cradmin]# svmon -P 12320912
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
12320912 oraagent.bin 2352886 28396 105 2275346 Y Y N
grid@sdbdb01:/db/db/oracleapp/11.2.0/grid/OPatch]$ svmon -P 3277270
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
3277270 *** process does not exist ***
[grid@sdbdb01:/db/db/oracleapp/11.2.0/grid/OPatch]$ svmon -P 5243274
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
5243274 ocssd.bin 71624 57263 312 68341 Y Y N
->08/27 58.2.105.31
1.ps -ef|grep oraagent.bin
svmon -P 3408330 |more
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
3408330 oraagent.bin 66563 28398 0 55579 Y Y N
2.svmon -P 6357426 |more
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
6357426 oraagent.bin 106979 28391 0 97487 Y Y N
->after one minutes
6357426 oraagent.bin 107741 28391 0 98247 Y Y N
->after one minutes
6357426 oraagent.bin 113797 28391 0 104286 Y Y N
->after one minutes
6357426 oraagent.bin 120610 28391 0 111086 Y Y N
3.svmon -P 7274974 |more
[grid@sdbdb01:/home/grid]$ svmon -P 7274974 |more
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
7274974 *** process does not exist ***
->/db/db/oracleapp/11.2.0/grid/log/sdbdb01/agent/crsd/oraagent_grid/oraagent_grid.log
tail -100 /db/db/oracleapp/11.2.0/grid/log/sdbdb01/agent/crsd/oraagent_grid/oraagent_grid.log
2019-08-27 15:17:57.949: [ USRTHRD][62143]{1:10808:2} AsmCommonAgent::setLocalListener cls::Exception CRS-0210: Could not find resource 'ora.LISTENER.lsnr'.
-> crs_stat
crs_stat |grep LISTENER
NAME=ora.LISTENER_SCAN1.lsnr
->
crsctl stat res ora.asm -p
NAME=ora.asm
TYPE=ora.asm.type
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r--
ACTION_FAILURE_TEMPLATE=
ACTION_SCRIPT=
AGENT_FILENAME=%CRS_HOME%/bin/oraagent%CRS_EXE_SUFFIX%
ALIAS_NAME=ora.%CRS_CSS_NODENAME%.ASM%CRS_CSS_NODENUMBER%.asm
AUTO_START=never
CHECK_INTERVAL=60
CHECK_TIMEOUT=30
DEFAULT_TEMPLATE=PROPERTY(RESOURCE_CLASS=asm) ELEMENT(INSTANCE_NAME= %GEN_USR_ORA_INST_NAME%)
DEGREE=1
DESCRIPTION=Oracle ASM resource
ENABLED=1
GEN_USR_ORA_INST_NAME=
GEN_USR_ORA_INST_NAME@SERVERNAME(sdbdb01)=+ASM1
GEN_USR_ORA_INST_NAME@SERVERNAME(sdbdb02)=+ASM2
LOAD=1
LOGGING_LEVEL=1
NLS_LANG=
NOT_RESTARTING_TEMPLATE=
OFFLINE_CHECK_INTERVAL=0
PROFILE_CHANGE_TEMPLATE=
RESTART_ATTEMPTS=5
SCRIPT_TIMEOUT=60
START_DEPENDENCIES=weak(ora.LISTENER.lsnr)
START_TIMEOUT=900
STATE_CHANGE_TEMPLATE=
STOP_DEPENDENCIES=
STOP_TIMEOUT=600
TYPE_VERSION=1.2
UPTIME_THRESHOLD=1d
USR_ORA_ENV=
USR_ORA_INST_NAME=+ASM%CRS_CSS_NODENUMBER%
USR_ORA_OPEN_MODE=mount
USR_ORA_OPI=false
USR_ORA_STOP_MODE=immediate
VERSION=11.2.0.4.0
cause:
Dependent resource ' ora.LISTENER.lsnr' was removed.
The issue is being investigated in bug 18261183 and bug 18427298
fix:
以下操作大部分操作都是grid用户,除了重启CRS
1.确保1527 端口没被占用
[grid@sdbdb01:/home/grid]$ netstat -an|grep 1527
[grid@sdbdb01:/home/grid]$
In the case of "ora.LISTENER.lsnr" is gone, add the listener back:
$ srvctl add listener -l LISTENER -p 1527
In the case of "ora.LISTENER.lsnr" was renamed to something else, i.e. "ora.db.lsnr"
$ lsnrctl status db
$ srvctl modify asm -l db
The issue is fixed in 11.2.0.4 GI PSU5
2.停下MRP ,
alter database recover managed standby database cancel;
3.重启CRS
/db/db/oracleapp/11.2.0/grid/bin/crsctl stop crs
/db/db/oracleapp/11.2.0/grid/bin/crsctl start crs
4.启动MRP
alter database recover managed standby database using current logfile disconnect from session;
5.观察日志oraagent_grid.log是否还有 CRS-0210 错误,理论上应该没有
tail -100 /db/db/oracleapp/11.2.0/grid/log/sdbdb01/agent/crsd/oraagent_grid/oraagent_grid.log
是否还有 CRS-0210: Could not find resource 'ora.LISTENER.lsnr'.
6.删除默认监听
lsnrctl stop
srvctl remove listener -l LISTENER
ps.
7.
->
[opdb@sdbdb01:/home/opdb]$ svmon -P 7078058 |more
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
7078058 *** process does not exist ***
-〉
[opdb@sdbdb01:/home/opdb]$ svmon -P 4653478 |more
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
4653478 oraagent.bin 56155 28385 0 49585 Y Y N
->after one minutes;
svmon -P 4653478 |more
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
4653478 oraagent.bin 56157 28385 0 49587 Y Y N
->
svmon -P 6160876 |more
oraagent.bin High Memory Usage as Dependent Listener was Removed/Renamed的更多相关文章
- SHELL:Find Memory Usage In Linux (统计每个程序内存使用情况)
转载一个shell统计linux系统中每个程序的内存使用情况,因为内存结构非常复杂,不一定100%精确,此shell可以在Ghub上下载. [root@db231 ~]# ./memstat.sh P ...
- Shell script for logging cpu and memory usage of a Linux process
Shell script for logging cpu and memory usage of a Linux process http://www.unix.com/shell-programmi ...
- 5 commands to check memory usage on Linux
Memory Usage On linux, there are commands for almost everything, because the gui might not be always ...
- Why does the memory usage increase when I redeploy a web application?
That is because your web application has a memory leak. A common issue are "PermGen" memor ...
- Reducing and Profiling GPU Memory Usage in Keras with TensorFlow Backend
keras 自适应分配显存 & 清理不用的变量释放 GPU 显存 Intro Are you running out of GPU memory when using keras or ten ...
- GPU Memory Usage占满而GPU-Util却为0的调试
最近使用github上的一个开源项目训练基于CNN的翻译模型,使用THEANO_FLAGS='floatX=float32,device=gpu2,lib.cnmem=1' python run_nn ...
- 【转】C++ Incorrect Memory Usage and Corrupted Memory(模拟C++程序内存使用崩溃问题)
http://www.bogotobogo.com/cplusplus/CppCrashDebuggingMemoryLeak.php Incorrect Memory Usage and Corru ...
- Memory usage of a Java process java Xms Xmx Xmn
http://www.oracle.com/technetwork/java/javase/memleaks-137499.html 3.1 Meaning of OutOfMemoryError O ...
- Redis: Reducing Memory Usage
High Level Tips for Redis Most of Stream-Framework's users start out with Redis and eventually move ...
随机推荐
- 防止js全局变量污染方法总结-待续
javaScript 可以随意定义保存所有应用资源的全局变量.但全局变量可以削弱程序灵活性,增大了模块之间的耦合性.在多人协作时,如果定义过多的全局变量 有可能造成全局变量冲突,也就是全局变量污染问题 ...
- Homebrew 更新慢问题
cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/hom ...
- PHP项目部署 Linux 服务器
一.运行环境 Centos7 x64 lnmp (Linux , Nginx , Mysql , PHP/Python) 二.安装依赖和修改配置 安装Lnmp环境集成包:https://lnmp.or ...
- [React] Create an Animate Content Placeholder for Loading State in React
We will create animated Content Placeholder as React component just like Facebook has when you load ...
- Go读写文件
Go序列化和反序列化 package main import ( "bufio" "encoding/json" "fmt" "o ...
- CS229开源项目
斯坦福大学CS 229机器学习备忘单: https://github.com/kaobeixingfu/stanford-cs-229-machine-learning CS229机器学习算法的Pyt ...
- MongoDB 查看集合的统计信息
和 RDBMS 一样, MongoDB 同样存储集合的统计信息,通过调用命令 db.collection.stats() 可以方便的查看集合的统计信息. --1 查看集合 things 的统计信息 r ...
- Oracle 重新编译存储过程/函数等
第一种 如果你使用 PL/SQL Developer工具 左侧工具栏中选择“存储过程”->选择已经失效的procedure->右键->选择重新编译 即可完成 第二 ...
- [matlab工具箱] 神经网络Neural Net
//目的是学习在BP神经网络的基础上添加遗传算法,蚁群算法等优化算法来优化网络,这是后话. 先简单了解了MATLAB中的神经网络工具箱,工具箱功能还是非常强大的,已经可以拟合出非常多的曲线来分析了. ...
- vue.js 中使用(...)运算符报错的解决方法
vue.js 中使用(...)运算符报错的解决方法 Syntax Error:Unexpected token(XX:X) }, computed:{ ...mapGetters([ 'pageSiz ...