Additionally information: I have serialized objects as values and
the size varies. I assumed the value in a ChronicleMap can
generally be any size?
--
You received this message because you are subscribed to a topic in the Google Groups "Chronicle" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/java-chronicle/wASWElvC3zM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to java-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Martin Petzold (CEO and Co-Founder) TAVLA SCE mbH i.G. c/o GATEWAY - Universität zu Köln Ägidiusstr. 14 50937 Cologne Germany Phone: +49 (0)221 / 470 - 1128 Mobile: +49 (0)179 / 9220154 E-Mail: martin....@tavla.de Web: www.tavla.de
Additionally information: I have serialized objects as values and the size varies. I assumed the value in a ChronicleMap can generally be any size?
I have currently set averageValueSize to 256, no idea how to determine a suitable value for serialized objects of arbitrary size. Maybe I would be able to guess a maximum size, but I would like the Map to work in any case.
Am 19.11.16 um 17:47 schrieb Martin Petzold:
Could not find any information about this. What does this Exception actually mean:
Caused by: java.lang.IllegalArgumentException: Entry is too large: requires 161 chucks, 129 is maximum.
at net.openhft.chronicle.map.impl.CompiledMapQueryContext.allocReturnCode(CompiledMapQueryContext.java:1760)
at net.openhft.chronicle.map.impl.CompiledMapQueryContext.allocReturnCodeGuarded(CompiledMapQueryContext.java:120)
at net.openhft.chronicle.map.impl.CompiledMapQueryContext.alloc(CompiledMapQueryContext.java:3006)
at net.openhft.chronicle.map.impl.CompiledMapQueryContext.initEntryAndKey(CompiledMapQueryContext.java:3436)
at net.openhft.chronicle.map.impl.CompiledMapQueryContext.putEntry(CompiledMapQueryContext.java:3891)
at net.openhft.chronicle.map.impl.CompiledMapQueryContext.doInsert(CompiledMapQueryContext.java:4080)
at net.openhft.chronicle.map.MapEntryOperations.insert(MapEntryOperations.java:157)
at net.openhft.chronicle.map.impl.CompiledMapQueryContext.insert(CompiledMapQueryContext.java:4051)
at net.openhft.chronicle.map.MapMethods.put(MapMethods.java:89)
at net.openhft.chronicle.map.VanillaChronicleMap.put(VanillaChronicleMap.java:567)
Thanks!
--
You received this message because you are subscribed to a topic in the Google Groups "Chronicle" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/java-chronicle/wASWElvC3zM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to java-chronicle+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Martin Petzold (CEO and Co-Founder) TAVLA SCE mbH i.G. c/o GATEWAY - Universität zu Köln Ägidiusstr. 14 50937 Cologne Germany Phone: +49 (0)221 / 470 - 1128 Mobile: +49 (0)179 / 9220154 E-Mail: martin....@tavla.de Web: www.tavla.de
--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.
Thanks, I will consider a custom serializer or
java.io.Externalizable to improve performance later. In my case I
don't have a very large amount of data, but need key-value
structure, data persistence and very high performance on random
data access. However, my values are neither fixed nor
estimable in size, so I need to know if there is an upper limit
for value size in ChronicleMap, which seems to be the case?
Example: A value is a String, mostly between 1 and 100
characters. But it can happen that it is 500 or 100.000
characters.
To unsubscribe from this group and all its topics, send an email to java-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ok, thanks. I will make sure that a value is never bigger than
the whole allocation space. However, does ChronicleMap also resize
dynamically in case there are more entries than defined initially?
To unsubscribe from this group and all its topics, send an email to java-chronicl...@googlegroups.com.