![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
iteye_5637
这个作者很懒,什么都没留下…
展开
-
最佳database connection pool
java的数据库应用,显然少不了数据库连接池了,常见的连接池有dbcp、C3P0、Proxool,显然,这3个都已经年华老去,新锐则有BoneCP、tomcat-jdbc pool。经过实践测试(日处理数据量百万以上、60日以上的不停机运行),bonecp 0.7版和tomcat-jdbc的性能不相上下,都远强于前3个老前辈,但是bonecp 0.7在关闭connect的处理上有一定的缺陷,偶尔会...2012-05-17 07:13:59 · 175 阅读 · 0 评论 -
selenium启动firefox、chrome和IE
System.setProperty("webdriver.chrome.driver","chrome的路径"));WebDriver driver = new ChromeDriver();System.setProperty("webdriver.firefox.bin","firefox的路径"));WebDriver driver = new FirefoxDriver();...2012-05-17 07:23:26 · 60 阅读 · 0 评论 -
shiro的login问题
记得配置/login.action = authc千万不要配置/**=anon2012-05-17 07:52:40 · 545 阅读 · 0 评论 -
使用spring mobile识别pc、手机还是平板
pom中加入 org.springframework.mobile spring-mobile-device 1.0.0.RELEASEweb.xml中 deviceResolverRequestFilter org.springframework.mobile.device.DeviceResolverRequestFilter ...2012-05-18 11:08:48 · 608 阅读 · 0 评论 -
备忘1
参数 描述-XX:+UseSerialGCJvm运行在Client模式下的默认值,打开此开关后,使用Serial + Serial Old的收集器组合进行内存回收-XX:+UseParNewGC 打开此开关后,使用ParNew + Serial Old的收集器进行垃圾回收-XX:+UseConcMarkSweepGC 使用ParNew + CMS + Serial Old的收集器...原创 2014-03-26 10:34:43 · 98 阅读 · 0 评论 -
利用Jactor提升日志系统的性能
在大型应用系统中,logger是必不可少的,但是在性能要求很高的多线程系统中,logger的I/O有时候成为性能杀手。我们简单的用一个例子说明,在10个线程中跑100次,每次记录1000行日志到文件中,代码如下:[code="java"]@Test(invocationCount=100,threadPoolSize=10) public void testLog4j() ...原创 2013-03-19 02:36:59 · 130 阅读 · 0 评论 -
logback的jactor appender
抽了点时间写了一下jactor的appender,放到github上了,https://github.com/cp149/jactor-logger原创 2013-04-06 16:01:44 · 72 阅读 · 0 评论