使用ehcache元注释提高Spring 性能源码案例

ScaleAholic: Spring Performance With Annotations and Ehcache ARC

Spring 的元注释可以将方法进行缓存提高性能,下面是结合Ehcache 2.5提供ARC(资源自动管理)的一个源码案例,需要SVN check out,这个项目的download应该是Spring元注释和缓存结合的框架:

http://code.google.com/p/ehcache-spring-annotations/wiki/WeatherServiceExample

作者认为至少可以解决下面几个问题:

崩溃Crash - Out of Memory 错误 OOME错误
暂停Pause - 长时间GC垃圾回收机制会暂停你的应用,降低用户感受
浪费空间 -
微调地狱Tuning Hell -
差的性能Poor Performance -