IGNITE-6182: Improved message.

Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/3a33095a
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/3a33095a
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/3a33095a

Branch: refs/heads/ignite-5896
Commit: 3a33095ade910794f8385e43a651b0d922293c3b
Parents: 9d35ea0
Author: devozerov <[email protected]>
Authored: Mon Sep 4 17:41:30 2017 +0300
Committer: devozerov <[email protected]>
Committed: Mon Sep 4 17:41: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/3a33095a/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 549fcb5..cfad8b4 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
@@ -1408,9 +1408,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]");
             }
         }
     }

Reply via email to