显示下一条  |  关闭

伍哥的博客

 
 
 
 
 
 
日志评论
评论列表加载中...
 
 
 
 
 
 
 

ehcache monitor 监控

2012-1-29 17:33:09 阅读1 评论0 292012/01 Jan29

1、下载ehcache-monitor模块

http://ehcache.org/downloads/monitor

最新版:ehcache-monitor-kit-1.0.3-distribution.tar

现在下载都要注册了,开发测试免费,但是监控服务器的话,每间隔三天就要重启监控应用服务器,不然无法监控。

2、解压ehcache-monitor-kit-1.0.3-distribution.tar

把ehcache-monitor-kit-1.0.3-distribution\lib\ehcache-probe-1.0.3.jar复制到要监控的应用WEB-INF\lib\下

3、修改ehcache.xml文件,添加监控配置

<cacheManagerPeerListenerFactory

        class="org.terracotta.ehcachedx.monitor.probe.ProbePeerListenerFactory"

        properties="monitorAddress=localhost, monitorPort=9889, memoryMeasurement=true" />

作者  | 2012-1-29 17:33:09 | 阅读(1) |评论(0) | 阅读全文>>

开源DBCP、C3P0、Proxool 、 BoneCP连接池的比较

2012-1-29 11:54:28 阅读1 评论0 292012/01 Jan29

   简介  项目主页  使用评价  DBCP DBCP是一个依赖Jakarta commons-pool对象池机制的数据库连接池.DBCP可以直接的在应用程序用使用 http://commons.apache.org/dbcp/downloads.html

http://commons.apache.org/dbcp/configuration.html 可以设置最大和最小连接,连接等待时间等,基本功能都有,此连接池的持续运行的稳定性还是可以,不过速度稍慢,在大并发量的压力下稳定性有所下降,此外不提供连接池监控  C3P0  C3P0是一个开放源代码的JDBC连接池,它在lib目录中与Hibernate一起发布,包括了实现jdbc3和jdbc2扩展规范说明的Connection 和Statement 池的DataSources 对象。  http://sourceforge.net/projects/c3p0  连接池可以

作者  | 2012-1-29 11:54:28 | 阅读(1) |评论(0) | 阅读全文>>

Spring 2.5.6 新特性packagesToScan 知道怎么使用吗?

2012-1-29 11:41:52 阅读1 评论0 292012/01 Jan29

如果采用了Annotation注解方式(而非传统XML方式)配置Hibernate对象关系映射,那么在通过 org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean 配置sessionFactory时,你一定对annotatedClasses、annotatedPackages有一种说不出的郁闷,

<property name="annotatedClasses">

            <list>

                <value>com.xxx.entity.base.Country</value>

                <value>com.xxx.entity.base.Province</value>

                .......所有实体都要一个一个列出来

            </list>

</properties

新版本添加了这个参数,简单多了

首先,Spring用AntPathMatcher 来解析路径,这个好办,毕竟Ant风格的路径大家都熟

但在调用这个Matcher之前,Spring 会先将你在XML中写的路径转变成Ant风格的路径。那,是怎么转换的呢?

之前没有意识到这个问题,子目录中的实例一直扫描不到,经过试验,结论如下

<property name="packagesToScan"

作者  | 2012-1-29 11:41:52 | 阅读(1) |评论(0) | 阅读全文>>

Spring Hibernate MBean

2012-1-18 16:30:47 阅读1 评论0 182012/01 Jan18

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="

       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<bean id="MBeanExporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">

        <property name="beans">

            <map>

          

作者  | 2012-1-18 16:30:47 | 阅读(1) |评论(0) | 阅读全文>>

关于SVN的405错误

2011-12-29 11:17:27 阅读18 评论0 292011/12 Dec29

Server sent unexpected return value (405 Method Not Allowed) in response to  MKACTIVITY request for '/svn/!svn/act/b75d925f-f4dc-ad46-9dfc-d0b8c865dcb8'

系统为windows 7 + myeclipse 8.5 + googlecode ,无法提交更新

早先以为是更换密码的问题,删除C:\Users\Administrator\AppData\Roaming\TortoiseSVN\auth目录下所有目录,也无法解决,最终问题是在SVN源链接上,一种是http格式,一种是https格式,换为https再输入密码就可以提交SVN了

作者  | 2011-12-29 11:17:27 | 阅读(18) |评论(0) | 阅读全文>>

查看所有日志>>

 
 
 
 
 
 
 
 
 
 
 
下载音乐盒  曲目表歌词秀
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 我要留言
 
 
 
留言列表加载中...
 
 
 
 
 
 

天气

 
 
模块内容加载中...
 
 
 
 
 

日历

 
 
模块内容加载中...
 
 
 
 
 
 
 

福建省 福州市

 发消息  写留言

 
博客等级加载中...
今日访问加载中...
总访问量加载中...
最后登录加载中...
 
 
 
 
 
 
 
模块内容加载中...
 
 
 
 
 
 
 
博友列表加载中...
 
 
 
 
 
 
 
列表加载中...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2012

   
创建博客 登录  
 关注