diff --git a/redisson/src/main/java/org/redisson/codec/Kryo5Codec.java b/redisson/src/main/java/org/redisson/codec/Kryo5Codec.java index 34d6ed989..509dc78fd 100644 --- a/redisson/src/main/java/org/redisson/codec/Kryo5Codec.java +++ b/redisson/src/main/java/org/redisson/codec/Kryo5Codec.java @@ -51,21 +51,21 @@ public class Kryo5Codec extends BaseCodec { public Kryo5Codec(ClassLoader classLoader) { - this.kryoPool = new Pool(true, false) { + this.kryoPool = new Pool(true, false, 1024) { @Override protected Kryo create() { return createKryo(classLoader); } }; - this.inputPool = new Pool(true, false) { + this.inputPool = new Pool(true, false, 512) { @Override protected Input create() { return new Input(8192); } }; - this.outputPool = new Pool(true, false) { + this.outputPool = new Pool(true, false, 512) { @Override protected Output create() { return new Output(8192, -1);