diff --git a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java index 033bc150fa..c9e44b8a18 100644 --- a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java +++ b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java @@ -241,7 +241,7 @@ public class PerformanceReportService { List jmxContent = getJmxContent(id); String jmx = jmxContent.get(0).getJmx(); // 按照JMX顺序重新排序 - statistics.sort(Comparator.comparingInt(a -> jmx.indexOf(a.getLabel()))); + statistics.sort(Comparator.comparingInt(a -> jmx.indexOf("\"" + a.getLabel() + "\""))); // 把 total 放到最后 List total = statistics.stream() .filter(r -> StringUtils.equalsAnyIgnoreCase(r.getLabel(), "Total"))