`
puyd123
  • 浏览: 20690 次
社区版块
存档分类
最新评论
文章列表
Jetty (embedded) When using this plugin with Jetty in embedded mode, you need to set the following constants: <constant name="struts.convention.exclude.parentClassLoader" value="false" /> <constant name="struts.convention.action.fileProtocols" value="jar,c ...

备忘1

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

linux tune

Linux Tuning Table of Contents General Approach TCP tuning UDP Tuning NIC Tuning Virtual Machine Tuning This page contains a quick reference guide for Linux 2.6+ tuning for Data Transfer hosts connected at speeds of 1Gbps or higher. Note that most of the tuning settings described here will act ...
设置CATALINA_TMPDIR和VisualVM的temp目录一致 比如windows下面,设置环境变量 CATALINA_TMPDIR=d:\temp temp=d:\temp tmp=d:\temp
NativeWifi Filter 被360杀毒隔离了。 在360杀毒软件里的隔离区里找到路径在WINDOWS文件夹的文件给它还原就行了。

cvs->git 升级备忘

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

tcp备忘

Create/Edit Windows Registry Keys for TCP/IP Performance Tuning This topic describes how to tune Windows 2000, Windows XP, and Windows 2003 operating systems for TCP/IP performance. To add a key to the registry, you can either edit it directly as described below or create and execute a .reg file. Whe ...

git文件删除操作

    博客分类:
  • git
http://marshal.easymorse.com/archives/4907 转 比如,项目的控制文件,一般是不上传的,现在我使用webstorm,它的.idea目录,有时候会错误的上传到远程库中。 删除的步骤如下。 将本地.idea目录改名,这个步骤适合于不是你push该目录,是别人上传的: mv .idea/ .idea_back 如果是自己push的,可略过上面步骤。 删除.idea目录下文件: git rm .idea/* -r 然后commit: git commit -a -m ‘remove .idea’ 再次push就可以了: git push -u ...
抽了点时间写了一下jactor的appender,放到github上了,https://github.com/cp149/jactor-logger
在大型应用系统中,logger是必不可少的,但是在性能要求很高的多线程系统中,logger的I/O有时候成为性能杀手。我们简单的用一个例子说明,在10个线程中跑100次,每次记录1000行日志到文件中, 代码如下: @Test(invocationCount=100,threadPoolSize=10) public void testLog4j() { for(int i=0;i<1000;i++) logger.info("log4j I am ok "+i+" at thread"+Thread.cu ...
By.xpath("//meta[@name='keywords' and @content='手机版']")
pom中加入 <dependency> <groupId>org.springframework.mobile</groupId> <artifactId>spring-mobile-device</artifactId> <version>1.0.0.RELEASE</version> </dependency> web.xml中 <filter> <filter-name>deviceResolverRequestFilter</filter-n ...

shiro的login问题

    博客分类:
  • java
记得配置 /login.action = authc 千万不要配置 /**=anon
System.setProperty("webdriver.chrome.driver","chrome的路径")); WebDriver driver = new ChromeDriver(); System.setProperty("webdriver.firefox.bin","firefox的路径")); WebDriver driver = new FirefoxDriver(); DesiredCapabilities ieCapabilities = DesiredCapabilities.inter ...
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. Click the Options tab. Click General, in the Advanced options section. Click Configuration Parameters. Include ...
Global site tag (gtag.js) - Google Analytics