From c4f7c489e79f60a2bfa6e43c36927a70c79fee76 Mon Sep 17 00:00:00 2001 From: Chris Vest Date: Wed, 17 Jan 2018 16:53:26 +0100 Subject: [PATCH] Make example and default `neo4j-admin memrec --memory` value the same. --- .../neo4j/commandline/dbms/MemoryRecommendationsCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/community/dbms/src/main/java/org/neo4j/commandline/dbms/MemoryRecommendationsCommand.java b/community/dbms/src/main/java/org/neo4j/commandline/dbms/MemoryRecommendationsCommand.java index aa7988b6e0769..c0d4427f6f9ec 100644 --- a/community/dbms/src/main/java/org/neo4j/commandline/dbms/MemoryRecommendationsCommand.java +++ b/community/dbms/src/main/java/org/neo4j/commandline/dbms/MemoryRecommendationsCommand.java @@ -116,9 +116,9 @@ private static Brackets findMemoryBrackets( long totalMemoryBytes ) public static Arguments buildArgs() { - long totalPhysicalMemory = OsBeanUtil.getTotalPhysicalMemory(); + String memory = bytesToString( OsBeanUtil.getTotalPhysicalMemory() ); return new Arguments() - .withArgument( new OptionalNamedArg( ARG_MEMORY, "8g", bytesToString( totalPhysicalMemory ), + .withArgument( new OptionalNamedArg( ARG_MEMORY, memory, memory, "Recommend memory settings with respect to the given amount of memory, " + "instead of the total memory of the system running the command." ) ); }