IGNITE-6182: Improved message. (cherry picked from commit 1fb2fe0)
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/792b57d8 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/792b57d8 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/792b57d8 Branch: refs/heads/ignite-2.2 Commit: 792b57d80c08339ad4a92744c8ad3a1b16cbebbf Parents: 773f31e Author: devozerov <[email protected]> Authored: Mon Sep 4 17:41:30 2017 +0300 Committer: Anton Vinogradov <[email protected]> Committed: Fri Sep 15 11:27:30 2017 +0300 ---------------------------------------------------------------------- .../main/java/org/apache/ignite/internal/IgniteKernal.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/792b57d8/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java index 27c23a8..4257f00 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java @@ -1404,9 +1404,10 @@ public class IgniteKernal implements IgniteEx, IgniteMXBean, Externalizable { long safeToUse = ram - Math.max(4L << 30, (long)(ram * 0.2)); if (total > safeToUse) { - U.quietAndWarn(log, "Attempting to start more nodes than physical RAM available on the host " + - "what can lead to significant slowdown (please decrease JVM heap size, memory policy size or " + - "checkpoint buffer size) [required=" + (total >> 20) + "MB, available=" + (ram >> 20) + "MB]"); + U.quietAndWarn(log, "Nodes started on local machine require more than 80% of physical RAM what can " + + "lead to significant slowdown due to swapping (please decrease JVM heap size, memory policy " + + "size or checkpoint buffer size) [required=" + (total >> 20) + "MB, available=" + + (ram >> 20) + "MB]"); } } }
