Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE94819103 for ; Mon, 11 Apr 2016 14:26:34 +0000 (UTC) Received: (qmail 47968 invoked by uid 500); 11 Apr 2016 14:26:34 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 47702 invoked by uid 500); 11 Apr 2016 14:26:31 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 45227 invoked by uid 99); 11 Apr 2016 14:25:33 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2016 14:25:33 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id F11A7EAB6C; Mon, 11 Apr 2016 14:25:29 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vozerov@apache.org To: commits@ignite.apache.org Date: Mon, 11 Apr 2016 14:26:14 -0000 Message-Id: <7ca86512fa9c4a87844af3a2c5569b2b@git.apache.org> In-Reply-To: <15dbdc0d71374accaf29cbb3b7b59af4@git.apache.org> References: <15dbdc0d71374accaf29cbb3b7b59af4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [47/50] [abbrv] ignite git commit: IGNITE-2939 .NET: Changed default Xms/Xmx settings. Now if user doesn't specify explicit heap settings, defaults of concrete JVM will be used. This closes #598. IGNITE-2939 .NET: Changed default Xms/Xmx settings. Now if user doesn't specify explicit heap settings, defaults of concrete JVM will be used. This closes #598. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/75455f9b Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/75455f9b Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/75455f9b Branch: refs/heads/ignite-1786 Commit: 75455f9b7737e1b09243bcb877e0c84f568fb4c2 Parents: 61c547a Author: Pavel Tupitsyn Authored: Mon Apr 11 14:39:22 2016 +0300 Committer: vozerov-gridgain Committed: Mon Apr 11 14:39:22 2016 +0300 ---------------------------------------------------------------------- .../dotnet/Apache.Ignite.Core/IgniteConfiguration.cs | 6 ++++-- .../dotnet/Apache.Ignite.Core/Impl/IgniteManager.cs | 6 ++++-- .../Apache.Ignite.Examples/Compute/ClosureExample.cs | 8 +------- .../Apache.Ignite.Examples/Compute/TaskExample.cs | 11 ++--------- .../Datagrid/ContinuousQueryExample.cs | 8 +------- .../Datagrid/DataStreamerExample.cs | 12 ++---------- .../Apache.Ignite.Examples/Datagrid/LinqExample.cs | 8 +------- .../Apache.Ignite.Examples/Datagrid/PutGetExample.cs | 11 ++--------- .../Apache.Ignite.Examples/Datagrid/QueryExample.cs | 13 +++---------- .../Apache.Ignite.Examples/Datagrid/StoreExample.cs | 13 +++---------- .../Datagrid/TransactionExample.cs | 14 +++----------- .../Apache.Ignite.Examples/Events/EventsExample.cs | 12 ++---------- .../Messaging/MessagingExample.cs | 9 +-------- .../Apache.Ignite.Examples/Misc/LifecycleExample.cs | 1 - .../Services/ServicesExample.cs | 9 +-------- 15 files changed, 30 insertions(+), 111 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/Apache.Ignite.Core/IgniteConfiguration.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/IgniteConfiguration.cs b/modules/platforms/dotnet/Apache.Ignite.Core/IgniteConfiguration.cs index 56d8867..e5f6a83 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core/IgniteConfiguration.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core/IgniteConfiguration.cs @@ -48,12 +48,12 @@ /// /// Default initial JVM memory in megabytes. /// - public const int DefaultJvmInitMem = 512; + public const int DefaultJvmInitMem = -1; /// /// Default maximum JVM memory in megabytes. /// - public const int DefaultJvmMaxMem = 1024; + public const int DefaultJvmMaxMem = -1; /// /// Default metrics expire time. @@ -448,6 +448,7 @@ /// /// Initial amount of memory in megabytes given to JVM. Maps to -Xms Java option. + /// -1 maps to JVM defaults. /// Defaults to . /// [DefaultValue(DefaultJvmInitMem)] @@ -455,6 +456,7 @@ /// /// Maximum amount of memory in megabytes given to JVM. Maps to -Xmx Java option. + /// -1 maps to JVM defaults. /// Defaults to . /// [DefaultValue(DefaultJvmMaxMem)] http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/IgniteManager.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/IgniteManager.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/IgniteManager.cs index 7bd0417..05bc786 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/IgniteManager.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/IgniteManager.cs @@ -166,10 +166,12 @@ namespace Apache.Ignite.Core.Impl var jvmOpts = cfg.JvmOptions == null ? new List() : cfg.JvmOptions.ToList(); // JvmInitialMemoryMB / JvmMaxMemoryMB have lower priority than CMD_JVM_OPT - if (!jvmOpts.Any(opt => opt.StartsWith(CmdJvmMinMemJava, StringComparison.OrdinalIgnoreCase))) + 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))) + 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)); return jvmOpts; http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Compute/ClosureExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Compute/ClosureExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Compute/ClosureExample.cs index 7675b7e..875696b 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Compute/ClosureExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Compute/ClosureExample.cs @@ -45,13 +45,7 @@ namespace Apache.Ignite.Examples.Compute [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { Console.WriteLine(); Console.WriteLine(">>> Closure execution example started."); http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Compute/TaskExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Compute/TaskExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Compute/TaskExample.cs index 7934e82..d9f45f9 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Compute/TaskExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Compute/TaskExample.cs @@ -19,11 +19,10 @@ using System; using System.Collections.Generic; using Apache.Ignite.Core; using Apache.Ignite.ExamplesDll.Compute; +using Apache.Ignite.ExamplesDll.Binary; namespace Apache.Ignite.Examples.Compute { - using Apache.Ignite.ExamplesDll.Binary; - /// /// Example demonstrating task execution. /// @@ -46,13 +45,7 @@ namespace Apache.Ignite.Examples.Compute [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { Console.WriteLine(); Console.WriteLine(">>> Task execution example started."); http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/ContinuousQueryExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/ContinuousQueryExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/ContinuousQueryExample.cs index b253b3f..6bdb33f 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/ContinuousQueryExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/ContinuousQueryExample.cs @@ -50,13 +50,7 @@ namespace Apache.Ignite.Examples.Datagrid [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { Console.WriteLine(); Console.WriteLine(">>> Cache continuous query example started."); http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/DataStreamerExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/DataStreamerExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/DataStreamerExample.cs index 9315f02..25d4e8e 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/DataStreamerExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/DataStreamerExample.cs @@ -16,15 +16,13 @@ */ using System; -using System.Collections.Generic; using System.Diagnostics; using Apache.Ignite.Core; using Apache.Ignite.Core.Datastream; +using Apache.Ignite.ExamplesDll.Binary; namespace Apache.Ignite.Examples.Datagrid { - using Apache.Ignite.ExamplesDll.Binary; - /// /// Demonstrates how cache can be populated with data utilizing . /// Data streamer is a lot more efficient to use than standard cache put operation @@ -55,13 +53,7 @@ namespace Apache.Ignite.Examples.Datagrid [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { Console.WriteLine(); Console.WriteLine(">>> Cache data streamer example started."); http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/LinqExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/LinqExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/LinqExample.cs index a4dddcd..49611cf 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/LinqExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/LinqExample.cs @@ -50,13 +50,7 @@ namespace Apache.Ignite.Examples.Datagrid [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { Console.WriteLine(); Console.WriteLine(">>> Cache LINQ example started."); http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/PutGetExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/PutGetExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/PutGetExample.cs index 7d5ade6..10c6e1b 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/PutGetExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/PutGetExample.cs @@ -19,11 +19,10 @@ using System; using System.Collections.Generic; using Apache.Ignite.Core; using Apache.Ignite.Core.Binary; +using Apache.Ignite.ExamplesDll.Binary; namespace Apache.Ignite.Examples.Datagrid { - using Apache.Ignite.ExamplesDll.Binary; - /// /// This example demonstrates several put-get operations on Ignite cache /// with binary values. Note that binary object can be retrieved in @@ -52,13 +51,7 @@ namespace Apache.Ignite.Examples.Datagrid [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { Console.WriteLine(); Console.WriteLine(">>> Cache put-get example started."); http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/QueryExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/QueryExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/QueryExample.cs index c9166b2..c08a78b 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/QueryExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/QueryExample.cs @@ -19,14 +19,13 @@ using System; using System.Collections; using System.Collections.Generic; using Apache.Ignite.Core; +using Apache.Ignite.Core.Cache.Configuration; using Apache.Ignite.Core.Cache; using Apache.Ignite.Core.Cache.Query; +using Apache.Ignite.ExamplesDll.Binary; namespace Apache.Ignite.Examples.Datagrid { - using Apache.Ignite.Core.Cache.Configuration; - using Apache.Ignite.ExamplesDll.Binary; - /// /// This example populates cache with sample data and runs several SQL and /// full text queries over this data. @@ -50,13 +49,7 @@ namespace Apache.Ignite.Examples.Datagrid [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { Console.WriteLine(); Console.WriteLine(">>> Cache query example started."); http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/StoreExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/StoreExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/StoreExample.cs index e3ccecc..c95b01d 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/StoreExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/StoreExample.cs @@ -18,13 +18,12 @@ using System; using System.Collections.Generic; using Apache.Ignite.Core; +using Apache.Ignite.Core.Cache.Configuration; +using Apache.Ignite.ExamplesDll.Binary; using Apache.Ignite.ExamplesDll.Datagrid; namespace Apache.Ignite.Examples.Datagrid { - using Apache.Ignite.Core.Cache.Configuration; - using Apache.Ignite.ExamplesDll.Binary; - /// /// Example demonstrating cache store. /// @@ -50,13 +49,7 @@ namespace Apache.Ignite.Examples.Datagrid [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { Console.WriteLine(); Console.WriteLine(">>> Cache store example started."); http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/TransactionExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/TransactionExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/TransactionExample.cs index 2aa5fd7..46f871f 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/TransactionExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/TransactionExample.cs @@ -16,15 +16,13 @@ */ using System; -using System.Collections.Generic; using Apache.Ignite.Core; +using Apache.Ignite.Core.Cache.Configuration; +using Apache.Ignite.ExamplesDll.Binary; using Apache.Ignite.Core.Transactions; namespace Apache.Ignite.Examples.Datagrid { - using Apache.Ignite.Core.Cache.Configuration; - using Apache.Ignite.ExamplesDll.Binary; - /// /// This example demonstrates how to use transactions on Apache cache. /// @@ -50,13 +48,7 @@ namespace Apache.Ignite.Examples.Datagrid [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { Console.WriteLine(); Console.WriteLine(">>> Transaction example started."); http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Events/EventsExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Events/EventsExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Events/EventsExample.cs index f571db5..b19d646 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Events/EventsExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Events/EventsExample.cs @@ -16,17 +16,15 @@ */ using System; -using System.Collections.Generic; using System.Linq; using Apache.Ignite.Core; using Apache.Ignite.Core.Events; using Apache.Ignite.ExamplesDll.Compute; using Apache.Ignite.ExamplesDll.Events; +using Apache.Ignite.ExamplesDll.Binary; namespace Apache.Ignite.Examples.Events { - using Apache.Ignite.ExamplesDll.Binary; - /// /// Example demonstrating Ignite events. /// @@ -49,13 +47,7 @@ namespace Apache.Ignite.Examples.Events [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { Console.WriteLine(">>> Events example started."); Console.WriteLine(); http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Messaging/MessagingExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Messaging/MessagingExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Messaging/MessagingExample.cs index 0c94a7b..cf94d79 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Messaging/MessagingExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Messaging/MessagingExample.cs @@ -16,7 +16,6 @@ */ using System; -using System.Collections.Generic; using System.Threading; using Apache.Ignite.Core; using Apache.Ignite.ExamplesDll.Messaging; @@ -42,13 +41,7 @@ namespace Apache.Ignite.Examples.Messaging [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { var remotes = ignite.GetCluster().ForRemotes(); http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Misc/LifecycleExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Misc/LifecycleExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Misc/LifecycleExample.cs index 3dc5820..e79e729 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Misc/LifecycleExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Misc/LifecycleExample.cs @@ -51,7 +51,6 @@ namespace Apache.Ignite.Examples.Misc var cfg = new IgniteConfiguration { SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" }, LifecycleBeans = new List { lifecycleExampleBean } }; http://git-wip-us.apache.org/repos/asf/ignite/blob/75455f9b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Services/ServicesExample.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Services/ServicesExample.cs b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Services/ServicesExample.cs index c6c71dd..ae2dfa8 100644 --- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Services/ServicesExample.cs +++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Services/ServicesExample.cs @@ -16,7 +16,6 @@ */ using System; -using System.Collections.Generic; using Apache.Ignite.Core; using Apache.Ignite.ExamplesDll.Services; @@ -44,13 +43,7 @@ namespace Apache.Ignite.Examples.Services [STAThread] public static void Main() { - var cfg = new IgniteConfiguration - { - SpringConfigUrl = @"platforms\dotnet\examples\config\examples-config.xml", - JvmOptions = new List { "-Xms512m", "-Xmx512m" } - }; - - using (var ignite = Ignition.Start(cfg)) + using (var ignite = Ignition.Start(@"platforms\dotnet\examples\config\examples-config.xml")) { Console.WriteLine(">>> Services example started."); Console.WriteLine();