339 static const char* description() {
340 return "Dump a static or dynamic shared archive including all shareable classes";
341 }
342 static const char* impact() {
343 return "Medium: Pause time depends on number of loaded classes";
344 }
345 virtual void execute(DCmdSource source, TRAPS);
346 };
347 #endif // INCLUDE_CDS
348
349 // See also: thread_dump in attachListener.cpp
350 class ThreadDumpDCmd : public DCmdWithParser {
351 protected:
352 DCmdArgument<bool> _locks;
353 DCmdArgument<bool> _extended;
354 public:
355 static int num_arguments() { return 2; }
356 ThreadDumpDCmd(outputStream* output, bool heap);
357 static const char* name() { return "Thread.print"; }
358 static const char* description() {
359 return "Print all threads with stacktraces.";
360 }
361 static const char* impact() {
362 return "Medium: Depends on the number of threads.";
363 }
364 virtual void execute(DCmdSource source, TRAPS);
365 };
366
367 // Enhanced JMX Agent support
368
369 class JMXStartRemoteDCmd : public DCmdWithParser {
370
371 // Explicitly list all properties that could be
372 // passed to Agent.startRemoteManagementAgent()
373 // com.sun.management is omitted
374
375 DCmdArgument<char *> _config_file;
376 DCmdArgument<char *> _jmxremote_host;
377 DCmdArgument<char *> _jmxremote_port;
378 DCmdArgument<char *> _jmxremote_rmi_port;
379 DCmdArgument<char *> _jmxremote_ssl;
|
339 static const char* description() {
340 return "Dump a static or dynamic shared archive including all shareable classes";
341 }
342 static const char* impact() {
343 return "Medium: Pause time depends on number of loaded classes";
344 }
345 virtual void execute(DCmdSource source, TRAPS);
346 };
347 #endif // INCLUDE_CDS
348
349 // See also: thread_dump in attachListener.cpp
350 class ThreadDumpDCmd : public DCmdWithParser {
351 protected:
352 DCmdArgument<bool> _locks;
353 DCmdArgument<bool> _extended;
354 public:
355 static int num_arguments() { return 2; }
356 ThreadDumpDCmd(outputStream* output, bool heap);
357 static const char* name() { return "Thread.print"; }
358 static const char* description() {
359 return "Print all platform threads with stacktraces.";
360 }
361 static const char* impact() {
362 return "Medium: Depends on the number of threads.";
363 }
364 virtual void execute(DCmdSource source, TRAPS);
365 };
366
367 // Enhanced JMX Agent support
368
369 class JMXStartRemoteDCmd : public DCmdWithParser {
370
371 // Explicitly list all properties that could be
372 // passed to Agent.startRemoteManagementAgent()
373 // com.sun.management is omitted
374
375 DCmdArgument<char *> _config_file;
376 DCmdArgument<char *> _jmxremote_host;
377 DCmdArgument<char *> _jmxremote_port;
378 DCmdArgument<char *> _jmxremote_rmi_port;
379 DCmdArgument<char *> _jmxremote_ssl;
|