modules/platforms/dotnet/Apache.Ignite.Core/Impl/IgniteManager.cs
/// <summary>
/// Gets JvmOptions collection merged with individual properties (Min/Max mem, etc) according to priority.
/// </summary>
Gets JvmOptions collection merged with individual properties (Min/Max mem, etc) according to priority.
Gets JvmOptions collection merged with individual properties ( Min / Max mem etc ) according to priority .
private static IList<string> GetMergedJvmOptions(IgniteConfiguration cfg)
        {
            var jvmOpts = cfg.JvmOptions == null ? new List<string>() : cfg.JvmOptions.ToList();
            if (!jvmOpts.Any(opt => opt.StartsWith(CmdJvmMinMemJava, StringComparison.OrdinalIgnoreCase)) &&
                cfg.JvmInitialMemoryMb != IgniteConfiguration.DefaultJvmInitMem)
                jvmOpts.Add(string.Format(CultureInfo.InvariantCulture, "{0}{1}m", CmdJvmMinMemJava, cfg.JvmInitialMemoryMb));
            if (!jvmOpts.Any(opt => opt.StartsWith(CmdJvmMaxMemJava, StringComparison.OrdinalIgnoreCase)) &&
                cfg.JvmMaxMemoryMb != IgniteConfiguration.DefaultJvmMaxMem)
                jvmOpts.Add(string.Format(CultureInfo.InvariantCulture, "{0}{1}m", CmdJvmMaxMemJava, cfg.JvmMaxMemoryMb));
            if (!jvmOpts.Any(opt => opt.StartsWith(CmdJvmFileEncoding, StringComparison.Ordinal)))
                jvmOpts.Add(string.Format(CultureInfo.InvariantCulture, "{0}UTF-8", CmdJvmFileEncoding));
            return jvmOpts;
        }
private static IList < string > GetMergedJvmOptions ( IgniteConfiguration cfg ) { var jvmOpts = cfg . JvmOptions == null ? new List < string > ( ) : cfg . JvmOptions . ToList ( ) ; if ( ! jvmOpts . Any ( opt => opt . StartsWith ( CmdJvmMinMemJava , StringComparison . OrdinalIgnoreCase ) ) && cfg . JvmInitialMemoryMb != IgniteConfiguration . DefaultJvmInitMem ) jvmOpts . Add ( string . Format ( CultureInfo . InvariantCulture , " " , CmdJvmMinMemJava , cfg . JvmInitialMemoryMb ) ) ; if ( ! jvmOpts . Any ( opt => opt . StartsWith ( CmdJvmMaxMemJava , StringComparison . OrdinalIgnoreCase ) ) && cfg . JvmMaxMemoryMb != IgniteConfiguration . DefaultJvmMaxMem ) jvmOpts . Add ( string . Format ( CultureInfo . InvariantCulture , " " , CmdJvmMaxMemJava , cfg . JvmMaxMemoryMb ) ) ; if ( ! jvmOpts . Any ( opt => opt . StartsWith ( CmdJvmFileEncoding , StringComparison . Ordinal ) ) ) jvmOpts . Add ( string . Format ( CultureInfo . InvariantCulture , " " , CmdJvmFileEncoding ) ) ; return jvmOpts ; }
Gets JvmOptions collection merged with individual properties (Min/Max mem, etc) according to priority.
Gets JvmOptions collection merged with individual properties ( Min / Max mem etc ) according to priority .
// JvmInitialMemoryMB / JvmMaxMemoryMB have lower priority than CMD_JVM_OPT
cfg
IgniteConfiguration