start.sh
#!/bin/bash
java -Xms512M -Xmx512M -Xss1024K -XX:PermSize=256m -XX:MaxPermSize=512m \
-cp KafkaOffsetMonitor-assembly-0.4.6-zjz.jar \
com.quantifind.kafka.offsetapp.OffsetGetterWeb \
--offsetStorage kafka \
--kafkaBrokers ip1:ports,ip2:ports,ip3:ports \
--zk ip1:ports,ip2:ports,ip3:ports \
--port 8181 \
--refresh 10.seconds \
--retain 5.days \
--dbName offsetapp_kafka 1>out.log 2>err.log &
stop.sh
#!/bin/bash
killnum=`jps | grep OffsetGetterWeb | awk '{print $1}'`
kill -9 ${killnum}
echo "OK...."
2022-03-22 21:14:08
56.02MB
kafka
1