zhangjingli35 / memcached-session-manager

Automatically exported from code.google.com/p/memcached-session-manager
0 stars 0 forks source link

Kryo strategy is making my CPU crazy! #155

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Since I've enabled the kryo serialization, I'm having a very strange behaviour 
in the machines. In the graphics attached, you can see CPU going from 50% to 
100% and back to 50% every minute.

When I run a profile using new_relic, I can observe that more than 50% of the 
machine CPU is consumed by kryo classes.

Is there any way to minimize this behaviour?

Here is my context configuration:
     <Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
        memcachedNodes="s1:myhosturl:11211"
        memcachedProtocol="binary"
        sticky="true"
        sessionBackupAsync="true"
        backupThreadCount="100"
        transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
        requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"    />

Versions I'm using:
memcached-session-manager-1.6.1.jar
memcached-session-manager-tc7-1.6.1.jar
spymemcached-2.8.0.jar
msm-kryo-serializer-1.6.2

Original issue reported on code.google.com by daniel.c...@elo7.com on 26 Dec 2012 at 5:38

Attachments:

GoogleCodeExporter commented 8 years ago
If you can identify the class being serialized that makes it slow you can write 
and use a custom kryo serializer for it. AFAICS it must be a class with an 
array field. 

Of course you can also just use the standard java serializer. 

Original comment by martin.grotzke on 27 Dec 2012 at 8:59

GoogleCodeExporter commented 8 years ago
Do you have an update on this?

Original comment by martin.grotzke on 15 Jun 2013 at 10:57

GoogleCodeExporter commented 8 years ago
Closed due to missing feedback.

Original comment by martin.grotzke on 29 Aug 2013 at 4:19