mirror of
https://gitee.com/arthas/arthas.git
synced 2024-11-30 03:07:37 +08:00
fix profiler execute make jvm crash problem. close #962
This commit is contained in:
parent
ad0a6404ba
commit
466fa406a1
@ -266,6 +266,11 @@ public class ProfilerCommand extends AnnotatedCommand {
|
||||
AsyncProfiler asyncProfiler = this.profilerInstance();
|
||||
|
||||
if (ProfilerAction.execute.equals(profilerAction)) {
|
||||
if (actionArg == null) {
|
||||
process.write("actionArg can not be empty.\n");
|
||||
status = 1;
|
||||
return;
|
||||
}
|
||||
String result = execute(asyncProfiler, this.actionArg);
|
||||
process.write(result);
|
||||
} else if (ProfilerAction.start.equals(profilerAction)) {
|
||||
|
Loading…
Reference in New Issue
Block a user