You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by yakov <yz...@apache.org> on 2015/05/22 11:33:51 UTC
Re: Spring :issue with Connect to Ignite Server Runing on Diff
Server.
First of all, starting node in local JVM (process) is the fastest and most
reliable way to access the cluster.
As far as behavior you see, it can be observed in two cases:
1. Node you start is a data node. So, when you stop the node data can be
lost if no backups are configured for the cache (see
org.apache.ignite.configuration.CacheConfiguration#setBackups). If you start
node for short period of time, no point of making it a data node. You can
start it as a client, so it will not carry data. Just call:
Ignition.setClientMode(true);
Ignition.start(..);
2. The second possible reason is that class definitions of the objects you
put into cache are not available on remote nodes and when master node (node
initiating put and holding the definitions) exits all other nodes have to
cleanup caches. To fix this you can make your classes available on all the
nodes - just build a jar and put it to classpath of each jvm involved.
Please also turn off peer deployment which is recommended for performance -
org.apache.ignite.configuration.IgniteConfiguration#setPeerClassLoadingEnabled
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Spring-issue-with-Connect-to-Ignite-Server-Runing-on-Diff-Server-tp366p369.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Spring :issue with Connect to Ignite Server Runing on Diff
Server.
Posted by yakov <yz...@apache.org>.
Even if offheap is configured Ignite uses onheap cache to cache indexed
values to avoid extra-deserializaitons.
In your dump you have 6,625 com.toi.expresso.dto.CreativeLineItemAdslot
instances. By default
org.apache.ignite.configuration.CacheConfiguration#getSqlOnheapRowCacheSize
is 10240. Which means all your objects can be fit in cache. Try putting more
objects.
Onheap cache size should be tuned individually for each application after
getting profiling information.
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Spring-issue-with-Connect-to-Ignite-Server-Runing-on-Diff-Server-tp366p436.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Spring :issue with Connect to Ignite Server Runing on Diff
Server.
Posted by yakov <yz...@apache.org>.
As far as size you can call this method: org.apache.ignite.IgniteCache#size
When you look at your heapdump can you please trace GC roots of your data
and let me know? Can you share your heapdump somehow?
Thanks!
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Spring-issue-with-Connect-to-Ignite-Server-Runing-on-Diff-Server-tp366p395.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Spring :issue with Connect to Ignite Server Runing on Diff
Server.
Posted by yakov <yz...@apache.org>.
Please add
<property name="backups" value="1"/>
to your configuration.
Some part of your data can get to the node that you stop after and therefore
is lost. Having backup should prevent the loss.
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Spring-issue-with-Connect-to-Ignite-Server-Runing-on-Diff-Server-tp366p376.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.