jvmtop 监控

1 jar包

        <!-- -JVMTOP监控- -->
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
            <version>2.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>net.sf.jopt-simple</groupId>
            <artifactId>jopt-simple</artifactId>
            <version>4.5</version>
            <scope>compile</scope>
        </dependency>

2 使用

 window使用 运行jvmtop.bat

 liunx使用 运行 jvmtop.sh

3 eclipse 调用

  将joda-time源代码导入eclipse ,编译执行JvmTop.java ,发现报错,、

  依赖jar包 jopt-simple 和 jdk/lib/toos.jar,将其导入编译,运行JvmTop.java,在eclipse控制台显示监控信息

  

4 eclipse 二次开发

 

posted @ 2015-11-26 11:09  穿林度水  阅读(494)  评论(0编辑  收藏  举报