推荐: blog.csdn.net/aquester https://github.com/eyjian https://www.cnblogs.com/aquester http://blog.chinaunix.net/uid/20682147.html
全部博文(595)
分类: Java
2015-11-04 09:04:16
Aquester2016-11-27 14:17:24
Aquester:开启远程调式端口3456,可设置断点等:
/usr/local/jdk/bin/java -Dproc_thrift2 -Xrunjdwp:transport=dt_socket,server=y,address=3456 -XX:OnOutOfMemoryError=\'kill -9 %p\' -XX:+UseConcMarkSweepGC -Dhbase.log.dir=/data/hbase/bin/../logs -Dhbase.log.file=hbase-zhangsan-thrift2-hadoop-037.log -Dhbase.home.dir=/data/hbase/bin/.. -Dhbase.id.str=zhangsan -Dhbase.root.logger=INFO,RFA -Dhbase.security.logger=INFO,RFAS org.apache.hadoop.hbase.thrift2.ThriftServer --framed --hsha --workers 10 start
jdb -attach 3456
回复 | 举报Aquester2016-11-27 14:16:06
Aquester:以pid方式时,jdb是只读的,也就不能设置断点等
开启远程调式端口3456,可设置断点等:
/usr/local/jdk/bin/java -Dproc_thrift2 -Xrunjdwp:transport=dt_socket,server=y,address=3456 -XX:OnOutOfMemoryError=\'kill -9 %p\' -XX:+UseConcMarkSweepGC -Dhbase.log.dir=/data/hbase/bin/../logs -Dhbase.log.file=hbase-zhangsan-thrift2-hadoop-037.log -Dhbase.home.dir=/data/hbase/bin/.. -Dhbase.id.str=zhangsan -Dhbase.root.logger=INFO,RFA -Dhbase.security.logger=INFO,RFAS org.apache.hadoop.hbase.thrift2.ThriftServer --framed --hsha --workers 10 start
Aquester2016-10-26 18:53:02
/usr/local/jdk/bin/java -Dproc_thrift2 -XX:OnOutOfMemoryError=\'kill -9 %p\' -XX:+UseConcMarkSweepGC -Dhbase.log.dir=/data/hbase/bin/../logs -Dhbase.log.file=hbase-gongyi-thrift2-hadoop-031.log -Dhbase.home.dir=/data/hbase/bin/.. -Dhbase.id.str=gongyi -Dhbase.root.logger=INFO,RFA -Dhbase.security.logger=INFO,RFAS -classpath `find /data/hbase/libX -name \"*.jar\"|awk \'{printf(\"%s:\", $0);}\'` org.apache.hadoop.hbase.thrift2.ThriftServer --infoport 9086 -p 9876