I will use AOPTreecahe to do Synchronize some variable between two JBOSS...
However, I do a testing in SINGLE JBOSS FIRST .....I find that . when I use JSP to call AOPTreecache .. I find the memory continue to rise. even I try to use remove / or removeobj............ the situation haven't changed.....And I found the .(reservedCache.getMembers()) . continue to rise....Can any one help me ?
reservedCache = new TreeCacheAop();
PropertyConfigurator config = new PropertyConfigurator();
config.configure(reservedCache, "META-INF/replSync-service.xml");
reservedCache.start();
reservedCache.remove("/A/B");
reservedCache.removeObject("/A/B");
Map map = new HashMap();
map.put("A1","HELLO1");
map.put("A2","HELLO2");
reservedCache.put("/A/B",map);
System.out.println("MEMEBER(2): "+reservedCache.getMembers());
I'd recommend to try the code out in a standalone environment first before putting it into the web for easier debugging.
-Ben