# findTomcatByPs **Repository Path**: northersong/findTomcatByPs ## Basic Information - **Project Name**: findTomcatByPs - **Description**: 通过shell 远程连接服务器查看tomcat进程等信息 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2016-08-23 - **Last Updated**: 2022-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # findTomcatByPs 功能 1. 通过free -m 获取各个服务器内存信息 2. 通过ps -eo pid,%mem,command |grep www/tomcat 获取tomcat运行情况 3. 把以上信息统计写到excel。 4. 服务器通过ssh方式链接,其连接信息配置在conf.json中,支持多个服务器。 使用方法 把jar文件与conf.json配置文件放到同目录文件下。 双击jar,等待运行结束。或者在命令行中java -jar **.jar 项目地址:http://git.oschina.net/northersong/findTomcatByPs 配置文件: ``` { "saveFile" : "d:\\tomcat.xls", "services" : [ { "ip" : "192.168.12.100", "user" : "root", "passwd" : "****", "port" : 22, "remark" : "nginx服务器" } ] } ``` 生成的excel 示例:http://git.oschina.net/northersong/findTomcatByPs/blob/master/e.png jar 文件以及配置文件 示例 :http://git.oschina.net/northersong/findTomcatByPs