自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 Logback配置不同日志级别输出到不同文件

INFO, WARN and ERROR 输出到文件application-service.%d{yyyy-MM-dd}.logDEBUG 输出到 文件application-service-debug.%d{yyyy-MM-dd}.logTRACE 输出到文件application-service-api-trace.%d{yyyy-MM-dd}.logRotate策略:...

2019-04-17 15:44:46 1031

原创 监控 I/O

1. 判断表示顺序扫描还是索引扫描select schemaname, relname,seq_scan, idx_scan, cast(idx_scan as numeric) /(idx_scan + seq_scan) as idx_scan_pctfrom pg_stat_user_tables where (idx_scan + seq_scan) > 0order by ...

2019-04-14 14:30:06 366

原创 点子集合

1.  使用审计信息,使系统更加智能。例如,根据用户使用习惯,自动化日常工作。

2018-02-13 23:58:28 247

原创 全文索引创建

1 索引类型    Postgresql索引包括B-Tree索引,Hash索引,GIN(Generalized Inverted Index)索引。    B-Tree索引用于操作符 =, >。也可用于like pattern 'bar%'。'%bar' 不会使用索引。     Hash索引用于等值查询。使用范围很小,用处不大。     GIN索引一般用于全文索引。2 创建

2018-01-30 23:05:46 364

原创 Postgresql 索引分析

索引分析求出属于test02的所有test01的记录, 下面那种查询速度更快。表  create table test01(seq int, test01_id uuid primary key);create table test02(seq int, test02_id uuid primary key);create table test01_test02_map(seq

2018-01-14 09:59:28 858

原创 Tomcat WebSocket basic authentication

erver side code.   This sample code is based on annotation programming mode.  import java.io.IOException;import javax.websocket.OnClose;import javax.websocket.OnError;import javax.websocke

2016-12-13 15:57:18 841

转载 Full Handshake Process

The Full Handshake ProtocolThe handshake protocol is a series of sequenced messages that negotiate the security parameters of a data transfer session.Client Hello MessagesThe Client Hello

2016-11-01 17:24:15 737

转载 Java内存泄漏和内存调优

http://kohlerm.blogspot.in/2009/03/leaks-are-easy-to-find-but-memory-usage.html

2016-06-29 13:53:42 226

转载 如何分析堆的dump

http://docwiki.cisco.com/wiki/How_to_analyze_heap_dumps

2016-06-27 15:40:08 941

原创 Bug in JDK

<br />在JDK中, DocumentBuilder类的其中一个parse方法如下。<br />我认为如果在文件路径中包含如日文中文,这个函数无法正常工作。<br /><br /> <br />What do you guys think?<br /> <br /> <br />    public Documentparse(File f) throws SAXException, IOException{<br />       if (f == null) {<br />       

2011-04-06 18:00:00 250

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除