jdk/src/linux/doc/man/jstatd.1
author mchung
Tue, 14 Oct 2008 15:16:38 -0700
changeset 1428 147c6bcaa316
parent 2 90ce3da70b43
child 2692 345bc8d65b19
permissions -rw-r--r--
6306922: Dump dump created by +HeapDumpOnOutOfMemoryError should include stack traces for stack roots Summary: Include stack traces of all threads in the heap dump Reviewed-by: alanb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
.'" t
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
." Copyright 2004-2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
." This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
." under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
." published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
." This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
." version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
." accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
." You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
." 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
." CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
." have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
." 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
." `
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.TH jstatd 1 "05 Aug 2006"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
." Generated by html2roff
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.SH NAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
jstatd \- Virtual Machine jstat Daemon
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.SH "SYNOPSIS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
jstatd [ \fP\f4options\fP\f3 ]\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
.SH "PARAMETERS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
options 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
Command\-line options. The options may be in any order. If there are redundant or contradictory options, the last option specified will take precedence. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.SH "DESCRIPTION"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
The \f3jstatd\fP 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.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
The \f3jstatd\fP server requires the presence of an RMI registry on the local host. The \f3jstatd\fP server will attempt to attach to the RMI registry on the default port, or on the port indicated by the \f2\-p port\fP option. If an RMI registry is not found, one will be created within the \f3jstatd\fP application bound to the port indicated by the \f2\-p port\fP option or to the default RMI registry port if \f2\-p port\fP is omitted. Creation of an internal RMI registry can be inhibited by specifying the \f2\-nr\fP option.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
\f3NOTE:\fP 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.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.SH "OPTIONS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
The \f3jstatd\fP command supports the following options:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
\-nr 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
Do not attempt to create an internal RMI registry within the \f2jstatd\fP process when an existing RMI registry is not found. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
\-p\  port 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
Port number where the RMI registry is expected to be found, or, if not found, created if \f2\-nr\fP is not specified. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
\-n\  rminame 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
Name to which the remote RMI object is bound in the RMI registry. The default name is \f2JStatRemoteHost\fP. If multiple \f3jstatd\fP 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 \f2hostid\fP and \f2vmid\fP strings. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
\-Joption 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
Pass \f2option\fP to the \f3java\fP launcher called by \f3javac\fP. For example, \f3\-J\-Xms48m\fP sets the startup memory to 48 megabytes. It is a common convention for \f3\-J\fP to pass options to the underlying VM executing applications written in Java. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.SH "SECURITY"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
The \f3jstatd\fP server can only monitor JVMs for which it has the appropriate native access permissions. Therefor the \f3jstatd\fP process must be running with the same user credentials as the target JVMs. Some user credentials, such as the \f2root\fP user in UNIX(TM) based systems, have permission to access the instrumentation exported by any JVM on the system. A \f3jstatd\fP process running with such credentials can monitor any JVM on the system, but introduces additional security concerns.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
The \f3jstatd\fP server does not provide any authentication of remote clients. Therefore, running a \f3jstatd\fP server process exposes the instrumentation export by all JVMs for which the \f3jstatd\fP 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 \f3jstatd\fP process, particularly in production environments or on unsecure networks.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
The \f3jstatd\fP 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 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
\f2Policy File Syntax\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
http://java.sun.com/javase/6/docs/technotes/guides/security/PolicyFiles.html.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
The following policy file will allow the \f3jstatd\fP 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 \f3jstatd\fP server.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
grant codebase "file:${java.home}/../lib/tools.jar" {\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
   permission java.security.AllPermission;\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
};\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
To use this policy, copy the text into a file called \f2jstatd.all.policy\fP and run the \f3jstatd\fP server as follows:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
jstatd \-J\-Djava.security.policy=jstatd.all.policy\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
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 \f3jstatd\fP server and use the \f3jstat\fP and \f3jps\fP tools locally.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
.SH "REMOTE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
INTERFACE"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
The interface exported by the \f3jstatd\fP process is proprietary and is guaranteed to change. Users and developers are discouraged from writing to this interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
.SH "EXAMPLES"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
Here are some examples of starting \f3jstatd\fP. Note that the \f3jstatd\fP scripts automatically start the server in the background.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
Using Internal RMI
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
Registry
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
This example demonstrates starting \f3jstatd\fP with an internal RMI registry. This example assumes that no other server is bound to the default RMI Registry port (port 1099).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
jstatd \-J\-Djava.security.policy=all.policy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
Using
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
External RMI Registry
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
This example demonstrates starting \f3jstatd\fP with a external RMI registry.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
rmiregistry&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
jstatd \-J\-Djava.security.policy=all.policy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
This example demonstrates starting \f3jstatd\fP with an external RMI registry server on port 2020.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
rmiregistry 2020&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
jstatd \-J\-Djava.security.policy=all.policy \-p 2020
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
This example demonstrates starting \f3jstatd\fP with an external RMI registry on port 2020, bound to name AlternateJstatdServerName.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
rmiregistry 2020&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
jstatd \-J\-Djava.security.policy=all.policy \-p 2020 \-n AlternateJstatdServerName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
Inhibiting creation of an in\-process RMI
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
registry
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
This example demonstrates starting \f3jstatd\fP 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.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
jstatd \-J\-Djava.security.policy=all.policy \-nr
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
Enabling RMI
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
logging capabilities.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
This example demonstrates starting \f3jstatd\fP with RMI logging capabilities enabled. This technique is useful as a troubleshooting aid or for monitoring server activities.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
jstatd \-J\-Djava.security.policy=all.policy \-J\-Djava.rmi.server.logCalls=true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
.SH "SEE ALSO"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
java \- the Java Application Launcher 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
jps \- the Java Process Status Application 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
jstat \- the Java Virtual Machine Statistics Monitoring Tool 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
rmiregistry \- the Java Remote Object Registry 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273