    @Test
    public void jstat() throws Exception {

        Map<String, JpsEntity> jps = Jps.jps();
        for (Map.Entry entity : jps.entrySet()) {
            System.out.println(entity.getKey() + " " + entity.getValue());
        }
        Object[] s = jps.keySet().toArray();
        for (Object value : s) {
            System.out.println("进程ID：" + value.toString());
            List<KVEntity> jstat = Jstat.jstatClass(value.toString());
            jstat.forEach((t) -> System.out.println(t.getKey() + ":" + t.getValue()));
            JstackEntity jstatk = Jstack.jstack(value.toString());
            System.out.println(jstatk);
        }
    }