bas moorkens
unread,Nov 13, 2012, 8:50:50 AM11/13/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hibernate...@googlegroups.com
Hi,
I am using hibernate-memcached in an application, and on startup it loads a large quantity of objects into the memcached server.
Whenever I make the application do a request after this, it tries to find the key in memcached, but it doesnt. So it sets the key again.
This is just a test I am performing to replace the 2nd level cache from hibernate from EhCache to MemCached.
The problem is it is a lot slower then when I used Ehcache. Is this a normal effect or do I have made a configuration error somewhere?
My memcached is configured in following way:
hibernate.cache.use_second_level_cache=true
hibernate.cache.use_minimal_puts=true
hibernate.cache.provider_class=com.googlecode.hibernate.memcached.MemcachedCacheProvider
hibernate.memcached.servers= testvm:11211
hibernate.memcached.cacheTimeSeconds=720
Sample output from my memcached server instance typicly goes like this:
<30 GET com.track.model.GatewayUTCOffset:0:276273347
>30 Writing an error: Not found
>30 Writing bin response:
>30 0x81 0x00 0x00 0x00
>30 0x00 0x00 0x00 0x01
>30 0x00 0x00 0x00 0x09
>30 0x00 0x01 0x13 0x57
>30 0x00 0x00 0x00 0x00
>30 0x00 0x00 0x00 0x00
<30 Read binary protocol data:
<30 0x80 0x01 0x00 0x34
<30 0x08 0x00 0x00 0x00
<30 0x00 0x00 0x01 0xa5
<30 0x00 0x01 0x13 0x58
<30 0x00 0x00 0x00 0x00
<30 0x00 0x00 0x00 0x00
<30 SET com.track.model.GatewayUTCOffset:0:276273347 Value len is 361
>30 Writing bin response:
>30 0x81 0x01 0x00 0x00
>30 0x00 0x00 0x00 0x00
>30 0x00 0x00 0x00 0x00
>30 0x00 0x01 0x13 0x58
>30 0x00 0x00 0x00 0x00
>30 0x00 0x00 0x4e 0x2d
<30 Read binary protocol data:
<30 0x80 0x00 0x00 0x35
<30 0x00 0x00 0x00 0x00
<30 0x00 0x00 0x00 0x35
<30 0x00 0x01 0x13 0x59
<30 0x00 0x00 0x00 0x00
<30 0x00 0x00 0x00 0x00