【问题标题】:Connecting to a weblogic cluster via JPDA通过 JPDA 连接到 weblogic 集群
【发布时间】:2012-05-24 20:02:59
【问题描述】:

我在暂存环境中的两台机器上设置了一个 weblogic 集群。我想在至少一个 weblogic 实例上设置 JPDA,以便可以远程调试。通常我使用 wlst.sh 和 jython 脚本通过以下方式启动集群:

startNodeManager(...)
nmConnect(...)
nmStart(MyAdminServer)
connect(...) #connect to the admin server
start(...) #start the cluster

我应该将-Xdebug Xrunjdwp:transport... 咒语放在哪里,以便我可以附加到其中一个weblogic 实例?我通过我的域的startWebLogic.sh 在单个实例上设置它没有问题,但它似乎不适用于集群。

从这里:https://forums.oracle.com/forums/thread.jspa?threadID=2233816 看起来我想将调试字符串放在startManagedWeblogic.sh 中,但这似乎也不适用于我的 jython 脚本。

【问题讨论】:

    标签: debugging weblogic remote-debugging jpda


    【解决方案1】:

    想通了,来自http://docs.oracle.com/cd/E13222_01/wls/docs90/server_start/nodemgr.html#1081870

     4. The Administration Server obtains the domain configuration from its config directory
    

    我检查了我域下的 config 目录,其中有一个名为 config.xml 的可疑文件。在这个文件中是 weblogic 节点的配置以及您想要放置 JDPA 配置的位置:

    <server>
      <name>my-target-machine</name>
      ...
      <server-start>
        ...
        <arguments>(your other config stuff) -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n</arguments>
    

    【讨论】:

      猜你喜欢
      • 2012-12-13
      • 2016-05-03
      • 1970-01-01
      • 1970-01-01
      • 2013-10-24
      • 2021-07-21
      • 2016-06-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多