You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ro...@apache.org on 2022/10/18 09:42:29 UTC

[activemq-artemis] branch main updated: ARTEMIS-4057 Fix backup last OOME heap dump on Windows

This is an automated email from the ASF dual-hosted git repository.

robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new 8583288603 ARTEMIS-4057 Fix backup last OOME heap dump on Windows
8583288603 is described below

commit 8583288603939ab8a9791c91e83b65b4bc1d6a33
Author: Domenico Francesco Bruscino <br...@apache.org>
AuthorDate: Tue Oct 18 08:49:31 2022 +0200

    ARTEMIS-4057 Fix backup last OOME heap dump on Windows
---
 .../org/apache/activemq/artemis/cli/commands/bin/artemis.cmd          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis.cmd b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis.cmd
index ed7ea68955..5c86cb583c 100644
--- a/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis.cmd
+++ b/artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/bin/artemis.cmd
@@ -48,9 +48,9 @@ rem "Load Profile Config"
 set ARTEMIS_INSTANCE_ETC="${artemis.instance.etc}"
 call %ARTEMIS_INSTANCE_ETC%\artemis.profile.cmd %*
 
-if not exist "%ARTEMIS_OOME_DUMP%" goto NO_ARTEMIS_OOME_DUMP
+if not exist %ARTEMIS_OOME_DUMP% goto NO_ARTEMIS_OOME_DUMP
 rem "Backup the last OOME heap dump"
-move /Y "%ARTEMIS_OOME_DUMP%" "%ARTEMIS_OOME_DUMP%.bkp"
+move /Y %ARTEMIS_OOME_DUMP% %ARTEMIS_OOME_DUMP%.bkp
 
 :NO_ARTEMIS_OOME_DUMP