我在登台环境中的两台机器上设置了一个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在单个实例上设置它没有问题,但它似乎不能与集群一起工作。
从这里: jython看起来我想把调试字符串放在startManagedWeblogic.sh中,但这似乎也不适用于我的jython脚本。
发布于 2012-05-25 04:34:56
在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.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>https://stackoverflow.com/questions/10744487
复制相似问题