简体   繁体   中英

finding active threads for regionserver(HBase)

Is there way to find all active threads to particular regionServer in Hbase? I want to see, what is causing bottleneck to particular node.

Thanks in advance .

On the RegionServer find the Java Processes of interest to you - meaning everything HBase related. The jvm ships a handy utility to do this, called 'jps'. Here is some example output:

jps -l
18863 sun.tools.jps.Jps
2584 /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar

Once you have the processes you need, use 'jstack' to get thread dumps.

jstack <pid> >> threaddump.log

Also check the HBase documentations Troubles section if your problem is already known.

For in depth investigation with jstack Eclipse.org has a nice little script for taking jstack snapshots in fixed time intervals. It may be good for investigating deadlocks (just in case this is your assumption).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM