2012-05-24 71 views
0

我在分段環境中跨兩臺機器設置了一個weblogic集羣。我想在至少一個weblogic實例上設置JPDA,以便遠程調試。一般來說,我使用wlst.sh和Jython腳本通過以啓動集羣:通過JPDA連接到weblogic集羣

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腳本工作。

回答

0

想通了,從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目錄,並有一個叫​​3210可疑文件。在此文件內是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>