diff --git a/core/src/main/java/com/taobao/arthas/core/command/view/TraceView.java b/core/src/main/java/com/taobao/arthas/core/command/view/TraceView.java index 65e92ad3e..89fa45a52 100644 --- a/core/src/main/java/com/taobao/arthas/core/command/view/TraceView.java +++ b/core/src/main/java/com/taobao/arthas/core/command/view/TraceView.java @@ -89,10 +89,10 @@ public class TraceView extends ResultView { //render thread info ThreadNode threadNode = (ThreadNode) node; //ts=2020-04-29 10:34:00;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@18b4aac2 - sb.append(format("ts=%s;thread_name=%s;id=%s;is_daemon=%s;priority=%d;TCCL=%s", + sb.append(format("ts=%s;thread_name=%s;id=%d;is_daemon=%s;priority=%d;TCCL=%s", DateUtils.formatDate(threadNode.getTimestamp()), threadNode.getThreadName(), - Long.toHexString(threadNode.getThreadId()), + threadNode.getThreadId(), threadNode.isDaemon(), threadNode.getPriority(), threadNode.getClassloader())); diff --git a/core/src/main/java/com/taobao/arthas/core/util/ThreadUtil.java b/core/src/main/java/com/taobao/arthas/core/util/ThreadUtil.java index 1a8746de7..b709857cb 100644 --- a/core/src/main/java/com/taobao/arthas/core/util/ThreadUtil.java +++ b/core/src/main/java/com/taobao/arthas/core/util/ThreadUtil.java @@ -399,7 +399,7 @@ abstract public class ThreadUtil { public static StackModel getThreadStackModel(ClassLoader loader, Thread currentThread) { StackModel stackModel = new StackModel(); stackModel.setThreadName(currentThread.getName()); - stackModel.setThreadId(Long.toHexString(currentThread.getId())); + stackModel.setThreadId(Long.toString(currentThread.getId())); stackModel.setDaemon(currentThread.isDaemon()); stackModel.setPriority(currentThread.getPriority()); stackModel.setClassloader(getTCCL(currentThread));