如何在Weblogic集群环境上设置远程调试? [英] How to setup remote debugging on Weblogic clustered environment?

查看:71
本文介绍了如何在Weblogic集群环境上设置远程调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试远程调试WebLogic 12c上部署的群集Web应用程序.

I'm trying to remote debug a clustered Web Application that is deployed on WebLogic 12c.

我知道如何为普通(非集群)环境设置远程调试,我只是将以下参数添加到名为[startWebLogic.cmd]的文件中:

I know how to setup remote debugging for normal (non-clustered) environments, I just add the following parameters to the file named [startWebLogic.cmd]:

set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n

但是,当我尝试在集群环境的所有节点上设置相同的参数,然后使用WebLogic控制台页面启动集群时,远程调试将无法进行!(Eclipse将无法连接.)

But when I try to set those same parameters on all the nodes of the cluster environment, and then start the cluster using WebLogic console page, remote debugging will not work!! (Eclipse will not be able to connect).

我怀疑这是由WebLogic的节点管理器启动各个节点的方式引起的,就像它没有为每个节点调用[startWebLogic.cmd].

I suspect this is caused by the way the Node Manager of WebLogic starts the individual nodes, it's like it's not calling [startWebLogic.cmd] for each node.

推荐答案

我知道了!

通过WebLogic控制台页面启动群集节点时,节点管理器以某种方式处理每个节点的启动,因此它不会运行每个节点的[ startWebLogic.cmd ]文件!

When you start the cluster nodes through WebLogic console page, The node manager handles the start-up of each node in some way, so it does not run each node's [startWebLogic.cmd] file!

我发现您可以通过控制台页面本身为每个节点设置远程调试参数,以便节点管理器在尝试启动它时将这些参数传递给每个节点.

I found that you can set remote debugging arguments for each node through the console page itself, so that the node manager will pass those parameters to each node when it attempts to start it.

下面是我的操作方式(在WebLogic 12c上编辑):

Below is how I did that ( on WebLogic 12c):

  1. 打开WebLogic控制台页面(例如: localhost:7001/控制台)
  2. 在页面左侧,转到 环境 > 集群
  3. 找到集群环境的名称,然后单击它
  4. 配置" 标签中,打开 服务器" 子标签
  5. 在页面底部,您将找到一个包含所有集群节点的表.
  6. 单击节点(服务器)之一.
  7. 配置" 标签中,打开 服务器启动" 子标签
  8. 向下滚动一点,您将找到一个名为 "Arguments" 的文本区域,并在其中填充远程调试参数:-Xdebug -Xnoagent -Xrunjdwp:transport = dt_socket,address = 4000,server = y,suspend = n
  9. 单击 保存" ,然后在所有其他群集节点上重复步骤 6-8 .
  1. Open WebLogic console page (e.g: localhost:7001/console)
  2. On the left side of the page, go to Environment > Clusters
  3. Find the name of your cluster environment and click on it
  4. In the "Configuration" tab, open the "Servers" sub-tab
  5. At the bottom of the page, you'll find a table of all the cluster nodes you have.
  6. Click on one of the nodes (servers).
  7. In the "Configuration" tab, open the "Server Start" sub-tab
  8. Scroll down a bit and you'll find a Text Area named "Arguments", fill it with the remote debugging arguments: -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n
  9. Click "Save", and repeat steps 6-8 on all the other cluster nodes.

您完成了!

这篇关于如何在Weblogic集群环境上设置远程调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆