上一主题: 按日期或大小轮转企业管理器日志下一主题: 停止企业管理器


配置企业管理器配置目录

如果您有多个企业 管理器,并且希望使用单个 Introscope 实例运行它们,可以为每个企业 管理器创建一个单独的配置目录。 对于每个企业 管理器,创建 config、logs、data 和 traces 目录的副本。 针对 config 目录的每个副本,在 IntroscopeEnterpriseManager.properties 文件中设置相应的属性以指向您的 config、logs、data 和 traces 的副本

通过创建单独的配置目录,您可以将所有目录保留在一个 Introscope 实例中,同时为每个企业管理器维护单独的 config、logs、data 和 traces 目录 。

为企业 管理器指定一个不同的配置目录:

  1. 打开 IntroscopeEnterpriseManager.properties 文件并修改以下属性:
    introscope.enterprisemanager.directory.config=config
    

    默认目录为 config,这是第一次安装 Introscope 时所创建的配置目录。 更改此目录的位置,可以使用绝对路径(例如,C:\\Introscope\em1\\config),也可以使用相对于 Introscope 安装目录的相对路径(例如,config2)。 例如:introscope.enterprisemanager.directory.config=
    C:\\Introscope\\em1\\config

    注意:在 Windows 环境中,必须对反斜线进行转义(使用两个反斜线),这样路径才会有效。

  2. 保存更改的 IntroscopeEnterpriseManager.properties 文件。
  3. 打开 Introscope Enterprise Manager.lax 文件并修改以下属性:
    lax.nl.java.option.additional
    

    此属性修改 Java 命令行并且可以包含多个属性。 使用您在步骤 1 中选择的 config 文件的位置。 例如:

    lax.nl.java.option.additional=-Xms512m -Xmx1024m -Djava.awt.headless=false -Dcom.wily.introscope.em.properties=C:\Introscope\em1\config
    

    注意:此属性可以指向包含企业管理器属性文件的目录,也可以直接指向 IntroscopeEnterpriseManager.properties 文件。  例如:

    -Dcom.wily.introscope.em.properties=C:\Introscope\em1\config
    

    -Dcom.wily.introscope.em.properties=
    C:\Introscope\em1\config\IntroscopeEnterpriseManager.properties
    
  4. 将所做的更改保存到 Introscope Enterprise Manager.lax 文件中。
  5. 重新启动企业 管理器。