Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5951A200BD8 for ; Tue, 1 Nov 2016 19:53:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 57B0A160AF7; Tue, 1 Nov 2016 18:53:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8D249160ADA for ; Tue, 1 Nov 2016 19:53:00 +0100 (CET) Received: (qmail 15670 invoked by uid 500); 1 Nov 2016 18:52:59 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 15380 invoked by uid 99); 1 Nov 2016 18:52:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2016 18:52:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D94222C2AB9 for ; Tue, 1 Nov 2016 18:52:58 +0000 (UTC) Date: Tue, 1 Nov 2016 18:52:58 +0000 (UTC) From: "Guillaume Chauvet (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DAEMON-316) High JvmMx values result in the service being un-startable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 01 Nov 2016 18:53:01 -0000 [ https://issues.apache.org/jira/browse/DAEMON-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15626321#comment-15626321 ] Guillaume Chauvet commented on DAEMON-316: ------------------------------------------ Silly question : is it a 32 bit JVM ? > High JvmMx values result in the service being un-startable > ---------------------------------------------------------- > > Key: DAEMON-316 > URL: https://issues.apache.org/jira/browse/DAEMON-316 > Project: Commons Daemon > Issue Type: Bug > Components: Procrun > Affects Versions: 1.0.15 > Environment: Windows 7 64bit > Reporter: Joachim Steffenhagen > Priority: Critical > > When I specify the JvmMx and use a large value, it will result in an error during service start. A value of 1240 will still work, however when changing it to 2240, the service installation is running ok, but when I start the service in windows, it just shuts down immediately with an error message referring to service specifiec error code 4. looking into the windows event log, it displays this info: > - > - > > 7024 > 0 > 2 > 0 > 0 > 0x8080000000000000 > > 153783 > > > System > mycomputer > > > - > MyService > %%4 > > > I am installing it using > "$INSTDIR\prunsrv.exe" //IS//MyService --Install="$INSTDIR\prunsrv.exe" --Startup=auto \ > --Description="VTS" --Jvm=auto \ > ++JvmOptions="-Djavax.net.ssl.trustStore=$INSTDIR\resources\cacerts.jks";"-Djavax.net.ssl.trustStorePassword=changeit" \ > --Classpath="$INSTDIR\MyService.jar";"$INSTDIR\log4j-1.2.15.jar";"$INSTDIR\jcifs-1.3.17.jar";"$INSTDIR\jasypt-1.9.0.jar" \ > --StartImage=MyService.jar \ > --JvmMs=1024 --JvmMx=2240 \ > --StartPath="$INSTDIR" --StartMode=jvm \ > --StartClass=de.volke.terminal.service.TerminalService --StartMethod=main --StartParams=start --StopMode=exe \ > --StopClass=de.volke.terminal.service.TerminalService --StopMethod=main --StopImage=MyService.jar \ > --StopPath="$INSTDIR" --StopParams=stop --LogPath="$INSTDIR\logs" > from an NSIS script. > To me this seems like a bug as apparenlty the error should be constant in case my whole cmd line is wrong. Else it should also accept the higher JvmMx value as this is the maximum, no matter if this much memory is really available. The behaviour was also seen on machines having 16GB RAM with >10GB free. So it appears not be related to the real memory consumption on the machine. -- This message was sent by Atlassian JIRA (v6.3.4#6332)