摘要: 1 内存分析1.1 jmap -histo 命令pid=`jps | awk '{if ($2 == "Jps") print $1}'`jmap -histo $pid >>1.txt 查看pid中类的内存占用num #instances(实例数) #bytes(占用字节) class name 阅读全文
posted @ 2014-09-28 15:40 谭志宇 阅读(8689) 评论(0) 推荐(0) 编辑
摘要: package CreateGroup;import java.io.IOException;import java.util.List;import java.util.concurrent.CountDownLatch;import org.apache.zookeeper.AsyncCallb... 阅读全文
posted @ 2014-09-28 09:37 谭志宇 阅读(7381) 评论(0) 推荐(0) 编辑
摘要: 3 常用命令3.1. 启动ZK服务: bin/zkServer.sh start3.2. 查看ZK服务状态: bin/zkServer.sh status3.3 停止ZK服务: bin/zkServer.sh stop3.4. 重启ZK服务: bin/zkServer.sh restart 3.5 ... 阅读全文
posted @ 2014-09-28 09:26 谭志宇 阅读(24143) 评论(0) 推荐(0) 编辑