简单的MySQL连接池[html]view plaincopy第一个我们需要注意的属性是factory="org.apache.tomcat.jdbc.pool.DataSourceFactory".当tomcat读到type="javax.sql.DataSource"属性时会自动重新安装DBCP...
分类:
数据库 时间:
2014-09-18 18:17:14
阅读次数:
548
1、升级到XCODE5后,在ASIHttpRequest类中会提示一个警告信息:"Comparison of constant 'NSStreamEventErrorOccurred' (8) with expression of type 'NSStreamStatus' (aka 'enum N...
分类:
其他好文 时间:
2014-09-18 13:07:23
阅读次数:
210
Chapter 8 UITableView and UITableViewController1. The designated initializer of UITableViewController is initWithStyle:, which takes a constant that d...
分类:
其他好文 时间:
2014-09-18 01:59:23
阅读次数:
191
Sort a linked list in O(n log n) time using constant space complexity.记得Insert Sort List, 那个复杂度是O(N^2)的,这里要求O(nlogn),所以想到merge sort, 需要用到Merge Two Sor...
分类:
其他好文 时间:
2014-09-18 01:57:43
阅读次数:
199
/** * Method One */interface ConstantInterface { String SUNDAY = "SUNDAY"; String MONDAY = "MONDAY"; String TUESDAY = "TUESDAY"; String WEDNESDAY = "W...
分类:
编程语言 时间:
2014-09-17 23:06:43
阅读次数:
289
1. 主服务器修改配置vi /etc/ntp.confrestrict 192.168.1.0 mask 255.255.255.0 nomodify notrap #允许别的服务器同步server 0.centos.pool.ntp.org iburst #主服务器自己的同步源启动服务serv.....
分类:
其他好文 时间:
2014-09-17 18:29:42
阅读次数:
209
在数据库压力很大的情况下,重启完数据库,通过手工执行下列语句,把热数据加载到innodb_buffer_pool缓冲池中进行预热,从而避免早高峰连接数升高,程序报错。selectcount(*)fromuser;selectcount(*)from***;......在mysql5.6里为了解决上述问题,提供了一个新特性来快速预热bu..
分类:
数据库 时间:
2014-09-17 15:38:22
阅读次数:
416
CentOS:0.centos.pool.ntp.org1.centos.pool.ntp.org2.centos.pool.ntp.org国内可用的ntp.fudan.edu.cn 复旦210.72.145.44 国家守势中心服务器亚洲地区的ntp服务器Bangladesh — bd.pool.n...
分类:
其他好文 时间:
2014-09-17 13:36:12
阅读次数:
133
一、前言Java码农不识Apache,敲尽一生也枉然。旗下的开源项目众多,各个都是吊炸天。今日且说Commons,轻轻点击此链接进入ApacheCommons主页,Logging、Pool、Net、ONGL、EL、IO、DBCP、Email、Collection、Lang……等等项目中常用到的包。而这篇文章的主角Lang则是我们最常用..
分类:
其他好文 时间:
2014-09-16 19:11:51
阅读次数:
369
hive在生产环境中由于用户数量和身份的不同,难免会对用户按组进行划分,根据不同组的优先级划分hadoop资源,hadoop fairscheduler支持按用户组划分资源池,每个group对应一个组pool,然后根据pool优先级划分mapreduce资源,在map-site.xml中添加以下配置即可实现按组划分:
mapred.jobtracker.taskScheduler...
分类:
其他好文 时间:
2014-09-16 17:29:10
阅读次数:
286