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.<init>(HeapByteBuffer.java:57)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)
at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:195)
at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:175)
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:68)
at java.io.OutputStreamWriter.<init>(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 :
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.<init>(HeapByteBuffer.java:57)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:331)
at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:195)
at sun.nio.cs.StreamEncoder.<init>(StreamEncoder.java:175)
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:68)
at java.io.OutputStreamWriter.<init>(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 :
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]$
目前看狀態正常,明天再看看,如果還在執行問題就解決了!!!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/6126/viewspace-2148992/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 12c OEM Cloud Control AGENT 安裝OracleCloud
- zabbix安裝agent
- Zabbix Agent安裝
- WIN下安裝agent
- Zabbix Agent 安裝與使用
- 安裝Oracle後,經常使用的修改表空間的SQL程式碼(轉)OracleSQL
- oracle10g GC agent安裝與解除安裝OracleGC
- zabbix agent 的兩種安裝方式
- 【Zabbix】zabbix_agent安裝指令碼指令碼
- zabbix agent原始碼編譯安裝原始碼編譯
- itm6 agent安裝報錯
- subversion 安裝各種異常 之 SQLiteSQLite
- Oracle11G安裝之後Oracle
- Win8停售之後,Win7也正式停止OEM預裝Win7
- windows下安裝配置 Navisphere Host AgentWindows
- CentOS 8 停止維護後透過 rpm 包手動安裝 dockerCentOSDocker
- 安裝 Google Cloud CLI(gcloud)GoCloudGC
- python安裝之後怎麼用Python
- zabbix agent 3.0部署文件 安裝部署
- Redis 原始碼安裝以及啟動、停止Redis原始碼
- mysql 5.5 win7安裝最後一步總是停止響應MySqlWin7
- yum安裝軟體之後如何儲存rpm安裝包
- JeeSite Spring Cloud安裝搭建SpringCloud
- Alibaba cloud 3 安裝dockerCloudDocker
- CentOS崩了之後的Ubuntu 真香--安裝dockerCentOSUbuntuDocker
- CentOS7安裝完之後的配置CentOS
- 常見問題--安裝好後出現新問題
- rpm包 手工安裝OEM 12c agent
- OCM實驗-grid control agent安裝
- 在oracle 11g下安裝配置scheduler agentOracle
- XP安裝到34分鐘停止響應
- 如何降低App Push之後的解除安裝率APP
- 安裝Postgresql之後,建立使用者 配置railsSQLAI
- 安裝OMA之後,不能識別監聽器
- ffmpeg安裝之mac安裝Mac
- SPARK 安裝之scala 安裝Spark
- perl安裝異常整理
- 警惕:360軟體安裝後常規反病毒引擎未開啟