这个内容是参考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进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。