Command Name
- followed by More Descriptive
Command Titlecommandname [ options ] [ sourcefiles ] [ classes ] [ @argfiles ]
For example, you could introduce items like the following, as required.
Generally, what does a user do with this tool?
For what purpose was this tool developed?
You could state general differences in use/functionality for each OS (operating system) we support.
Place your introduction here. Then, if you have different categories of options, use multiple level 3 headings to create sub-sections as necessary. Options should be listed alphabetically within a sub-section.
Following are a few option examples from the
jconsole
and apt
man pages. They are
divided into three sub-sections, just to give an example of what
sub-sections look like.
jconsole
Options-interval
=n-notile
-pluginpath
pluginsMETA-INF/services/com.sun.tools.jconsole.JConsolePlugin
containing one line for each plugin specifying the fully qualified class name of the class implementing the com.sun.tools.jconsole.JConsolePlugin class.
-version
-help
-J<flag>
apt
Specific Options-s
dir-nocompile
-print
-A
[key[=
val]]apt
directly, but are made available
for use by individual processors-factorypath
path-factory
classnameapt
Options shared with javac
-d
dir-cp
path or -classpath
path-factorypath
is given, the classpath is
not searched for factories.Consult the javac(1) man page for information on
javac
options.
Use this section to briefly mention some common ways a developer might use this tool.
Here are some examples of starting jstatd. Note that the jstatd scripts automatically start the server in the background.
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
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
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
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
Following is a SEE ALSO section taken from the
jstatd
man page.