You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Lokesh Sharma <lo...@gmail.com> on 2018/10/17 10:23:02 UTC

Ignite complains for low heap memory

When Ignite boots up, it initially complains that only "188 MB is
available":

2018-10-17 15:44:12.295  WARN 15129 --- [    pub-#22%cm%]
> o.apache.ignite.internal.GridDiagnostic  : Initial heap size is 188MB
> (should be no less than 512MB, use -Xms512m -Xmx512m).
> [15:44:12] Initial heap size is 188MB (should be no less than 512MB, use
> -Xms512m -Xmx512m).
> [15:44:12] Configured plugins:
> [15:44:12]   ^-- None
> [15:44:12]
> [15:44:12] Configured failure handler: [hnd=StopNodeOrHaltFailureHandler
> [tryStop=false, timeout=0]]


But milli seconds later it says heap size is 2 GB.

[15:44:18] Ignite node started OK (id=bfcfa993, instance name=cm)
> [15:44:18] Topology snapshot [ver=1, servers=1, clients=0, CPUs=8,
> offheap=2.0GB, heap=2.6GB]
> [15:44:18]   ^-- Node [id=BFCFA993-069C-44B5-9B7B-778A7C1EAC00,
> clusterState=ACTIVE]
> [15:44:18] Data Regions Configured:
> [15:44:18]   ^-- default [initSize=512.0 MiB, maxSize=1000.0 MiB,
> persistenceEnabled=false]
> [15:44:18]   ^-- Buffer_Region [initSize=512.0 MiB, maxSize=1000.0 MiB,
> persistenceEnabled=false]


So, is the heap size "188 MB" or "2 GB"?

Re: Ignite complains for low heap memory

Posted by Lokesh Sharma <lo...@gmail.com>.
Thanks! It works.

On Wed, Oct 17, 2018 at 4:46 PM Stanislav Lukyanov <st...@gmail.com>
wrote:

> Put your -X* options before -jar. That’s how java command line works.
>
>
>
> Stan
>
>
>
> *From: *Lokesh Sharma <lo...@gmail.com>
> *Sent: *17 октября 2018 г. 14:08
> *To: *user@ignite.apache.org
> *Subject: *Re: Ignite complains for low heap memory
>
>
>
> I get the same output in the logs when I run the application with Xms set
> to 2 GB. I ran this command:
>
>
>
> java -jar target/cm.jar -Xms2024m -Xmx4024m
>
>
>
> On Wed, Oct 17, 2018 at 4:26 PM aealexsandrov <ae...@gmail.com>
> wrote:
>
> Hi,
>
> The heap metrics that you see in topology message shows the max heap value
> that your cluster can use:
>
> Math.max(m.getHeapMemoryInitialized(), m.getHeapMemoryMaximum()
>
> Initial heap size (-Xms ) is different from the maximum (-Xmx). Your JVM
> will be started with Xms amount of memory and will be able to use a maximum
> of Xmx amount of memory.
>
> Looks like Ignite has the recommendation to set Xms to at least 512mb.
> About JVM tunning you can read here:
>
> https://apacheignite.readme.io/docs/jvm-and-system-tuning
>
> BR,
> Andrei
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
>
>

RE: Ignite complains for low heap memory

Posted by Stanislav Lukyanov <st...@gmail.com>.
Put your -X* options before -jar. That’s how java command line works.

Stan

From: Lokesh Sharma
Sent: 17 октября 2018 г. 14:08
To: user@ignite.apache.org
Subject: Re: Ignite complains for low heap memory

I get the same output in the logs when I run the application with Xms set to 2 GB. I ran this command:

java -jar target/cm.jar -Xms2024m -Xmx4024m

On Wed, Oct 17, 2018 at 4:26 PM aealexsandrov <ae...@gmail.com> wrote:
Hi,

The heap metrics that you see in topology message shows the max heap value
that your cluster can use:

Math.max(m.getHeapMemoryInitialized(), m.getHeapMemoryMaximum()

Initial heap size (-Xms ) is different from the maximum (-Xmx). Your JVM
will be started with Xms amount of memory and will be able to use a maximum
of Xmx amount of memory.

Looks like Ignite has the recommendation to set Xms to at least 512mb. 
About JVM tunning you can read here:

https://apacheignite.readme.io/docs/jvm-and-system-tuning

BR,
Andrei 



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite complains for low heap memory

Posted by Lokesh Sharma <lo...@gmail.com>.
I get the same output in the logs when I run the application with Xms set
to 2 GB. I ran this command:

java -jar target/cm.jar -Xms2024m -Xmx4024m


On Wed, Oct 17, 2018 at 4:26 PM aealexsandrov <ae...@gmail.com>
wrote:

> Hi,
>
> The heap metrics that you see in topology message shows the max heap value
> that your cluster can use:
>
> Math.max(m.getHeapMemoryInitialized(), m.getHeapMemoryMaximum()
>
> Initial heap size (-Xms ) is different from the maximum (-Xmx). Your JVM
> will be started with Xms amount of memory and will be able to use a maximum
> of Xmx amount of memory.
>
> Looks like Ignite has the recommendation to set Xms to at least 512mb.
> About JVM tunning you can read here:
>
> https://apacheignite.readme.io/docs/jvm-and-system-tuning
>
> BR,
> Andrei
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Ignite complains for low heap memory

Posted by aealexsandrov <ae...@gmail.com>.
Hi,

The heap metrics that you see in topology message shows the max heap value
that your cluster can use:

Math.max(m.getHeapMemoryInitialized(), m.getHeapMemoryMaximum()

Initial heap size (-Xms ) is different from the maximum (-Xmx). Your JVM
will be started with Xms amount of memory and will be able to use a maximum
of Xmx amount of memory.

Looks like Ignite has the recommendation to set Xms to at least 512mb. 
About JVM tunning you can read here:

https://apacheignite.readme.io/docs/jvm-and-system-tuning

BR,
Andrei 



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite complains for low heap memory

Posted by Lokesh Sharma <lo...@gmail.com>.
*Typo Correction: The later heap size is 2.6 GB not 2 GB.

On Wed, Oct 17, 2018 at 3:53 PM Lokesh Sharma <lo...@gmail.com>
wrote:

> When Ignite boots up, it initially complains that only "188 MB is
> available":
>
> 2018-10-17 15:44:12.295  WARN 15129 --- [    pub-#22%cm%]
>> o.apache.ignite.internal.GridDiagnostic  : Initial heap size is 188MB
>> (should be no less than 512MB, use -Xms512m -Xmx512m).
>> [15:44:12] Initial heap size is 188MB (should be no less than 512MB, use
>> -Xms512m -Xmx512m).
>> [15:44:12] Configured plugins:
>> [15:44:12]   ^-- None
>> [15:44:12]
>> [15:44:12] Configured failure handler: [hnd=StopNodeOrHaltFailureHandler
>> [tryStop=false, timeout=0]]
>
>
> But milli seconds later it says heap size is 2 GB.
>
> [15:44:18] Ignite node started OK (id=bfcfa993, instance name=cm)
>> [15:44:18] Topology snapshot [ver=1, servers=1, clients=0, CPUs=8,
>> offheap=2.0GB, heap=2.6GB]
>> [15:44:18]   ^-- Node [id=BFCFA993-069C-44B5-9B7B-778A7C1EAC00,
>> clusterState=ACTIVE]
>> [15:44:18] Data Regions Configured:
>> [15:44:18]   ^-- default [initSize=512.0 MiB, maxSize=1000.0 MiB,
>> persistenceEnabled=false]
>> [15:44:18]   ^-- Buffer_Region [initSize=512.0 MiB, maxSize=1000.0 MiB,
>> persistenceEnabled=false]
>
>
> So, is the heap size "188 MB" or "2 GB"?
>