Hi!
Not so easy to answer, if you also run your own code for example it will
use memory, I would suggest you create an application or a test
application, run it and see how much memory it use (just run JConsole or
something) and you will get a pretty clear view of how much you will
need, add a little to that and you should be fine, but make sure there
is enough, depending on what your application does there might be spikes
at some times and so on, give it at least 200-300mb extra space to work
with.
Each cache use heap memory (20mb or so), services use heap memory and so
on, there is no answer that fits all, looking at one of my Ignite
applications with 14 caches, 12 services it runs around 800mb heap, as I
said before have a peek at the capacity planning documentation it gives
a lot if good information on this.
Mikael
Den 2019-12-08 kl. 14:54, skrev c c:
Thanks for your reply.
I mean if we store data in off-heap memory, should give much heap
memory by setup ignite jvm start option (-XMX)? We setup
CacheConfiguration.setOnheapCacheEnabled (false) . How many memory
should we configurate for ignite jvm start option (-XMX) is enough
usually?
Mikael <[email protected] <mailto:[email protected]>>
于2019年12月8日周日 下午3:40写道:
Hi!
I would not expect any big difference, withKeepBinary allows you
to work with object without having to deserialize the entire
object and you do not need the actual class to be available, and
you can also add/remove fields from objects, but from a heap point
of view I do not think you will notice much difference, the
entries are still stored in the same way internally.
Mikael
Den 2019-12-08 kl. 04:03, skrev c c:
By reading document we know it need read object from off-heap to
on-heap when do some reads on server node. We do some timer job
that would query cache(igniteCache.withKeepBinary().query(new
ScanQuery())) , Does this operation need more on-heap memory? we
setup CacheConfiguration.setOnheapCacheEnabled (false)
And we also want to know using EntryProcessor(withKeepBinary or
not) need more on-heap memory?
c c <[email protected] <mailto:[email protected]>>
于2019年12月8日周日 上午10:24写道:
thank you very much.
Mikael <[email protected]
<mailto:[email protected]>> 于2019年12月8日周日
上午1:24写道:
Hi!
The data regions are always off-heap, you just configure
the Java heap for on-heap usage with -Xmx and so on as
usual, have a look in the ignite.sh/ignite.bat
<http://ignite.sh/ignite.bat>, it depends on how you run
your application, just configure this any way you like if
you use embedded Ignite instance, also read the section
about capacity planning.
The java heap is just for java objects, services and any
on-heap data, all caches are stored in data regions and
they are off heap and have nothing to do with -Xmx except
when you use on-heap caching.
The Ignite documentation is very good and explains all
you need to know on how to configure it.
https://apacheignite.readme.io/docs/memory-configuration#section-on-heap-caching
https://apacheignite.readme.io/docs/memory-configuration
Mikael
Den 2019-12-07 kl. 17:41, skrev c c:
HI,
According to document we can setup memory size by
org.apache.ignite.configuration.DataStorageConfiguration.
But we do not know this works for off-heap or on-heap
memory. We want to know how to setup ignite jvm startup
option(xms, xmx). Shoud jvm heap memory be great than
maxSixe in DataStorageConfiguration. We know some hot
data would be deserialized from off-heap to on-heap.
Would you mind giving me some advice? thanks very much!