From commits-return-81393-archive-asf-public=cust-asf.ponee.io@cloudstack.apache.org Tue Oct 16 20:57:17 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0032A180674 for ; Tue, 16 Oct 2018 20:57:16 +0200 (CEST) Received: (qmail 799 invoked by uid 500); 16 Oct 2018 18:57:16 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 788 invoked by uid 99); 16 Oct 2018 18:57:16 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2018 18:57:16 +0000 From: GitBox To: commits@cloudstack.apache.org Subject: [GitHub] rafaelweingartner closed pull request #2897: Allow enable the Java remote Debug for CloudStack Agent Message-ID: <153971623555.3568.8519184842342792203.gitbox@gitbox.apache.org> Date: Tue, 16 Oct 2018 18:57:15 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit rafaelweingartner closed pull request #2897: Allow enable the Java remote Debug for CloudStack Agent URL: https://github.com/apache/cloudstack/pull/2897 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/packaging/systemd/cloudstack-agent.default b/packaging/systemd/cloudstack-agent.default index 41fa85bfd22..519f44a9d15 100644 --- a/packaging/systemd/cloudstack-agent.default +++ b/packaging/systemd/cloudstack-agent.default @@ -20,3 +20,7 @@ JAVA_HEAP_INITIAL=256m JAVA_HEAP_MAX=2048m JAVA_CLASS=com.cloud.agent.AgentShell JAVA_TMPDIR=/usr/share/cloudstack-agent/tmp + +#You can uncomment this if you want to enable Java remote debugging. +#Feel free to change the parameters at your will. The 'address' field defines the port to be used. +#JAVA_DEBUG="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n" diff --git a/packaging/systemd/cloudstack-agent.service b/packaging/systemd/cloudstack-agent.service index 9cde22d7eb0..8acab59d1b7 100644 --- a/packaging/systemd/cloudstack-agent.service +++ b/packaging/systemd/cloudstack-agent.service @@ -28,7 +28,7 @@ ExecStart=/bin/sh -ec '\ export ACP=`ls /usr/share/cloudstack-agent/lib/*.jar /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\\n" ":"`; \ export CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; \ mkdir -m 0755 -p ${JAVA_TMPDIR}; \ - ${JAVA} -Djava.io.tmpdir="${JAVA_TMPDIR}" -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH" $JAVA_CLASS' + ${JAVA} -Djava.io.tmpdir="${JAVA_TMPDIR}" -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} $JAVA_DEBUG -cp "$CLASSPATH" $JAVA_CLASS' Restart=always RestartSec=10s ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services