自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 struts2 convention run in embedded

Jetty (embedded)When using this plugin with Jetty in embedded mode, you need to set the following constants:

2014-10-08 18:34:59 151

原创 备忘1

参数 描述-XX:+UseSerialGCJvm运行在Client模式下的默认值,打开此开关后,使用Serial + Serial Old的收集器组合进行内存回收-XX:+UseParNewGC 打开此开关后,使用ParNew + Serial Old的收集器进行垃圾回收-XX:+UseConcMarkSweepGC 使用ParNew + CMS + Serial Old的收集器...

2014-03-26 10:34:43 152

原创 linux tune

Linux TuningTable of Contents General Approach TCP tuning UDP Tuning NIC Tuning Virtual Machine TuningThis page contains a quick reference guide for Linux 2.6+ tuning for Data Transf...

2013-08-02 00:07:41 255

原创 VisualVM监控tomcat server

设置CATALINA_TMPDIR和VisualVM的temp目录一致比如windows下面,设置环境变量CATALINA_TMPDIR=d:\temptemp=d:\temptmp=d:\temp

2013-07-21 10:20:10 140

原创 win7 wlan autoconfig不能启动的可能

NativeWifi Filter 被360杀毒隔离了。在360杀毒软件里的隔离区里找到路径在WINDOWS文件夹的文件给它还原就行了。

2013-07-19 20:40:26 769

原创 cvs->git 升级备忘

yum install git-cvs export CVSROOT=:pserver:xxx@xxx.com:/var/cvs cvs login git cvsimport -v projec

2013-05-29 20:46:20 122

原创 tcp备忘

Create/Edit Windows Registry Keys for TCP/IP Performance TuningThis topic describes how to tune Windows 2000, Windows XP, and Windows 2003 operating systems for TCP/IP performance. To add a key to t...

2013-05-16 12:02:30 134

原创 git文件删除操作

http://marshal.easymorse.com/archives/4907 转比如,项目的控制文件,一般是不上传的,现在我使用webstorm,它的.idea目录,有时候会错误的上传到远程库中。删除的步骤如下。将本地.idea目录改名,这个步骤适合于不是你push该目录,是别人上传的:mv .idea/ .idea_back如果是自己push的,可略过...

2013-04-08 13:57:05 155

原创 logback的jactor appender

抽了点时间写了一下jactor的appender,放到github上了,https://github.com/cp149/jactor-logger

2013-04-06 16:01:44 105

原创 利用Jactor提升日志系统的性能

在大型应用系统中,logger是必不可少的,但是在性能要求很高的多线程系统中,logger的I/O有时候成为性能杀手。我们简单的用一个例子说明,在10个线程中跑100次,每次记录1000行日志到文件中,代码如下:[code="java"]@Test(invocationCount=100,threadPoolSize=10) public void testLog4j() ...

2013-03-19 02:36:59 163

原创 Selenium利用xpath读取meta

By.xpath("//meta[@name='keywords' and @content='手机版']")

2012-06-07 14:29:16 1667

使用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 672

shiro的login问题

记得配置/login.action = authc千万不要配置/**=anon

2012-05-17 07:52:40 595

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 95

原创 让vmware中的win7支持8个cpu

To implement this feature:Power off the virtual machine.Right-click on the virtual machine and click Edit Settings.Click Hardware and select CPUs.Choose the number of virtual processors.Clic...

2012-05-17 07:14:58 1295

最佳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 231

空空如也

空空如也

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

TA关注的人

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