http://bert82503.iteye.com/blog/2152613前些天,线上出现“服务端长连接与客户端短连接引起Nginx的Writing、Active连接数过高问题”,这个是由于“服务端使用HTTPs长连接,而客户端使用短连接”引起。这几天,发现Nginx与Tomcat之间也存在同样...
分类:
其他好文 时间:
2014-12-15 11:42:05
阅读次数:
2306
在Cassandra的 system log中看到如下的log:INFO 07:17:18 Enqueuing flush of Standard1: 701845360 (33%) on-heap, 0 (0%) off-heapINFO 07:17:19 Writing Memtable-S.....
分类:
其他好文 时间:
2014-12-11 17:03:42
阅读次数:
217
ThreadLocal in Java is another way to achieve thread-safety apart from writing immutable classes. If you have been writing multi-threaded or concurrent code in Java then you must be familiar with c...
分类:
编程语言 时间:
2014-12-10 18:20:44
阅读次数:
312
参考文档:参考demo:CalendarSample.java/*
*Copyright(c)2010GoogleInc.
*
*LicensedundertheApacheLicense,Version2.0(the"License");youmaynotusethisfileexcept
*incompliancewiththeLicense.YoumayobtainacopyoftheLicenseat
*
*http://www.apache.org/licenses/LICENSE-2..
分类:
编程语言 时间:
2014-12-08 15:54:43
阅读次数:
349
fibonacci_server.cpp
/*
黄金分割数列,指的是这样一个数列:1、1、2、3、5、8、13、21、……在数学上,斐波纳契数列以如下被以递归的方法定义:F0=0,F1=1,Fn=F(n-1)+F(n-2)(n>=2,n∈N*)
*/
#include
#include //action lib
#include //从Fibonacci.action中生成的头文件,Fibon...
分类:
其他好文 时间:
2014-12-08 12:30:09
阅读次数:
246
HFileBlock官方源码注释:ReadingHFileversion 1 and 2 blocks, and writing version 2 blocks.In version 1 all blocks are always compressed or uncompressed, as sp...
分类:
其他好文 时间:
2014-12-02 22:20:25
阅读次数:
577
A checkpoint is the writing by the DBWR (database writer) process of all modified buffers in the SGA buffer cache to the database data files. Data fil...
分类:
数据库 时间:
2014-12-02 10:32:34
阅读次数:
261
apt (Debian or Ubuntu)Debian GNU/Linux and Ubuntu use the apt package manager. You can use it like this:$ sudo apt-get install ruby-fullAs of writing,...
分类:
系统相关 时间:
2014-11-30 16:40:43
阅读次数:
212
windows环境。capserjs的中文乱码使用phantom.outputEncoding="GBK";即可解决。但当我们脚本很大,需要拆分时(参考http://docs.casperjs.org/en/latest/writing_modules.html),拆分到另一文件(example.j...
分类:
Web程序 时间:
2014-11-29 22:56:05
阅读次数:
631
Thus, we arrive at the rules that all stylish Objective-C programmers follow when writing initializers:? If a class has several initializers, only one...
分类:
其他好文 时间:
2014-11-27 20:07:59
阅读次数:
153