OMC cloud agent 安装之后经常停止
发表于:2024-11-14 作者:千家信息网编辑
千家信息网最后更新 2024年11月14日,使用客户的测试账号做一个OMC cloud agent的测试,agent 也安装好了,日志也自动收集上来了。第二天发现agent 停止服务了,于是就给启动了一下,状态也正常,下午发现又停了。看来是有问
千家信息网最后更新 2024年11月14日OMC cloud agent 安装之后经常停止使用客户的测试账号做一个OMC cloud agent的测试,agent 也安装好了,日志也自动收集上来了。
第二天发现agent 停止服务了,于是就给启动了一下,状态也正常,下午发现又停了。
看来是有问题了:
在路径 /home/oracle/omcagent/cloudagent/agent_inst/sysman/log/ 下面查看log文件
[oracle@orcl1 log]$ tail -n 50 gcagent.log
at oracle.sysman.gcagent.target.rowsource.Rowsource._fetch(Rowsource.java:210)
at oracle.sysman.gcagent.target.rowsource.ProjectionRowSource._fetch_internal(ProjectionRowSource.java:253)
at oracle.sysman.gcagent.target.rowsource.Rowsource._fetch(Rowsource.java:210)
at oracle.sysman.gcagent.target.rowsource.FilterRowSource._fetch_internal(FilterRowSource.java:97)
at oracle.sysman.gcagent.target.rowsource.Rowsource._fetch(Rowsource.java:210)
at oracle.sysman.gcagent.target.rowsource.ColumnRemap._fetch_internal(ColumnRemap.java:67)
at oracle.sysman.gcagent.target.rowsource.Rowsource._fetch(Rowsource.java:210)
at oracle.sysman.gcagent.target.rowsource.Rowsource.fetch(Rowsource.java:222)
at oracle.sysman.gcagent.target.interaction.execution.ExecuteTask.executeRSTree(ExecuteTask.java:2916)
at oracle.sysman.gcagent.target.interaction.execution.ExecuteTask.executeExecutionDescriptor(ExecuteTask.java:2047)
at oracle.sysman.gcagent.target.interaction.execution.ExecuteTask.runTask(ExecuteTask.java:3225)
at oracle.sysman.gcagent.target.interaction.execution.ExecuteTask.call(ExecuteTask.java:4541)
at oracle.sysman.gcagent.metadata.impl.collection.MetricColl$1.call(MetricColl.java:551)
at oracle.sysman.gcagent.metadata.impl.collection.MetricColl$1.call(MetricColl.java:512)
at oracle.sysman.gcagent.task.TaskFutureImpl$WrappedTask.accountedCall(TaskFutureImpl.java:612)
at oracle.sysman.gcagent.task.TaskFutureImpl$WrappedTask.call(TaskFutureImpl.java:656)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
2017-12-20 09:46:08,491 [1:main (@ 2017-12-20 09:38:32 CST)] ERROR - agent main threw an error
java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:57)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)
at sun.nio.cs.StreamEncoder.(StreamEncoder.java:195)
at sun.nio.cs.StreamEncoder.(StreamEncoder.java:175)
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:68)
at java.io.OutputStreamWriter.(OutputStreamWriter.java:133)
at oracle.sysman.gcagent.common.FileUtils.createWriter(FileUtils.java:1388)
at oracle.sysman.gcagent.common.FileUtils.setContents(FileUtils.java:221)
at oracle.sysman.gcagent.common.FileUtils.setContents(FileUtils.java:137)
at oracle.sysman.gcagent.common.FileUtils.setContents(FileUtils.java:114)
at oracle.sysman.gcagent.common.FileUtils.overwriteContents(FileUtils.java:93)
at oracle.sysman.gcagent.tmmain.AgentStatus.writeStatusMessage(AgentStatus.java:132)
at oracle.sysman.gcagent.tmmain.TMMain.writeCurrentStatus(TMMain.java:844)
at oracle.sysman.gcagent.tmmain.TMMain.waitForSignal(TMMain.java:878)
at oracle.sysman.gcagent.tmmain.TMMain.agentMain(TMMain.java:792)
at oracle.sysman.gcagent.tmmain.TMMain.main(TMMain.java:739)
2017-12-20 09:46:32,125 [36:GC.SysExecutor.0 (Lama:orcl1.jxut.edu.cn:3872:Response) (Lama:orcl1.jxut.edu.cn:3872:Response:Response)] ERROR - Lama:orcl1.jxut.edu.cn:3872:Response:Response
java.lang.OutOfMemoryError: Java heap space
2017-12-20 09:46:32,125 [123:B8A53FBA:GC.SysExecutor.3 (Lama:orcl1.jxut.edu.cn:3872:HT_Memory)] INFO - Handling OOME (FloodControlCounter [count=1, duration=300000, maxInDuration=0, timestamp=1513734391345], 6291195)
2017-12-20 09:46:47,852 [123:B8A53FBA] INFO - agent status is being changed to EXITING
2017-12-20 09:46:48,532 [123:B8A53FBA] INFO - Agent exiting with exit code 57
2017-12-20 09:47:02,328 [114:6EA1EA8F:GC.Executor.5 (omc_oracle_db:jxut01_12c:15SecCollection) (omc_oracle_db:jxut01_12c:15SecCollection:RDB_MonSvcActiveSessionSample)] INFO - Cancelled task omc_oracle_db:jxut01_12c:15SecCollection:RDB_MonSvcActiveSessionSample due to [oracle.sysman.gcagent.task.TaskTimeoutException: task timeout: 30000 MILLISECONDS for omc_oracle_db:jxut01_12c:15SecCollection]
2017-12-20 09:47:06,706 [23:5BB01D54:Thread-7] INFO - *jetty*: Stopped regularConnector@36895c35{SSL-HTTP/1.1}{0.0.0.0:3872}
2017-12-20 09:47:07,486 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.h.ContextHandler@5c974df9{/,null,UNAVAILABLE}
2017-12-20 09:47:07,487 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.h.ContextHandler@3ea75851{/emd/persistence/main,null,UNAVAILABLE}
2017-12-20 09:47:11,258 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.ServletContextHandler@418db5fe{/emd/daemon,null,UNAVAILABLE}
2017-12-20 09:47:12,032 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.ServletContextHandler@333b8e45{/emd/gateway,null,UNAVAILABLE}
2017-12-20 09:47:12,032 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.ServletContextHandler@491b58d6{/emd/browser,null,UNAVAILABLE}
2017-12-20 09:47:12,033 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.ServletContextHandler@401a5c05{/emd/receiver,null,UNAVAILABLE}
2017-12-20 09:47:12,805 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.h.ContextHandler@2de48d50{/emd/main,null,UNAVAILABLE}
2017-12-20 09:47:12,805 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.h.ContextHandler@407a8d92{/emd/lifecycle/main,null,UNAVAILABLE}
初步看是java虚拟机的内存不够,到metalink上看看,也查到了同样的问题:
OMC: Oracle Management Cloud Agent Crashes after Upgrade to Version 1.21.0 (文档 ID 2322444.1)
[oracle@orcl1 config]$ cp emd.properties emd.properties.bak
[oracle@orcl1 config]$ vi emd.properties
[oracle@orcl1 config]$ pwd
/home/oracle/omcagent/cloudagent/agent_inst/sysman/config
[oracle@orcl1 config]$ cat emd.properties| grep Xmx
agentJavaDefines=-Xmx1024M -XX:MaxPermSize=512M
修改之后重新启动:
[oracle@orcl1 bin]$ ./omcli start agent
Oracle Management Cloud Agent
Copyright (c) 1996, 2017 Oracle Corporation. All rights reserved.
Starting agent ............. started.
[oracle@orcl1 bin]$ ./omcli status agent
Oracle Management Cloud Agent
Copyright (c) 1996, 2017 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Version : 1.24.0
State Home : /home/oracle/omcagent/cloudagent/agent_inst
Log Directory : /home/oracle/omcagent/cloudagent/agent_inst/sysman/log
Binaries Location : /home/oracle/omcagent/cloudagent/LAMA_LINUX.X64_171117.1500/core/1.24.0
Process ID : 88144
Parent Process ID : 87986
URL : https://orcl1.jxut.edu.cn:3872/emd/main/
Started at : 2017-12-20 21:14:31
Started by user : oracle
Operating System : Linux version 2.6.39-400.245.1.el5uek (amd64)
Data Collector enabled : false
Sender Status : FUNCTIONAL
Gateway Upload Status : FUNCTIONAL
Last successful upload : 2017-12-20 21:15:15
Last attempted upload : 2017-12-20 21:15:11
Pending Files (MB) : 0.02
Pending Files : 49
Backoff Expiration : (none)
---------------------------------------------------------------
Agent is Running and Ready
[oracle@orcl1 bin]$
目前看状态正常,明天再看看,如果还在运行问题就解决了!!!
第二天发现agent 停止服务了,于是就给启动了一下,状态也正常,下午发现又停了。
看来是有问题了:
在路径 /home/oracle/omcagent/cloudagent/agent_inst/sysman/log/ 下面查看log文件
[oracle@orcl1 log]$ tail -n 50 gcagent.log
at oracle.sysman.gcagent.target.rowsource.Rowsource._fetch(Rowsource.java:210)
at oracle.sysman.gcagent.target.rowsource.ProjectionRowSource._fetch_internal(ProjectionRowSource.java:253)
at oracle.sysman.gcagent.target.rowsource.Rowsource._fetch(Rowsource.java:210)
at oracle.sysman.gcagent.target.rowsource.FilterRowSource._fetch_internal(FilterRowSource.java:97)
at oracle.sysman.gcagent.target.rowsource.Rowsource._fetch(Rowsource.java:210)
at oracle.sysman.gcagent.target.rowsource.ColumnRemap._fetch_internal(ColumnRemap.java:67)
at oracle.sysman.gcagent.target.rowsource.Rowsource._fetch(Rowsource.java:210)
at oracle.sysman.gcagent.target.rowsource.Rowsource.fetch(Rowsource.java:222)
at oracle.sysman.gcagent.target.interaction.execution.ExecuteTask.executeRSTree(ExecuteTask.java:2916)
at oracle.sysman.gcagent.target.interaction.execution.ExecuteTask.executeExecutionDescriptor(ExecuteTask.java:2047)
at oracle.sysman.gcagent.target.interaction.execution.ExecuteTask.runTask(ExecuteTask.java:3225)
at oracle.sysman.gcagent.target.interaction.execution.ExecuteTask.call(ExecuteTask.java:4541)
at oracle.sysman.gcagent.metadata.impl.collection.MetricColl$1.call(MetricColl.java:551)
at oracle.sysman.gcagent.metadata.impl.collection.MetricColl$1.call(MetricColl.java:512)
at oracle.sysman.gcagent.task.TaskFutureImpl$WrappedTask.accountedCall(TaskFutureImpl.java:612)
at oracle.sysman.gcagent.task.TaskFutureImpl$WrappedTask.call(TaskFutureImpl.java:656)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
2017-12-20 09:46:08,491 [1:main (@ 2017-12-20 09:38:32 CST)] ERROR - agent main threw an error
java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.
at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)
at sun.nio.cs.StreamEncoder.
at sun.nio.cs.StreamEncoder.
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:68)
at java.io.OutputStreamWriter.
at oracle.sysman.gcagent.common.FileUtils.createWriter(FileUtils.java:1388)
at oracle.sysman.gcagent.common.FileUtils.setContents(FileUtils.java:221)
at oracle.sysman.gcagent.common.FileUtils.setContents(FileUtils.java:137)
at oracle.sysman.gcagent.common.FileUtils.setContents(FileUtils.java:114)
at oracle.sysman.gcagent.common.FileUtils.overwriteContents(FileUtils.java:93)
at oracle.sysman.gcagent.tmmain.AgentStatus.writeStatusMessage(AgentStatus.java:132)
at oracle.sysman.gcagent.tmmain.TMMain.writeCurrentStatus(TMMain.java:844)
at oracle.sysman.gcagent.tmmain.TMMain.waitForSignal(TMMain.java:878)
at oracle.sysman.gcagent.tmmain.TMMain.agentMain(TMMain.java:792)
at oracle.sysman.gcagent.tmmain.TMMain.main(TMMain.java:739)
2017-12-20 09:46:32,125 [36:GC.SysExecutor.0 (Lama:orcl1.jxut.edu.cn:3872:Response) (Lama:orcl1.jxut.edu.cn:3872:Response:Response)] ERROR - Lama:orcl1.jxut.edu.cn:3872:Response:Response
java.lang.OutOfMemoryError: Java heap space
2017-12-20 09:46:32,125 [123:B8A53FBA:GC.SysExecutor.3 (Lama:orcl1.jxut.edu.cn:3872:HT_Memory)] INFO - Handling OOME (FloodControlCounter [count=1, duration=300000, maxInDuration=0, timestamp=1513734391345], 6291195)
2017-12-20 09:46:47,852 [123:B8A53FBA] INFO - agent status is being changed to EXITING
2017-12-20 09:46:48,532 [123:B8A53FBA] INFO - Agent exiting with exit code 57
2017-12-20 09:47:02,328 [114:6EA1EA8F:GC.Executor.5 (omc_oracle_db:jxut01_12c:15SecCollection) (omc_oracle_db:jxut01_12c:15SecCollection:RDB_MonSvcActiveSessionSample)] INFO - Cancelled task omc_oracle_db:jxut01_12c:15SecCollection:RDB_MonSvcActiveSessionSample due to [oracle.sysman.gcagent.task.TaskTimeoutException: task timeout: 30000 MILLISECONDS for omc_oracle_db:jxut01_12c:15SecCollection]
2017-12-20 09:47:06,706 [23:5BB01D54:Thread-7] INFO - *jetty*: Stopped regularConnector@36895c35{SSL-HTTP/1.1}{0.0.0.0:3872}
2017-12-20 09:47:07,486 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.h.ContextHandler@5c974df9{/,null,UNAVAILABLE}
2017-12-20 09:47:07,487 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.h.ContextHandler@3ea75851{/emd/persistence/main,null,UNAVAILABLE}
2017-12-20 09:47:11,258 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.ServletContextHandler@418db5fe{/emd/daemon,null,UNAVAILABLE}
2017-12-20 09:47:12,032 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.ServletContextHandler@333b8e45{/emd/gateway,null,UNAVAILABLE}
2017-12-20 09:47:12,032 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.ServletContextHandler@491b58d6{/emd/browser,null,UNAVAILABLE}
2017-12-20 09:47:12,033 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.ServletContextHandler@401a5c05{/emd/receiver,null,UNAVAILABLE}
2017-12-20 09:47:12,805 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.h.ContextHandler@2de48d50{/emd/main,null,UNAVAILABLE}
2017-12-20 09:47:12,805 [23:5BB01D54] INFO - *jetty*: Stopped o.e.j.s.h.ContextHandler@407a8d92{/emd/lifecycle/main,null,UNAVAILABLE}
初步看是java虚拟机的内存不够,到metalink上看看,也查到了同样的问题:
OMC: Oracle Management Cloud Agent Crashes after Upgrade to Version 1.21.0 (文档 ID 2322444.1)
[oracle@orcl1 config]$ cp emd.properties emd.properties.bak
[oracle@orcl1 config]$ vi emd.properties
[oracle@orcl1 config]$ pwd
/home/oracle/omcagent/cloudagent/agent_inst/sysman/config
[oracle@orcl1 config]$ cat emd.properties| grep Xmx
agentJavaDefines=-Xmx1024M -XX:MaxPermSize=512M
修改之后重新启动:
[oracle@orcl1 bin]$ ./omcli start agent
Oracle Management Cloud Agent
Copyright (c) 1996, 2017 Oracle Corporation. All rights reserved.
Starting agent ............. started.
[oracle@orcl1 bin]$ ./omcli status agent
Oracle Management Cloud Agent
Copyright (c) 1996, 2017 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Version : 1.24.0
State Home : /home/oracle/omcagent/cloudagent/agent_inst
Log Directory : /home/oracle/omcagent/cloudagent/agent_inst/sysman/log
Binaries Location : /home/oracle/omcagent/cloudagent/LAMA_LINUX.X64_171117.1500/core/1.24.0
Process ID : 88144
Parent Process ID : 87986
URL : https://orcl1.jxut.edu.cn:3872/emd/main/
Started at : 2017-12-20 21:14:31
Started by user : oracle
Operating System : Linux version 2.6.39-400.245.1.el5uek (amd64)
Data Collector enabled : false
Sender Status : FUNCTIONAL
Gateway Upload Status : FUNCTIONAL
Last successful upload : 2017-12-20 21:15:15
Last attempted upload : 2017-12-20 21:15:11
Pending Files (MB) : 0.02
Pending Files : 49
Backoff Expiration : (none)
---------------------------------------------------------------
Agent is Running and Ready
[oracle@orcl1 bin]$
目前看状态正常,明天再看看,如果还在运行问题就解决了!!!
问题
状态
测试
不够
内存
客户
文件
文档
日志
账号
路径
二天
装好
服务
运行
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
导出数据库语句
网络安全管理领导小
武汉梵宝网络技术
为了我们网络安全应怎样做
哪些函数不是数据库对象
应用软件和网络技术
gps网络技术维护怎么做
数据库中判断质数
创建数据库有
服务器电源 5v
工程图数据库标准
数据库正在使用的表可以重命名吗
南网网络安全规定考试
计算机网络技术专业课程报名
软件开发基本方法的区别
怎么用香港的服务器
ai赋能网络安全教程
网络技术侦查破案的作用
监控网络安全区域
lol服务器排队视频
儿童网络安全讲座
碧蓝航线服务器经常断开连接
什么是网络技术与网站建设
网络技术俗称
计算机网络技术专业课程报名
江西管理软件开发
西瓜数据库技术
网络安全学专业有什么内容
将数据保存到数据库分为几个步骤
服务器关闭自动安装程序