Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
0f21aafb
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0f21aafb
编写于
2月 03, 2013
作者:
H
hseigel
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
bd5b4e26
9848578f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
51 addition
and
3 deletion
+51
-3
src/share/vm/services/diagnosticCommand.cpp
src/share/vm/services/diagnosticCommand.cpp
+41
-3
src/share/vm/services/diagnosticCommand.hpp
src/share/vm/services/diagnosticCommand.hpp
+10
-0
未找到文件。
src/share/vm/services/diagnosticCommand.cpp
浏览文件 @
0f21aafb
...
...
@@ -464,7 +464,32 @@ JMXStartRemoteDCmd::JMXStartRemoteDCmd(outputStream *output, bool heap_allocated
_jmxremote_ssl_config_file
(
"jmxremote.ssl.config.file"
,
"set com.sun.management.jmxremote.ssl_config_file"
,
"STRING"
,
false
)
"set com.sun.management.jmxremote.ssl_config_file"
,
"STRING"
,
false
),
// JDP Protocol support
_jmxremote_autodiscovery
(
"jmxremote.autodiscovery"
,
"set com.sun.management.jmxremote.autodiscovery"
,
"STRING"
,
false
),
_jdp_port
(
"jdp.port"
,
"set com.sun.management.jdp.port"
,
"INT"
,
false
),
_jdp_address
(
"jdp.address"
,
"set com.sun.management.jdp.address"
,
"STRING"
,
false
),
_jdp_source_addr
(
"jdp.source_addr"
,
"set com.sun.management.jdp.source_addr"
,
"STRING"
,
false
),
_jdp_ttl
(
"jdp.ttl"
,
"set com.sun.management.jdp.ttl"
,
"INT"
,
false
),
_jdp_pause
(
"jdp.pause"
,
"set com.sun.management.jdp.pause"
,
"INT"
,
false
)
{
_dcmdparser
.
add_dcmd_option
(
&
_config_file
);
...
...
@@ -480,6 +505,12 @@ JMXStartRemoteDCmd::JMXStartRemoteDCmd(outputStream *output, bool heap_allocated
_dcmdparser
.
add_dcmd_option
(
&
_jmxremote_ssl_enabled_protocols
);
_dcmdparser
.
add_dcmd_option
(
&
_jmxremote_ssl_need_client_auth
);
_dcmdparser
.
add_dcmd_option
(
&
_jmxremote_ssl_config_file
);
_dcmdparser
.
add_dcmd_option
(
&
_jmxremote_autodiscovery
);
_dcmdparser
.
add_dcmd_option
(
&
_jdp_port
);
_dcmdparser
.
add_dcmd_option
(
&
_jdp_address
);
_dcmdparser
.
add_dcmd_option
(
&
_jdp_source_addr
);
_dcmdparser
.
add_dcmd_option
(
&
_jdp_ttl
);
_dcmdparser
.
add_dcmd_option
(
&
_jdp_pause
);
}
...
...
@@ -494,7 +525,6 @@ int JMXStartRemoteDCmd::num_arguments() {
}
}
void
JMXStartRemoteDCmd
::
execute
(
TRAPS
)
{
ResourceMark
rm
(
THREAD
);
HandleMark
hm
(
THREAD
);
...
...
@@ -524,7 +554,9 @@ void JMXStartRemoteDCmd::execute(TRAPS) {
// file.
#define PUT_OPTION(a) \
if ( (a).is_set() ){ \
options.print("%scom.sun.management.%s=%s", comma, (a).name(), (a).value()); \
options.print(\
( *((a).type()) == 'I' ) ? "%scom.sun.management.%s=%d" : "%scom.sun.management.%s=%s",\
comma, (a).name(), (a).value()); \
comma[0] = ','; \
}
...
...
@@ -541,6 +573,12 @@ void JMXStartRemoteDCmd::execute(TRAPS) {
PUT_OPTION
(
_jmxremote_ssl_enabled_protocols
);
PUT_OPTION
(
_jmxremote_ssl_need_client_auth
);
PUT_OPTION
(
_jmxremote_ssl_config_file
);
PUT_OPTION
(
_jmxremote_autodiscovery
);
PUT_OPTION
(
_jdp_port
);
PUT_OPTION
(
_jdp_address
);
PUT_OPTION
(
_jdp_source_addr
);
PUT_OPTION
(
_jdp_ttl
);
PUT_OPTION
(
_jdp_pause
);
#undef PUT_OPTION
...
...
src/share/vm/services/diagnosticCommand.hpp
浏览文件 @
0f21aafb
...
...
@@ -257,6 +257,16 @@ class JMXStartRemoteDCmd : public DCmdWithParser {
DCmdArgument
<
char
*>
_jmxremote_ssl_need_client_auth
;
DCmdArgument
<
char
*>
_jmxremote_ssl_config_file
;
// JDP support
// Keep autodiscovery char* not bool to pass true/false
// as property value to java level.
DCmdArgument
<
char
*>
_jmxremote_autodiscovery
;
DCmdArgument
<
jlong
>
_jdp_port
;
DCmdArgument
<
char
*>
_jdp_address
;
DCmdArgument
<
char
*>
_jdp_source_addr
;
DCmdArgument
<
jlong
>
_jdp_ttl
;
DCmdArgument
<
jlong
>
_jdp_pause
;
public:
JMXStartRemoteDCmd
(
outputStream
*
output
,
bool
heap_allocated
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录