- 浏览: 748313 次
- 性别:
- 来自: 苏州
文章分类
最新评论
-
hsl313:
源码还有得下载吗?
利用AMF数据封装与Flash 进行Socket通讯 -
zhang5476499:
已看,谢谢讲解。
Mock单元测试 -
Buydeful:
...
关于JSP或HTML的命名规范 -
lliiqiang:
单一登陆最好采用踢掉方法,如果忘记退出,可以从别的地方控制方式 ...
Jquery选择器大全 -
lliiqiang:
web代码由后台动态生成,这种动态方式多种多样,多提供几种标准 ...
Jquery选择器大全
PARAMETERS
options
Command-line options. The options may be in any order. If there are redundant or contradictory options, the last option specified will take precedence.
DESCRIPTION
The jstatd tool is an RMI server application that monitors for the creation and termination of instrumented HotSpot Java virtual machines (JVMs) and provides a interface to allow remote monitoring tools to attach to JVMs running on the local host.
The jstatd server requires the presence of an RMI registry on the local host. The jstatd server will attempt to attach to the RMI registry on the default port, or on the port indicated by the -p port option. If an RMI registry is not found, one will be created within the jstatd application bound to the port indicated by the -p port option or to the default RMI registry port if -p port is omitted. Creation of an internal RMI registry can be inhibited by specifying the -nr option.
NOTE: This utility is unsupported and may or may not be available in future versions of the JDK. It is not currently available on the Windows 98 and Windows ME platforms.
OPTIONS
The jstatd command supports the following options:
-nr
Do not attempt to create an internal RMI registry within the jstatd process when an existing RMI registry is not found.
-p port
Port number where the RMI registry is expected to be found, or, if not found, created if -nr is not specified.
-n rminame
Name to which the remote RMI object is bound in the RMI registry. The default name is JStatRemoteHost. If multiple jstatd servers are started on the same host, the name of the exported RMI object for each server can be made unique by by specifying this option. However, doing so will require that the unique server name be included in the monitoring client's hostid and vmid strings.
-Joption
Pass option to the java launcher called by javac. For example, -J-Xms48m sets the startup memory to 48 megabytes. It is a common convention for -J to pass options to the underlying VM executing applications written in Java.
SECURITY
The jstatd server can only monitor JVMs for which it has the appropriate native access permissions. Therefor the jstatd process must be running with the same user credentials as the target JVMs. Some user credentials, such as the root user in UNIX(TM) based systems, have permission to access the instrumentation exported by any JVM on the system. A jstatd process running with such credentials can monitor any JVM on the system, but introduces additional security concerns.
The jstatd server does not provide any authentication of remote clients. Therefore, running a jstatd server process exposes the instrumentation export by all JVMs for which the jstatd process has access permissions to any user on the network. This exposure may be undesireable in your environment and local security policies should be considered before starting the jstatd process, particularly in production environments or on unsecure networks.
The jstatd server installs an instance of RMISecurityPolicy if no other security manager has been installed and therefore requires a security policy file to be specified. The policy file must conform to the default policy implementation's Policy File Syntax.
The following policy file will allow the jstatd server to run without any security exceptions. This policy is less liberal then granting all permissions to all codebases, but is more liberal than a policy that grants the minimal permissions to run the jstatd server.
To use this policy, copy the text into a file called jstatd.all.policy and run the jstatd server as follows:
For sites with more restrictive security practices, it is possible to use a custom policy file to limit access to specific trusted hosts or networks, though such techniques are subject to IP addreess spoofing attacks. If your security concerns cannot be addressed with a customized policy file, then the safest action is to not run the jstatd server and use the jstat and jps tools locally.
REMOTE INTERFACE
The interface exported by the jstatd process is proprietary and is guaranteed to change. Users and developers are discouraged from writing to this interface.
EXAMPLES
Here are some examples of starting jstatd. Note that the jstatd scripts automatically start the server in the background.
Using Internal RMI Registry
This example demonstrates starting jstatd with an internal RMI registry. This example assumes that no other server is bound to the default RMI Registry port (port 1099).
Using External RMI Registry
This example demonstrates starting jstatd with a external RMI registry.
This example demonstrates starting jstatd with an external RMI registry server on port 2020.
This example demonstrates starting jstatd with an external RMI registry on port 2020, bound to name AlternateJstatdServerName.
Inhibiting creation of an in-process RMI registry
This example demonstrates starting jstatd such that it will not create a RMI registry if one is not found. This example assumes an RMI registry is already running. If it is not, an appropriate error message is emitted.
This example demonstrates starting jstatd with RMI logging capabilities enabled. This technique is useful as a troubleshooting aid or for monitoring server activities.
options
Command-line options. The options may be in any order. If there are redundant or contradictory options, the last option specified will take precedence.
DESCRIPTION
The jstatd tool is an RMI server application that monitors for the creation and termination of instrumented HotSpot Java virtual machines (JVMs) and provides a interface to allow remote monitoring tools to attach to JVMs running on the local host.
The jstatd server requires the presence of an RMI registry on the local host. The jstatd server will attempt to attach to the RMI registry on the default port, or on the port indicated by the -p port option. If an RMI registry is not found, one will be created within the jstatd application bound to the port indicated by the -p port option or to the default RMI registry port if -p port is omitted. Creation of an internal RMI registry can be inhibited by specifying the -nr option.
NOTE: This utility is unsupported and may or may not be available in future versions of the JDK. It is not currently available on the Windows 98 and Windows ME platforms.
OPTIONS
The jstatd command supports the following options:
-nr
Do not attempt to create an internal RMI registry within the jstatd process when an existing RMI registry is not found.
-p port
Port number where the RMI registry is expected to be found, or, if not found, created if -nr is not specified.
-n rminame
Name to which the remote RMI object is bound in the RMI registry. The default name is JStatRemoteHost. If multiple jstatd servers are started on the same host, the name of the exported RMI object for each server can be made unique by by specifying this option. However, doing so will require that the unique server name be included in the monitoring client's hostid and vmid strings.
-Joption
Pass option to the java launcher called by javac. For example, -J-Xms48m sets the startup memory to 48 megabytes. It is a common convention for -J to pass options to the underlying VM executing applications written in Java.
SECURITY
The jstatd server can only monitor JVMs for which it has the appropriate native access permissions. Therefor the jstatd process must be running with the same user credentials as the target JVMs. Some user credentials, such as the root user in UNIX(TM) based systems, have permission to access the instrumentation exported by any JVM on the system. A jstatd process running with such credentials can monitor any JVM on the system, but introduces additional security concerns.
The jstatd server does not provide any authentication of remote clients. Therefore, running a jstatd server process exposes the instrumentation export by all JVMs for which the jstatd process has access permissions to any user on the network. This exposure may be undesireable in your environment and local security policies should be considered before starting the jstatd process, particularly in production environments or on unsecure networks.
The jstatd server installs an instance of RMISecurityPolicy if no other security manager has been installed and therefore requires a security policy file to be specified. The policy file must conform to the default policy implementation's Policy File Syntax.
The following policy file will allow the jstatd server to run without any security exceptions. This policy is less liberal then granting all permissions to all codebases, but is more liberal than a policy that grants the minimal permissions to run the jstatd server.
grant codebase "file:${java.home}/../lib/tools.jar" { permission java.security.AllPermission; };
To use this policy, copy the text into a file called jstatd.all.policy and run the jstatd server as follows:
jstatd -J-Djava.security.policy=jstatd.all.policy
For sites with more restrictive security practices, it is possible to use a custom policy file to limit access to specific trusted hosts or networks, though such techniques are subject to IP addreess spoofing attacks. If your security concerns cannot be addressed with a customized policy file, then the safest action is to not run the jstatd server and use the jstat and jps tools locally.
REMOTE INTERFACE
The interface exported by the jstatd process is proprietary and is guaranteed to change. Users and developers are discouraged from writing to this interface.
EXAMPLES
Here are some examples of starting jstatd. Note that the jstatd scripts automatically start the server in the background.
Using Internal RMI Registry
This example demonstrates starting jstatd with an internal RMI registry. This example assumes that no other server is bound to the default RMI Registry port (port 1099).
jstatd -J-Djava.security.policy=all.policy
Using External RMI Registry
This example demonstrates starting jstatd with a external RMI registry.
rmiregistry& jstatd -J-Djava.security.policy=all.policy
This example demonstrates starting jstatd with an external RMI registry server on port 2020.
rmiregistry 2020& jstatd -J-Djava.security.policy=all.policy -p 2020
This example demonstrates starting jstatd with an external RMI registry on port 2020, bound to name AlternateJstatdServerName.
rmiregistry 2020& jstatd -J-Djava.security.policy=all.policy -p 2020 -n AlternateJstatdServerName
Inhibiting creation of an in-process RMI registry
This example demonstrates starting jstatd such that it will not create a RMI registry if one is not found. This example assumes an RMI registry is already running. If it is not, an appropriate error message is emitted.
jstatd -J-Djava.security.policy=all.policy -nr Enabling RMI logging capabilities.
This example demonstrates starting jstatd with RMI logging capabilities enabled. This technique is useful as a troubleshooting aid or for monitoring server activities.
jstatd -J-Djava.security.policy=all.policy -J-Djava.rmi.server.logCalls=true
发表评论
-
转:Node.js 究竟是什么?
2011-09-05 09:19 1002简介 如果您听说过 ... -
Cache Insight
2011-05-25 17:31 1223http://www.iteye.com/topic/2172 ... -
Asynchronous innerHTML
2009-06-02 10:39 1089A recent question on Stack Over ... -
Fastest way to build an HTML string
2009-06-02 10:28 1153You have a massive array of ite ... -
JS字符串加不同浏览器比较
2009-05-06 09:03 1857function StringBuffer() { ... -
kestrel项目
2009-05-02 01:58 1563kestrel项目,用于MQ,twitter实现 scala语 ... -
Tomcat6安装版本参数修改
2009-04-14 13:41 1518tomcat6w.exe //ES//Tomcat6 -Xr ... -
jvm之JSTAT
2008-12-23 16:02 2986http://java.sun.com/javase/6/do ... -
jvm之JPS
2008-12-23 10:45 1652PARAMETERS options ... -
JVM监控工具介绍
2008-12-15 10:43 2994http://hqman.iteye.com/blog/167 ... -
java6性能
2008-12-10 10:55 1697J2SE 6(代号:Mustang野马 ... -
ApacheBench测试工具使用指南
2008-12-01 15:46 2269服务器负载太大而影响程序效率也是很常见的,Apache服务器自 ... -
关于fastcgi的一些摘录
2008-12-01 14:17 1495原讨论帖:http://www.iteye.com/topic ... -
基于等待的性能调优
2008-11-20 12:40 1092性能调优曾经是“艺术性”多于“科学性”,但是通过结合抽象分析和 ... -
Web 图片服务器
2008-08-25 14:11 2969http://www.yatan.com/group/topi ... -
图片加速
2008-08-18 11:43 1907不要GZIP图片,设置Cache 图片已经是压缩保存了的,GZ ... -
Ajax performance analysis
2008-07-22 11:28 1237http://www.ibm.com/developerwor ... -
HashMap和List的线程安全
2008-03-24 08:54 4620Map m =Collections.synchronized ... -
HTTP协议:304
2008-01-24 17:59 5932var r = new XMLHttpRequest(); ... -
【摘录】缓存
2008-01-21 10:37 1446robbin: 1、对象缓存 Java ...
相关推荐
在实际开发中,了解这些JVM相关的知识可以帮助我们更好地进行性能调优,例如通过分析字节码来理解方法的执行流程,利用类加载器实现自定义加载策略,或者通过jstatd监控JVM的运行状态,及时发现并解决问题。...
jstatd是JVM监控服务,它基于RMI(Remote Method Invocation)技术,允许远程机器获取本地JVM应用的信息。默认监听1099端口。在启用jstatd时,可能需要配置安全策略文件(如`jstatd.all.policy`),赋予必要的权限...
JVM 监控管理及故障诊断工具 ...jps、jstat 和 jstatd 三种命令都是 JVM 监控管理及故障诊断的重要工具,它们可以帮助开发者快速地了解 JVM 的性能和资源消耗情况,从而进行合理的资源分配和性能优化。
### JVM性能监控方法之VisualVM详解 #### 一、引言 在Java应用程序开发与运维过程中,对JVM(Java虚拟机)进行性能监控是非常重要的环节。它可以帮助开发者及运维人员及时发现并解决性能瓶颈问题,确保应用稳定高效...
1. jstatd:是一个监控服务,它在目标机器上创建一个RMI(远程方法调用)注册表,并使用这个注册表来监听JVM进程的创建和终止。其他工具如jvisualvm可通过它来远程连接并监控JVM进程。 2. jps:用于显示在本地或...
jstatd是一个基于RMI的应用程序,向远程机器提供本机JVM应用程序的信息。jstatd需要设置安全策略文件,以便其能够进行网络操作。jstatd的默认端口是1099。 这五种JVM监控工具可以帮助开发者和运维人员更好地了解...
`jstatd` 是一个RMI服务,允许远程机器访问本地JVM的统计信息。它需要一个安全策略文件来定义允许的操作,例如`my.policy`。 6. **jps**: `jps` 命令用于列出运行在本地或远程机器上的所有JVM实例,显示它们的...
jstatd命令是一个基于RMI的应用,用于提供远程机器提供本机JVM应用程序的信息。jstatd命令可以帮助开发者快速地监控远程机器的Java应用程序的信息,从而快速定位问题所在。 Java提供了多种工具和命令来帮助开发者...
jstatd是Java虚拟机(JVM)内置的一款统计监控工具,它允许远程连接到运行中的JVM上,获取有关内存、垃圾收集、类装载等性能数据。本文将详细介绍jstatd客户端的使用和RMI在其中的角色。 【jstatd介绍】 jstatd是...
- **jstatd**:启动一个基于RMI的JVM监控服务,允许远程监控JVM状态。需要注意的是,为了安全考虑,使用`jstatd`需正确配置安全策略文件。 ### 结论 上述工具共同构成了Java开发者和运维人员的有力武器库,帮助...
jvisualvm是一款功能强大的Java虚拟机(JVM)监控工具,由Oracle提供,自JDK 6 update 7起,jvisualvm.exe文件包含在JDK的bin目录下。jvisualvm是NetBeans的profile子项目,可以监控线程、内存情况、查看方法的CPU...
VisualVM 可以远程监控 JVM,需要在远程机器上启动 jstatd 守护进程, 并在本地机器上使用 VisualVM 连接到远程机器。 使用 VisualVM 可以: * 监控 JVM 的性能,包括堆内存、线程、类加载等信息 * 进行线程 dump ...
在远程监控方面,VisualVM 支持两种连接方式:jstatd 和 JMX(Java Management Extensions)。本文将详细介绍如何通过 JMX 方式配置并监控远程的 JVM 进程。 首先,要通过 JMX 方式监控远程 JVM,需要在远程主机上...
jstatd是一个守护进程,用于远程监控JVM的状态。通过它可以在不干扰目标应用程序的情况下收集运行时信息。 ### 结语 以上介绍的工具和技术是Java开发者日常工作中不可或缺的一部分。熟练掌握它们可以帮助开发者更...
同时,还需要配置JVM的安全策略文件,如 `jstatd.all.policy`,允许JMX连接。 接下来,使用JVisualVM(在JDK的bin目录下,如 `jvisualvm.exe`)这个强大的JVM管理和性能分析工具,连接到远程服务器的JMX端口。在...
它使得开发者无需依赖其他独立的工具,如`jstack`或`jmap`,即可完成对JVM的调试和监控。 **jcmd的使用** `jcmd`的基本使用语法如下: ``` jcmd [pid | main-class] command... | PerfCounter.print | -f ...
11. jstatd.exe:JVM统计监控守护进程,可以远程监控JVM的性能。 12. kinit.exe、klist.exe、ktab.exe:这些是与Kerberos身份验证相关的工具,Java可以通过这些工具与Kerberos系统交互,进行身份验证和授权。 以上...
2. **jdk.jstatd**: 这个模块是Java远程统计代理,允许远程监控Java虚拟机(JVM)的性能数据。源码展示了如何利用JMX(Java Management Extensions)接口来收集和传输JVM的统计信息,这对于性能调优和故障排查非常...