JDK1.6 jinfo 命令说明

jinfo(Configuration Info for Java)

Java配置信息工具

SYNOPSIS

jinfo [ option ] pid
jinfo [ option ] executable core
jinfo [ option ] [server-id@]remote-hostname-or-IP

PARAMETERS

option

Options are mutually exclusive. Option, if used, should follow immediately after the command name.

pid

process id for which the configuration info is to be printed. The process must be a Java process. To get a list of Java processes running on a machine, jps may be used.

executable

Java executable from which the core dump was produced.

core

core file for which the configuration info is to be printed.

remote-hostname-or-IP

remote debug server's (see jsadebugd) hostname or IP address.

server-id

optional unique id, if multiple debug servers are running on the same remote host.

DESCRIPTION

jinfo prints Java configuration information for a given Java process or core file or a remote debug server. Configuration information includes Java System properties and Java virtual machine command line flags. If the given process is running on a 64-bit VM, you may need to specify the -J-d64 option, e.g.:

jinfo -J-d64 -sysprops pid

NOTE - This utility is unsupported and may or may not be available in future versions of the JDK. In Windows Systems where dbgent.dll is not present, 'Debugging Tools for Windows' needs to be installed to have these tools working. Also the PATH environment variable should contain the location of jvm.dll used by the target process or the location from which the Crash Dump file was produced.

For example, set PATH=<jdk>\jre\bin\client;%PATH%

OPTIONS

<no option>

prints both command line flags as well as System properties name, value pairs.

-flag name

prints the name and value of the given command line flag.

-flag [+|-]name

enables or disables the given boolean command line flag.

-flag name=value

sets the given command line flag to the specified value.

-flags

prints command line flags passed to the JVM. pairs.

-sysprops

prints Java System properties as name, value pairs.

-h

prints a help message

-help

prints a help message

参考资料

[url]http://docs.oracle.com/javase/6/docs/technotes/tools/share/jinfo.html[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值