powered by Jive Software

Unable to set user cache - "Unable to parse cache.userCache.size using default value."

Hi,

I am unable to set the User cache. I’ve read the fine manual here… and even tried to find the problem it the source code with no luck.

How to configure Openfire’s caches | Ignite Realtime

If I add this property cache.userCache.size to any value (I’ve tried 2M, 5M, and 20M), I get this warning message in the logs

2014.10.29 18:12:57 org.jivesoftware.util.cache.CacheFactory - Unable to parse cache.userCache.size using default value.

I find it I set an invalid cache property, I don’t see any parsing errors in the warning log.

Using Openfire 3.9.3 on ubuntu 14.04LTS w/ mysql 5.6.19

This server was a hazelcast cluster member but I have removed that plugin for testing.

Thanks,

D

2M, 5M or 20M are not valid types.

If you want to set the userCache size to 1 MB, then you need to enter: 1048576

You need to enter the size in byte.

That isn’t the problem. I am entering numeric values, not ‘1m’.

I had already found Ivan’s followup on this link and tried entering all of these values.

How to configure Openfire’s caches | Ignite Realtime

cache.group.size = 5242880

cache.group.maxLifetime = 3600000

cache.username2roster.size = 5242880

cache.username2roster.maxLifetime = 3600000

cache.userGroup.size = 5242880

cache.userGroup.maxLifetime = 3600000

cache.userCache.size = 2097152

cache.userCache.maxLifetime = 3600000

cache.groupMeta.size = 2097152

cache.groupMeta.maxLifetime = 3600000

From what I can tell, cache.username2roster.size is the only cache size setting above that I’ve been able to modify successfully - have set it to 20242880, and the cache summary page say that the Roster cache is now 19.31M.

Trying to modify other values has not worked.

I can now also confirm that trying to modify last activity gives me the same type of message in warn.log:

2014.10.29 20:16:02 org.jivesoftware.util.cache.CacheFactory - Unable to parse cache.lastActivity.size using default value.

2014.10.29 20:16:02 org.jivesoftware.util.cache.CacheFactory - Unable to parse cache.userCache.size using default value.

My values for cache.userCache.size and cache.lastActivity.size are both 20242880.

Thanks,

D