You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Gracelin Priya <gp...@kodiakptt.com> on 2017/07/10 10:27:33 UTC

Heap Memory Limit Set

Hello,

How to limit the heap memory set during starting a new server or client node?. It is seen that when my first gridgain node is brought up heap is 25GB and next is 50GB and it increases when a server/client joins the topology.

ignite-01b06bde.0.log:[10:17:55,730][INFO][main][GridDiscoveryManager] Topology snapshot [ver=1, servers=1, clients=0, CPUs=32, heap=25.0GB]
ignite-01b06bde.0.log:[10:18:10,215][INFO][disco-event-worker-#69%null%][GridDiscoveryManager] Topology snapshot [ver=2, servers=2, clients=0, CPUs=64, heap=50.0GB]
ignite-01b06bde.0.log:[10:30:43,554][INFO][disco-event-worker-#69%null%][GridDiscoveryManager] Topology snapshot [ver=3, servers=3, clients=0, CPUs=96, heap=75.0GB]
ignite-01b06bde.0.log:[10:50:39,160][INFO][disco-event-worker-#69%null%][GridDiscoveryManager] Topology snapshot [ver=4, servers=3, clients=1, CPUs=96, heap=100.0GB]
ignite-01b06bde.0.log:[10:50:40,666][INFO][disco-event-worker-#69%null%][GridDiscoveryManager] Topology snapshot [ver=5, servers=3, clients=0, CPUs=96, heap=75.0GB]
ignite-01b06bde.0.log:[10:54:11,763][INFO][disco-event-worker-#69%null%][GridDiscoveryManager] Topology snapshot [ver=6, servers=2, clients=0, CPUs=64, heap=50.0GB]
ignite-01b06bde.0.log:[10:54:22,807][INFO][disco-event-worker-#69%null%][GridDiscoveryManager] Topology snapshot [ver=7, servers=3, clients=0, CPUs=96, heap=75.0GB]
ignite-01b06bde.0.log:[11:07:40,703][INFO][disco-event-worker-#69%null%][GridDiscoveryManager] Topology snapshot [ver=9, servers=3, clients=1, CPUs=96, heap=100.0GB]


Can someone please help me to set the value ie 10GB whenever a server node start and 5 GB for client node?

Thanks,
Priya


RE: Heap Memory Limit Set

Posted by vkulichenko <va...@gmail.com>.
Hi Priya,

I would encourage you to learn the basics about how Java heap memory works.
Basically, if you have different Xms and Xmx, JVM will start with lower
bound, and then will allocate memory as needed until upper bound is reached.
Log shows the amount of currently allocated memory.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Heap-Memory-Limit-Set-tp14560p15021.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

RE: Heap Memory Limit Set

Posted by Gracelin Priya <gp...@kodiakptt.com>.
Hi,

program which starts the gridgain as below ie have set -Xms3G -Xmx10GB. 

/usr/java/jdk1.8.0_121/bin/java -DIGNITE_QUIET=false -Xms3G -Xmx10G -classpath .:./*:/opt/GridGain/libs/*:/opt/GridGain/libs/ignite-spring/*:/opt/GridGain/libs/ignite-rest-http/*::/opt/GridGain/libs/ignite-indexing/* NodeStart

[18:44:42,727][INFO][main][GridDiscoveryManager] Topology snapshot [ver=1, servers=1, clients=0, CPUs=32, heap=8.9GB]

How is 8.9GB derived?.  Please help to understand.

Thanks,
Priya




-----Original Message-----
From: dkarachentsev [mailto:dkarachentsev@gridgain.com] 
Sent: 10 July 2017 21:25
To: user@ignite.apache.org
Subject: Re: Heap Memory Limit Set

Hi,

This value is just a sum of available heaps on JVMs on which nodes are running. You may limit each node with -Xmx10g or -Xmx5g for example.

Thanks!
-Dmitry



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Heap-Memory-Limit-Set-tp14560p14597.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

RE: Heap Memory Limit Set

Posted by Gracelin Priya <gp...@kodiakptt.com>.
Hi,

Thanks for the response. I executed the program which starts the gridgain as below ie I set -Xms3G -Xmx10GB. 

/usr/java/jdk1.8.0_121/bin/java -DIGNITE_QUIET=false -Xms3G -Xmx10G -classpath .:./*:/opt/GridGain/libs/*:/opt/GridGain/libs/ignite-spring/*:/opt/GridGain/libs/ignite-rest-http/*::/opt/GridGain/libs/ignite-indexing/* NodeStart

[18:44:42,727][INFO][main][GridDiscoveryManager] Topology snapshot [ver=1, servers=1, clients=0, CPUs=32, heap=8.9GB]

How is 8.9GB derived?. Can you please explain?

Thanks,
Priya




-----Original Message-----
From: dkarachentsev [mailto:dkarachentsev@gridgain.com] 
Sent: 10 July 2017 21:25
To: user@ignite.apache.org
Subject: Re: Heap Memory Limit Set

Hi,

This value is just a sum of available heaps on JVMs on which nodes are running. You may limit each node with -Xmx10g or -Xmx5g for example.

Thanks!
-Dmitry



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Heap-Memory-Limit-Set-tp14560p14597.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Heap Memory Limit Set

Posted by dkarachentsev <dk...@gridgain.com>.
Hi,

This value is just a sum of available heaps on JVMs on which nodes are
running. You may limit each node with -Xmx10g or -Xmx5g for example.

Thanks!
-Dmitry



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Heap-Memory-Limit-Set-tp14560p14597.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.