How to increase Heap Space for Ignite Server in .Net Core?

classic Classic list List threaded Threaded
3 messages Options
siva siva
Reply | Threaded
Open this post in threaded view
|

How to increase Heap Space for Ignite Server in .Net Core?

This post was updated on .
Hi,
I am using Apache Ignite 2.7.5 And .net core v2.2.103.

While loading data through .net core client getting Java Heap Space Exception.so
for that i am trying to set more heap space.

I have tried to set Heap space from command line with running exe by using
below command.

C:\igniteapp\IgniteApp\bin\Release\netcoreapp2.2\win10-x64\publish>IgniteApp.exe
-server -Xms10g -Xmx15g -XX:+AlwaysPreTouch -XX:+UseG1GC
-XX:+ScavengeBeforeFullGC -XX:+DisableExplicitGC -J-Xms8g -J-Xmx30g

but Heap size is not Increasing.

[02:45:33] Topology snapshot [ver=1, locNode=115679d9, servers=1, clients=0,
state=INACTIVE, CPUs=16, offheap=11.0GB, heap=12.0GB]

Please Anyone help me.









--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Alexandr Shapkin Alexandr Shapkin
Reply | Threaded
Open this post in threaded view
|

RE: How to increase Heap Space for Ignite Server in .Net Core?

Hi, 

You can pass JVM arguments only to official standalone executable that actually takes care of the CLI arguments you provided. 
More information here 
https://apacheignite-net.readme.io/docs/standalone-nodes#section-configuring-standalone-node-via-command-line
  
For your IgniteApp.exe you have several options: 

1) App.config 

  <igniteConfiguration xmlns="
http://ignite.apache.org/schema/dotnet/IgniteConfigurationSection">
    <JvmOptions>
      <string>-Xms8g</string>
      <string>-Xmx30g</string>
      ... 
    </JvmOptions>

2) Code 

var config = new IgniteConfiguration 

    JvmOptions = new List<string> {"-XX:+UseG1GC", "-XX:+DisableExplicitGC", "-Xms8g", 
    ... 
}

 

 

From: [hidden email]
Sent: Thursday, July 4, 2019 8:18 AM
To: [hidden email]
Subject: How to increase Heap Space for Ignite Server in .Net Core?

 

Hi,

I am using Apache Ignite 2.7.5 And .net core v2.2.103.

 

While loading data through .net core client heap space getting increase.so

for that i am trying to set more heap space.

 

I have tried to set Heap space from command line with running exe by using

below command.

 

C:\igniteapp\IgniteApp\bin\Release\netcoreapp2.2\win10-x64\publish>IgniteApp.exe

-server -Xms10g -Xmx15g -XX:+AlwaysPreTouch -XX:+UseG1GC

-XX:+ScavengeBeforeFullGC -XX:+DisableExplicitGC -J-Xms8g -J-Xmx30g

 

but it is not applying to application.

 

[02:45:33] Topology snapshot [ver=1, locNode=115679d9, servers=1, clients=0,

state=INACTIVE, CPUs=16, offheap=11.0GB, heap=12.0GB]

 

Please Anyone help me.

 

 

 

 

 

 

 

 

 

--

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

 

Alex Shapkin
siva siva
Reply | Threaded
Open this post in threaded view
|

RE: How to increase Heap Space for Ignite Server in .Net Core?

Yeah,exactly i have passed properties from vm arguments.it's working.

Thank You.



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