nmon +java nmon Alalizy agent 动态交互监控
下载地址:1. Download and install nmon. - for linux platform, you can download form: http://nmon.sourceforge.net. - For AIX platform, you can download form : http://www.ibm.com/developerworks/wikis/display/WikiPtype/nmon , AIX 5.3 TL09+ and AIX 6.1 TL02 include nmon function within topas and its installed by default.
sourceforge地址:https://sourceforge.net/projects/jnmonanalyser/files/
#java dynamic nmon
yum install libstdc++.so.6
yum install glibc.i686
yum install ncurses-devel.i686
创建管道:这个必须是这个,当然你可以该源代码配置,
mkfifo /tmp/nmonnamedpipe
启动agent代理:
java -cp nmonanal_0.1.3.jar li.xiang.nmonanalyser.agent.Agent
启动nmon:
nmon -s 2 -c 36 -F /tmp/nmonnamedpipe
本地打开nmonanal_0.1.3.jar,链接agent所在服务,防火墙调试时最好先关闭,agent端口是8187
5. Run java nmon analyser gui. # java -jar nmonanal_0.1.2.jar 5.1 Get the real-time performance data from agent Main menu --> " Data Loader " --> "from agent". Input the target's ip address and port number(default is 8187). 5.2 Get the performance data form nmon data collection file.
如果你想中途停掉nmon就杀进程
ps -ef|grep nmon | awk '{print $2}'|xargs kill -9