您好,登錄后才能下訂單哦!
這個內容是參考MOS:
12c Cloud Control: Details of the Directory Structure and Commonly Used Locations in a 12c OMS Installation (文檔 ID 1368503.1)
OMS服務器進程,主要包含WebLogic和HTTP兩類進程。
使用最小化安裝的Cloud Control包含4個Java進程,其中3個為WebLogic進程(1個管理服務器進程,1個被管服務器進程,1個節點管理器進程),1個為普通Java程序(Agent進程)。
?
[oracle@oel7 bin]$ ps -ef | grep java | grep -v grep | awk '{print $1, $2, $3, $8, $NF}' | sort
oracle 1879 1459 /cloud/Agent/core/12.1.0.5.0/jdk/bin/java oracle.sysman.gcagent.tmmain.TMMain
oracle 1953 1 /cloud/Middleware/jdk16/jdk/jre/bin/java weblogic.NodeManager
oracle 2040 1992 /cloud/Middleware/jdk16/jdk/bin/java weblogic.Server
oracle 30877 30824 /cloud/Middleware/jdk16/jdk/bin/java weblogic.Server
?
[oracle@oel7 ~]$ ps -ef | grep weblogic | grep -v grep?
從這個信息來看,OMS對內存的要求比較大。
/cloud/Middleware/jdk16/jdk/jre/bin/java -Xms126m -Xmx382m?weblogic.NodeManager
/cloud/Middleware/jdk16/jdk/bin/java -server -Xms256m -Xmx512m?-Dweblogic.Name=EMGC_ADMINSERVER
/cloud/Middleware/jdk16/jdk/bin/java -server -Xms256M -Xmx1740M?-Dweblogic.Name=EMGC_OMS1
WebTier?封裝了Apache HTTP服務器,替換了原有的WebLogic代理程序。
?
[oracle@oel7 bin]$ ps -ef | grep http | grep -v java | sort | grep 14584
oracle ? 14584 14344 ?0 11:16 ? ? ? ? ?00:00:01 /cloud/Middleware/Oracle_WT/ohs/bin/httpd.worker -DSSL
oracle ? 14594 14584 ?0 11:16 ? ? ? ? ?00:00:00 /cloud/Middleware/Oracle_WT/ohs/bin/odl_rotatelogs /cloud/OMS_Instance/WebTierIH1/diagnostics/logs/OHS/ohs1/em_upload_http_access_log 10M 100M
oracle ? 14595 14584 ?0 11:16 ? ? ? ? ?00:00:00 /cloud/Middleware/Oracle_WT/ohs/bin/odl_rotatelogs /cloud/OMS_Instance/WebTierIH1/diagnostics/logs/OHS/ohs1/em_upload_https_access_log 10M 100M
oracle ? 14598 14584 ?0 11:16 ? ? ? ? ?00:00:00 /cloud/Middleware/Oracle_WT/ohs/bin/httpd.worker -DSSL
oracle ? 14599 14584 ?0 11:16 ? ? ? ? ?00:00:03 /cloud/Middleware/Oracle_WT/ohs/bin/httpd.worker -DSSL
oracle ? 14600 14584 ?0 11:16 ? ? ? ? ?00:00:02 /cloud/Middleware/Oracle_WT/ohs/bin/httpd.worker -DSSL
OMS的配置文件,包含Cloud Control本身的配置信息,以及WebLogic Server和HTTP Server
相關的配置。OMS運行時使用到的程序和配置文件,都存放在<EM_INSTANCE_BASE>的目錄中,也就是OMS實例的創建目錄中。
?
[oracle@oel7 OMS_Instance]$ tree -L 1 ../OMS_Instance
../OMS_Instance
|-- NodeManager--節點管理器
|-- WebTierIH1--OHS服務
|-- em--OMS服務
`-- user_projects--WebLogic域
<EM_INSTANCE_BASE>/em/<OMS_NAME>/emgc.properties 文件中,包含了OMS的絕大部分的配置信息。
<EM_INSTANCE_BASE>/user_projects/domains/GCDomain/config/config.xml,包含WebLogic的配置信息。
<EM_INSTANCE_BASE>/<webtier_instance_name>/config/OHS/<ohs_name>/httpd.conf 文件中,包含了HTTP Server的配置信息。
<EM_INSTANCE_BASE>/NodeManager/emnodemanager/nodemanager.properties文件中,包含了WebLogic節點管理器的配置信息。
OMS的日志存放在<EM_INSTANCE_BASE>/em/<OMS_NAME>/sysman/log目錄中。
日志的設置查看與調整,需要通過emctl命令進行操作,比如:
[oracle@oel7 bin]$ ./emctl get property -name log4j.rootCategory
Oracle Enterprise Manager Cloud Control 12c Release 5 ?
Copyright (c) 1996, 2015 Oracle Corporation. ?All rights reserved.
SYSMAN password:
Value for property log4j.rootCategory at Global level is WARN, emlogAppender, emtrcAppender
?
[oracle@oel7 bin]$ ./emctl set property -name log4j.rootCategory -value "DEBUG, emlogAppender, emtrcAppender" -module logging
Installation: <oraInventory>/logs
EMPrereqkit: <oraInventory>/logs/emdbprereqs/LATEST/repository.log(emprereqkit.log)
Configuration Tools: <OMS_HOME>/cfgtoollogs
Repository Creation: <OMS_HOME>/sysman/log/schemamanager
Agent Deploy:<EM_INSTANCE_BASE>/em/<OMS_NAME>/sysman/agentpush
<EM_INSTANCE_BASE>/<webtier_instance_name>/diagnostics/logs/OHS/<ohs_name>目錄中存放OHS日志。
OPMN工具用于啟停OHS服務。
<EM_INSTANCE_BASE>/<webtier_instance_name>/diagnostics/logs/OPMN/<opmn_name>存放OPMN日志。
<EM_INSTANCE_BASE>/NodeManager/emnodemanager
<EM_INSTANCE_BASE>/user_projects/domains/<domain_name>/servers/ADMIN_SERVER_NAME>/logs
<EM_INSTANCE_BASE>/user_projects/domains/<domain_name>/servers/<SERVER_NAME>/logs
參考文檔:
EM 12c: Steps to Locate and Manage the Various Logs/Trace files in a 12c OMS Installation (文檔 ID 1448308.1)
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。