wget https://github.com/patric-r/jvmtop/releases/download/0.8.0/jvmtop-0.8.0.tar.gz
tar -xzvf jvmtop-0.8.0.tar.gz
cd jvmtop-0.8.0
Run the target system, write down the pid number
You can get the pid value of zookeeper by running cat $zookeeper_data/zookeeper_server.pid, cassandra by running pgrep -u "$USER" -f cassandra. You need to get the pid value of hdfs and hbase manually using ps command.
- Modify the pid and out_file variable
run.sh - Run the workload. You can use the throughput workload.
- Run immediately after the workload starts.
./run.sh
- Kill
run.shby usingCTRL+Cimmediately after the workload has finished - Modify path_raw in
raw.pyusing the same file as out_file inrun.sh. Also modify the path variable inraw.pyfor the output. This python script will filter the output of the run.sh
python3 raw.py
- Modify path in
logparser.pyusing the same value as path inraw.py. This script will calculate the average of the cpu and memory usage
python3 logparser.py