13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.io.File;
25 import java.net.UnknownHostException;
26 import java.rmi.RemoteException;
27 import java.rmi.registry.LocateRegistry;
28 import java.rmi.registry.Registry;
29 import java.util.Arrays;
30
31 import jdk.test.lib.thread.ProcessThread;
32 import static jdk.testlibrary.Asserts.*;
33 import jdk.testlibrary.Utils;
34 import jdk.test.lib.JDKToolLauncher;
35 import jdk.test.lib.process.OutputAnalyzer;
36 import jdk.test.lib.process.ProcessTools;
37
38 /**
39 * The base class for tests of jstatd.
40 *
41 * The test sequence for TestJstatdDefaults for example is:
42 * <pre>
43 * {@code
44 * // start jstatd process
45 * jstatd -J-XX:+UsePerfData -J-Djava.security.policy=all.policy
46 *
47 * // run jps and verify its output
48 * jps -J-XX:+UsePerfData hostname
49 *
50 * // run jstat and verify its output
51 * jstat -J-XX:+UsePerfData -J-Duser.language=en -gcutil pid@hostname 250 5
52 *
53 * // stop jstatd process and verify that no unexpected exceptions have been thrown
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.io.File;
25 import java.net.UnknownHostException;
26 import java.rmi.RemoteException;
27 import java.rmi.registry.LocateRegistry;
28 import java.rmi.registry.Registry;
29 import java.util.Arrays;
30
31 import jdk.test.lib.thread.ProcessThread;
32 import static jdk.testlibrary.Asserts.*;
33 import jdk.test.lib.Utils;
34 import jdk.test.lib.JDKToolLauncher;
35 import jdk.test.lib.process.OutputAnalyzer;
36 import jdk.test.lib.process.ProcessTools;
37
38 /**
39 * The base class for tests of jstatd.
40 *
41 * The test sequence for TestJstatdDefaults for example is:
42 * <pre>
43 * {@code
44 * // start jstatd process
45 * jstatd -J-XX:+UsePerfData -J-Djava.security.policy=all.policy
46 *
47 * // run jps and verify its output
48 * jps -J-XX:+UsePerfData hostname
49 *
50 * // run jstat and verify its output
51 * jstat -J-XX:+UsePerfData -J-Duser.language=en -gcutil pid@hostname 250 5
52 *
53 * // stop jstatd process and verify that no unexpected exceptions have been thrown
|