【问题标题】:How to connect JProfiler to an application running on remote OC4J?如何将 JProfiler 连接到远程 OC4J 上运行的应用程序?
【发布时间】:2013-03-19 22:20:34
【问题描述】:

问题:配置 JProfiler 后 OC4J 实例现在无法启动。

配置: OC4J 10.1.3.4.0,Java 1.5.0_06(32 位),远程服务器是 Linux x86/AMD64,nowait。手动同步配置,我已经从 .jprofiler 目录中复制了 config.xml。默认端口为 8849。

在ORACLE_HOME/opmn/logs/default_group~ifactory~default_group~1.log文件中,我看到了

13/03/19 14:48:42 Start process
--------
JProfiler> Protocol version 37
JProfiler> Using JVMTI
JProfiler> 32-bit library
JProfiler> Don't wait for frontend to connect.
JProfiler> Using config file /icu/ias/dev/ifactory/jprofiler/config.xml (id: 110)
JProfiler> Could not find session with id: 110

来自 ORACLE_HOME/opmn/conf/config.xml:

        <process-type id="ifactory" module-id="OC4J" status="enabled">
           <module-data>
              <category id="start-parameters">
                 <data id="java-options" value="-server -Xmx1024m -Djava.security.policy=$ORACLE_HOME/j2ee/ifactory/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:MaxPermSize=512m -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -Dlog4j.debug=true -agentpath:/icu/ias/dev/ifactory/jprofiler/bin/linux-x86/libjprofilerti.so=port=8849,nowait,id=110,config=/icu/ias/dev/ifactory/jprofiler/config.xml "/>
              </category>
              <category id="stop-parameters">
                 <data id="java-options" value="-Djava.security.policy=$ORACLE_HOME/j2ee/ifactory/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
              </category>
           </module-data>
           <start timeout="600" retry="2"/>
           <stop timeout="120"/>
           <restart timeout="720" retry="2"/>
           <port id="default-web-site" range="12501-12600" protocol="ajp"/>
           <port id="rmi" range="12401-12500"/>
           <port id="rmis" range="12701-12800"/>
           <port id="jms" range="12601-12700"/>
           <process-set id="default_group" numprocs="1"/>
        </process-type>

那么,我错过了什么?

【问题讨论】:

    标签: jprofiler oc4j


    【解决方案1】:

    没关系。显然我有一个稍旧的 config.xml 版本。

    【讨论】:

      猜你喜欢
      • 2011-12-24
      • 2013-12-20
      • 1970-01-01
      • 2019-06-07
      • 2011-02-15
      • 1970-01-01
      • 2013-06-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多