From 1e58aedb801cdc6b7c8b2c64984fedd68d4d6044 Mon Sep 17 00:00:00 2001 From: joeldudleyr3 Date: Thu, 30 Nov 2017 11:13:16 +0000 Subject: [PATCH] Fixes order of xmx commands. --- docs/source/deploying-a-node.rst | 2 +- docs/source/running-a-node.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/deploying-a-node.rst b/docs/source/deploying-a-node.rst index 44d758ffe7..e23f8814e9 100644 --- a/docs/source/deploying-a-node.rst +++ b/docs/source/deploying-a-node.rst @@ -212,7 +212,7 @@ at boot, and means the Corda service stays running with no users connected to th nssm install cordanode1 C:\ProgramData\Oracle\Java\javapath\java.exe nssm set cordanode1 AppDirectory C:\Corda - nssm set cordanode1 AppParameters "-jar corda.jar -Xmx2048m --config-file=C:\corda\node.conf" + nssm set cordanode1 AppParameters "-Xmx2048m -jar corda.jar --config-file=C:\corda\node.conf" nssm set cordanode1 AppStdout C:\Corda\service.log nssm set cordanode1 AppStderr C:\Corda\service.log nssm set cordanode1 Description Corda Node - Bank of Breakfast Tea diff --git a/docs/source/running-a-node.rst b/docs/source/running-a-node.rst index eac42fe30b..34fde7652b 100644 --- a/docs/source/running-a-node.rst +++ b/docs/source/running-a-node.rst @@ -45,7 +45,7 @@ example, the following would run the node with a heap size of 2048MB: .. code-block:: shell - java -jar corda.jar -Xmx2048m + java -Xmx2048m -jar corda.jar You should do this if you receive an ``OutOfMemoryError`` exception when interacting with the node.