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安全错误
数据库的锁怎样保障安全
网上视频软件开发
信息安全银行软件开发
一个软件开发项目的开发成本
闵行区品质金融网络技术服务优势
最新网络安全法全文下载
戴尔620服务器评测
星云数据库安全防护产品
金山安全终端服务器破解
华为云软件开发出来好找工作不
华为高清数据库
数据库还原增量备份
极路由插件不能连接云服务器
图像识别数据库物理概念模型
现在网络安全产品怎么样
公共数据库的主要功能
校园网络安全的报告
西雅图服务器有什么优势
河北数据网络技术服务技术
服务器电源模块维修
检测公司网络安全培训试卷
ps4迁移数据库
网站开发用什么服务器
华为网络技术大赛奖项设置
手机号码 数据库 设计
霍格沃尔服务器
工业网络技术专业的题目
世界如何让玩家永久踢出服务器
邯郸计算机软件开发有用吗
土豆服务器buff加持
cad cam软件开发