配置ECLIPSE远程调试WEBLOGIC应用的环境

<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 415 0;} @font-face {font-family:"Arial Unicode MS"; panose-1:2 11 6 4 2 2 2 2 2 4; mso-font-charset:134; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-134238209 -371195905 63 0 4129279 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} @font-face {font-family:"/@Arial Unicode MS"; panose-1:2 11 6 4 2 2 2 2 2 4; mso-font-charset:134; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-134238209 -371195905 63 0 4129279 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} h1 {mso-style-priority:9; mso-style-unhide:no; mso-style-qformat:yes; mso-style-link:"标题 1 Char"; mso-style-next:正文; margin-top:17.0pt; margin-right:0cm; margin-bottom:16.5pt; margin-left:0cm; text-align:justify; text-justify:inter-ideograph; line-height:240%; mso-pagination:lines-together; page-break-after:avoid; mso-outline-level:1; font-size:22.0pt; font-family:"Times New Roman","serif"; mso-font-kerning:22.0pt;} h2 {mso-style-name:"标题 2/,h1/,h2/,2/,Header 2/,Header2/,H2-Heading 2/,l2/,22/,heading2/,heading 2/,H2/,2nd level/,B Sub//Bold/,B Sub//Bold1/,h2 main heading/,Heading Two/,headi/,h21/,h22/,21/,Prophead 2/,heading 2+ Indent/: Left 0/.25 in/,Subsection/,标题 2 Char1/,标题 2 Char Char/,PIM2 Char Char"; mso-style-unhide:no; mso-style-qformat:yes; mso-style-link:"标题 2 Char"; mso-style-next:正文; margin-top:24.0pt; margin-right:0cm; margin-bottom:24.0pt; margin-left:42.0pt; text-indent:-21.0pt; mso-pagination:none; page-break-after:avoid; mso-outline-level:2; mso-list:l1 level2 lfo2; tab-stops:list 42.0pt; layout-grid-mode:char; font-size:10.5pt; mso-bidi-font-size:10.0pt; font-family:宋体; mso-hansi-font-family:"Times New Roman"; mso-bidi-font-family:"Arial Unicode MS"; font-weight:normal;} span.2Char {mso-style-name:"标题 2 Char"; mso-style-unhide:no; mso-style-locked:yes; mso-style-link:"标题 2/,h1/,h2/,2/,Header 2/,Header2/,H2-Heading 2/,l2/,22/,heading2/,heading 2/,H2/,2nd level/,B Sub//Bold/,B Sub//Bold1/,h2 main heading/,Heading Two/,headi/,h21/,h22/,21/,Prophead 2/,heading 2+ Indent/: Left 0/.25 in/,Subsection/,标题 2 Char1/,标题 2 Char Char/,PIM2 Char Char"; mso-ansi-font-size:10.5pt; font-family:宋体; mso-ascii-font-family:宋体; mso-bidi-font-family:"Arial Unicode MS";} span.1Char {mso-style-name:"标题 1 Char"; mso-style-priority:9; mso-style-unhide:no; mso-style-locked:yes; mso-style-link:"标题 1"; mso-ansi-font-size:22.0pt; mso-bidi-font-size:22.0pt; mso-font-kerning:22.0pt; font-weight:bold;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; mso-ascii-font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-hansi-font-family:"Times New Roman"; mso-font-kerning:0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:-5; mso-list-template-ids:-339307028;} @list l0:level1 {mso-level-tab-stop:21.25pt; mso-level-number-position:left; margin-left:21.25pt; text-indent:-21.25pt;} @list l0:level2 {mso-level-text:"%1/.%2/."; mso-level-tab-stop:1.0cm; mso-level-number-position:left; margin-left:1.0cm; text-indent:-1.0cm;} @list l0:level3 {mso-level-text:"%1/.%2/.%3/."; mso-level-tab-stop:35.45pt; mso-level-number-position:left; margin-left:35.45pt; text-indent:-35.45pt;} @list l0:level4 {mso-level-text:"%1/.%2/.%3/.%4/."; mso-level-tab-stop:42.55pt; mso-level-number-position:left; margin-left:42.55pt; text-indent:-42.55pt;} @list l0:level5 {mso-level-text:"%1/.%2/.%3/.%4/.%5/."; mso-level-tab-stop:49.6pt; mso-level-number-position:left; margin-left:49.6pt; text-indent:-49.6pt;} @list l0:level6 {mso-level-text:"%1/.%2/.%3/.%4/.%5/.%6/."; mso-level-tab-stop:2.0cm; mso-level-number-position:left; margin-left:2.0cm; text-indent:-2.0cm;} @list l0:level7 {mso-level-text:"%1/.%2/.%3/.%4/.%5/.%6/.%7/."; mso-level-tab-stop:63.8pt; mso-level-number-position:left; margin-left:63.8pt; text-indent:-63.8pt;} @list l0:level8 {mso-level-text:"%1/.%2/.%3/.%4/.%5/.%6/.%7/.%8/."; mso-level-tab-stop:70.9pt; mso-level-number-position:left; margin-left:70.9pt; text-indent:-70.9pt;} @list l0:level9 {mso-level-text:"%1/.%2/.%3/.%4/.%5/.%6/.%7/.%8/.%9/."; mso-level-tab-stop:77.95pt; mso-level-number-position:left; margin-left:77.95pt; text-indent:-77.95pt;} @list l1 {mso-list-id:653989933; mso-list-type:hybrid; mso-list-template-ids:-519923354 493004768 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l1:level1 {mso-level-tab-stop:18.0pt; mso-level-number-position:left; margin-left:18.0pt; text-indent:-18.0pt;} ol {margin-bottom:0cm;} ul {margin-bottom:0cm;} -->

1.1.  工作原理

远程调试就是允许利用 java tools 里面的 jdb 程序连接远程的 JAVA 虚拟机,进行远程 debug ,同时远程的虚拟机启动时候需要开启 debug 选项允许 jdb 连接。

 

1.2.  配置方法

1.       修改 Weblogic 的启动参数

目的是让 weblogic java VM 允许 romote debug ,在 weblogic startWebLogic.cmd 文件中增加下面一行设置 VM 参数

set JAVA_OPTIONS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=7777,server=y,suspend=n

其中 address=7777 7777 就是 romote debug 连接的端口。

 

weblogic10:

set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=4000,suspend=n

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值