[
https://issues.apache.org/jira/browse/IGNITE-13592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17218958#comment-17218958
]
Pavel Tupitsyn commented on IGNITE-13592:
-----------------------------------------
* Tests fail only on some recent JDK versions where cgroup limits are supported
* Both .NET and Java have the logic "Data Region Max Size = 20% of available
RAM", Java side uses {{OperatingSystemMXBean.totalPhysicalMemorySize}}, .NET
does not have a native way, so we read from /proc/meminfo
> .NET: Incorrect GetTotalPhysicalMemory result in Docker
> -------------------------------------------------------
>
> Key: IGNITE-13592
> URL: https://issues.apache.org/jira/browse/IGNITE-13592
> Project: Ignite
> Issue Type: Bug
> Components: platforms
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Major
> Labels: .NET
> Fix For: 2.10
>
>
> {{MemoryInfo.GetTotalPhysicalMemory}} uses {{/proc/meminfo}} on Linux, which
> does not take Docker memory limit into account.
> This affects:
> * {{DataRegionConfiguration.DefaultMaxSize}}
> * {{MemoryPolicyConfiguration.DefaultMaxSize}}
> The following tests fail in Docker when memory limit is set:
> * {{IgniteConfigurationTest.TestSpringXml}}
> * {{IgnitionStartTest.TestIgniteStartsFromSpringXml}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)