- 博客(10)
- 收藏
- 关注
原创 GC信息的格式
[GC [<collector>: <starting occupancy1> -> <ending occupancy1>, <pause time1> secs] <starting occupancy3> -> <ending occupancy3>, <pause time3>
2010-10-28 16:36:09 180
原创 awk code
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
2010-10-26 17:53:46 84
原创 HBase中几个存在thread contention的地方
hbase code 0.26从thread dump的结果看出来有几个地方是会导致线程BLOCKED。"Thread-29" tid=38 daemon=false priority=5 state=BLOCKED at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion...
2010-10-25 17:10:31 150
原创 Multithreaded Hash Table
Multithreaded Hash Tablehttp://weblogs.java.net/blog/elevy/archive/2007/04/multithreaded_h_1.html
2010-10-21 15:26:10 68
原创 为什么wait()必须要在放synchronized里面?
假如你要调用某个对象的wait()方法,一般都要放在synchronized声明里面,why? 下面是答案。 Suppose d is the object we're using to invoke wait. When a thread invokes d.wait, it must own the intrinsic lock for d — otherwise an error...
2010-10-19 11:01:40 2520 4
原创 How to print stack trace in your java code?
When debugging java code, sometimes it's important to know where you come from. So you can print current stack trace to help you. 1. new Exception().printStackTrace();2. Thread.currentThread().g...
2010-10-15 10:08:37 66
原创 细说HBase怎么完成一个Get操作 (client side)
源码解析基于HBase-0.20.6。先看HTable类get()方法的code: HTable.java /** * Extracts certain cells from a given row. * @param get The object that specifies what data to fetch and from which ...
2010-10-14 14:37:33 228
原创 Hbase read performance with increasing number of client threads
在跑ycsb的时候,发现在做heavy的get操作的时候,ycsb统计的latency很大,100个thread的时候就接近100ms,而从ganglia上看hbase的“get_avg_time"这个metric发现只有20~30左右。最终查看code,发现100个thread共享同一个连接,所有Call的请求数据都走这一个连接,所以在大量请求并发时会造成拥堵,latency变大。具体看下...
2010-10-12 23:19:32 127
原创 介绍overload与override区别的文章
http://hi.baidu.com/trackofyouth/blog/item/cc720f2d050c21e28b1399e0.html
2010-10-12 11:42:56 88
原创 What are some tips for configuring HBase?
Jeff Hammerbacher 8 endorsements2 votes by Oleksiy Kovyrin and Alex KamilMuch of this content is taken from the HBase Overview [1] and the HBase Default Configur...
2010-10-11 15:42:59 124
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人