目前想到的就是拿个 cron 定时任务去拉 shell 脚本 netstat 一下 tomcat 监听的端口,以及 mysqladmin 一下看看 Threads 还有 query per seconds。有没有什么更优雅的方式呢?