ehcache在windows下使用RMI同步时出现的问题

问题

最近的项目由于OP分配的机器没有配Redis或Mem,为了解决tomcat的集群问题,项目使用了Ehcache作为缓存.Ehcache使用RMI进行同步,但在本地测试时出现了缓存未同步的问题.最终在Ehcache的官网发现了下面这段话:

Tomcat on Windows
Any RMI listener will fail to start on Tomcat, if the installation path has spaces in it. Because the default on Windows is to install Tomcat in “Program Files”, this issue will occur by default. The workaround is to remove the spaces in your Tomcat installation path.

调整了tomcat的路径后发现缓存已经成功同步.

posted @ 2015-11-24 16:38  爪哇公民  阅读(364)  评论(0编辑  收藏  举报