You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2022/12/15 19:31:59 UTC
[ignite] branch master updated: IGNITE-18417 .NET: Reduce memory usage in tests (#10443)
This is an automated email from the ASF dual-hosted git repository.
ptupitsyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 0c3f3041c9b IGNITE-18417 .NET: Reduce memory usage in tests (#10443)
0c3f3041c9b is described below
commit 0c3f3041c9bd57640742035190d951ad8f4bd599
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Thu Dec 15 22:31:49 2022 +0300
IGNITE-18417 .NET: Reduce memory usage in tests (#10443)
---
.../dotnet/Apache.Ignite.Core.Tests/TestUtils.cs | 33 +++++++++-------------
modules/platforms/dotnet/examples/Shared/Utils.cs | 3 +-
2 files changed, 15 insertions(+), 21 deletions(-)
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/TestUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/TestUtils.cs
index aae8f6e5a38..4ec057d513d 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/TestUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/TestUtils.cs
@@ -72,27 +72,20 @@ namespace Apache.Ignite.Core.Tests
// ReSharper disable once AssignNullToNotNullAttribute
Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "ignite_work");
+ private static readonly IList<string> TestJvmOptsCommon = new List<string>
+ {
+ "-XX:+HeapDumpOnOutOfMemoryError",
+ "-ea",
+ "-DIGNITE_QUIET=true",
+ "-Duser.timezone=UTC",
+ "-DIGNITE_UPDATE_NOTIFIER=false"
+ };
+
/** */
- private static readonly IList<string> TestJvmOpts = Environment.Is64BitProcess
- ? new List<string>
- {
- "-XX:+HeapDumpOnOutOfMemoryError",
- "-Xms4g",
- "-Xmx7g",
- "-ea",
- "-DIGNITE_QUIET=true",
- "-Duser.timezone=UTC"
- }
- : new List<string>
- {
- "-XX:+HeapDumpOnOutOfMemoryError",
- "-Xms64m",
- "-Xmx99m",
- "-ea",
- "-DIGNITE_ATOMIC_CACHE_DELETE_HISTORY_SIZE=1000",
- "-DIGNITE_QUIET=true",
- "-Duser.timezone=UTC"
- };
+ private static readonly IList<string> TestJvmOpts = (Environment.Is64BitProcess
+ ? new[] { "-Xms2g", "-Xmx2g" }
+ : new[] { "-Xms64m", "-Xmx99m", "-DIGNITE_ATOMIC_CACHE_DELETE_HISTORY_SIZE=1000" })
+ .Concat(TestJvmOptsCommon).ToList();
/** */
private static readonly IList<string> JvmDebugOpts =
diff --git a/modules/platforms/dotnet/examples/Shared/Utils.cs b/modules/platforms/dotnet/examples/Shared/Utils.cs
index e3d68066e91..cae754b47d3 100644
--- a/modules/platforms/dotnet/examples/Shared/Utils.cs
+++ b/modules/platforms/dotnet/examples/Shared/Utils.cs
@@ -68,7 +68,8 @@ namespace Apache.Ignite.Examples.Shared
JvmOptions = new[]
{
"-DIGNITE_QUIET=true",
- "-DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true"
+ "-DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true",
+ "-DIGNITE_UPDATE_NOTIFIER=false"
},
Logger = new ConsoleLogger
{