You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "David Newcomb (JIRA)" <ji...@apache.org> on 2010/03/18 11:16:27 UTC

[jira] Created: (DAEMON-146) -Xms and -Xmx are included twice

-Xms and  -Xmx are included twice
---------------------------------

                 Key: DAEMON-146
                 URL: https://issues.apache.org/jira/browse/DAEMON-146
             Project: Commons Daemon
          Issue Type: Bug
          Components: Procrun
            Reporter: David Newcomb
            Priority: Minor
             Fix For: 1.0.3


Command line:

"C:\Data\tomcat\bin\tomcat6.exe" //US//Tomcat ^
  --Description "Apache Tomcat - Quantel Dino" ^
  --StartClass org.apache.catalina.startup.Bootstrap ^
  --StopClass org.apache.catalina.startup.Bootstrap ^
  --StartParams start ^
  --StopParams stop ^
  --DependsOn MySQL ^
  --StartMode jvm ^
  --StopMode jvm ^
  --JvmOptions "-Dcatalina.base=C:\Data\tomcat" ^
  --JvmOptions "-Dcatalina.home=C:\Data\tomcat" ^
  --JvmOptions "-Djava.endorsed.dirs=C:\Data\tomcat\endorsed" ^
  --JvmOptions "-Djava.io.tmpdir=C:\Data\tomcat\temp" ^
  --JvmOptions "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" ^
  --JvmOptions "-Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties" ^
  --JvmOptions "-Dcom.sun.management.jmxremote" ^
  --JvmOptions "-Dcom.sun.management.jmxremote.port=8181" ^
  --JvmOptions "-Dcom.sun.management.jmxremote.authenticate=false" ^
  --JvmOptions "-Dcom.sun.management.jmxremote.ssl=false" ^
  --JvmOptions "-XX:+HeapDumpOnOutOfMemoryError" ^
  --JvmMs 256 ^
  --JvmMx 512 ^
  --Jvm c:\data\java\bin\server\jvm.dll ^
  --JavaHome c:\data\java ^
  --Startup auto

Produces debug of:

[2010-03-18 10:11:15] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized
[2010-03-18 10:11:15] [info] Commons Daemon procrun (1.0.3.0) started
[2010-03-18 10:11:15] [info] Running 'Tomcat' Service...
[2010-03-18 10:11:15] [debug] ( prunsrv.c:1189) Inside ServiceMain...
[2010-03-18 10:11:15] [info] Starting service...
[2010-03-18 10:11:15] [debug] ( javajni.c:441 ) Jvm Option[0] -Xms256m
[2010-03-18 10:11:15] [debug] ( javajni.c:447 ) Jvm Option[1] -Xmx512m
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[2] -Dcatalina.base=C:\Data\tomcat
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[3] -Dcatalina.home=C:\Data\tomcat
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[4] -Djava.endorsed.dirs=C:\Data\tomcat\endorsed
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[5] -Djava.io.tmpdir=C:\Data\tomcat\temp
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[6] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[7] -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[8] -Dcom.sun.management.jmxremote
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[9] -Dcom.sun.management.jmxremote.port=8181
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[10] -Dcom.sun.management.jmxremote.authenticate=false
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[11] -Dcom.sun.management.jmxremote.ssl=false
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[12] -XX:+HeapDumpOnOutOfMemoryError
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[13] -Djava.class.path=
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[14] -Xms256m
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[15] -Xmx512m
[2010-03-18 10:11:16] [error] ( javajni.c:611 ) FindClass org/apache/catalina/startup/Bootstrap failed
[2010-03-18 10:11:16] [error] ( prunsrv.c:999 ) Failed loading main org/apache/catalina/startup/Bootstrap class 
[2010-03-18 10:11:16] [error] ( prunsrv.c:1304) ServiceStart returned 3
[2010-03-18 10:11:16] [info] Run service finished.
[2010-03-18 10:11:16] [error] ( prunsrv.c:1477) Commons Daemon procrun failed with exit value: 4

Xms and Xmx are specified twice.
There is also no space between Xms 256m and Xmx 512m.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DAEMON-146) -Xms and -Xmx are included twice

Posted by "Mladen Turk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DAEMON-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864759#action_12864759 ] 

Mladen Turk commented on DAEMON-146:
------------------------------------

Applied the patch.

> -Xms and  -Xmx are included twice
> ---------------------------------
>
>                 Key: DAEMON-146
>                 URL: https://issues.apache.org/jira/browse/DAEMON-146
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>            Reporter: David Newcomb
>            Priority: Minor
>             Fix For: 1.0.3
>
>         Attachments: daemon-146.patch
>
>
> Command line:
> "C:\Data\tomcat\bin\tomcat6.exe" //US//Tomcat ^
>   --Description "Apache Tomcat - Company App" ^
>   --StartClass org.apache.catalina.startup.Bootstrap ^
>   --StopClass org.apache.catalina.startup.Bootstrap ^
>   --StartParams start ^
>   --StopParams stop ^
>   --DependsOn MySQL ^
>   --StartMode jvm ^
>   --StopMode jvm ^
>   --JvmOptions "-Dcatalina.base=C:\Data\tomcat" ^
>   --JvmOptions "-Dcatalina.home=C:\Data\tomcat" ^
>   --JvmOptions "-Djava.endorsed.dirs=C:\Data\tomcat\endorsed" ^
>   --JvmOptions "-Djava.io.tmpdir=C:\Data\tomcat\temp" ^
>   --JvmOptions "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" ^
>   --JvmOptions "-Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.port=8181" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.authenticate=false" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.ssl=false" ^
>   --JvmOptions "-XX:+HeapDumpOnOutOfMemoryError" ^
>   --JvmMs 256 ^
>   --JvmMx 512 ^
>   --Jvm c:\data\java\bin\server\jvm.dll ^
>   --JavaHome c:\data\java ^
>   --Startup auto
> Produces debug of:
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized
> [2010-03-18 10:11:15] [info] Commons Daemon procrun (1.0.3.0) started
> [2010-03-18 10:11:15] [info] Running 'Tomcat' Service...
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1189) Inside ServiceMain...
> [2010-03-18 10:11:15] [info] Starting service...
> [2010-03-18 10:11:15] [debug] ( javajni.c:441 ) Jvm Option[0] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:447 ) Jvm Option[1] -Xmx512m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[2] -Dcatalina.base=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[3] -Dcatalina.home=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[4] -Djava.endorsed.dirs=C:\Data\tomcat\endorsed
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[5] -Djava.io.tmpdir=C:\Data\tomcat\temp
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[6] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[7] -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[8] -Dcom.sun.management.jmxremote
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[9] -Dcom.sun.management.jmxremote.port=8181
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[10] -Dcom.sun.management.jmxremote.authenticate=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[11] -Dcom.sun.management.jmxremote.ssl=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[12] -XX:+HeapDumpOnOutOfMemoryError
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[13] -Djava.class.path=
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[14] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[15] -Xmx512m
> [2010-03-18 10:11:16] [error] ( javajni.c:611 ) FindClass org/apache/catalina/startup/Bootstrap failed
> [2010-03-18 10:11:16] [error] ( prunsrv.c:999 ) Failed loading main org/apache/catalina/startup/Bootstrap class 
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1304) ServiceStart returned 3
> [2010-03-18 10:11:16] [info] Run service finished.
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1477) Commons Daemon procrun failed with exit value: 4
> Xms and Xmx are specified twice.
> There is also no space between Xms 256m and Xmx 512m.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (DAEMON-146) -Xms and -Xmx are included twice

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DAEMON-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved DAEMON-146.
-------------------------

    Resolution: Fixed

> -Xms and  -Xmx are included twice
> ---------------------------------
>
>                 Key: DAEMON-146
>                 URL: https://issues.apache.org/jira/browse/DAEMON-146
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>            Reporter: David Newcomb
>            Priority: Minor
>             Fix For: 1.0.3
>
>         Attachments: daemon-146.patch
>
>
> Command line:
> "C:\Data\tomcat\bin\tomcat6.exe" //US//Tomcat ^
>   --Description "Apache Tomcat - Company App" ^
>   --StartClass org.apache.catalina.startup.Bootstrap ^
>   --StopClass org.apache.catalina.startup.Bootstrap ^
>   --StartParams start ^
>   --StopParams stop ^
>   --DependsOn MySQL ^
>   --StartMode jvm ^
>   --StopMode jvm ^
>   --JvmOptions "-Dcatalina.base=C:\Data\tomcat" ^
>   --JvmOptions "-Dcatalina.home=C:\Data\tomcat" ^
>   --JvmOptions "-Djava.endorsed.dirs=C:\Data\tomcat\endorsed" ^
>   --JvmOptions "-Djava.io.tmpdir=C:\Data\tomcat\temp" ^
>   --JvmOptions "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" ^
>   --JvmOptions "-Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.port=8181" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.authenticate=false" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.ssl=false" ^
>   --JvmOptions "-XX:+HeapDumpOnOutOfMemoryError" ^
>   --JvmMs 256 ^
>   --JvmMx 512 ^
>   --Jvm c:\data\java\bin\server\jvm.dll ^
>   --JavaHome c:\data\java ^
>   --Startup auto
> Produces debug of:
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized
> [2010-03-18 10:11:15] [info] Commons Daemon procrun (1.0.3.0) started
> [2010-03-18 10:11:15] [info] Running 'Tomcat' Service...
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1189) Inside ServiceMain...
> [2010-03-18 10:11:15] [info] Starting service...
> [2010-03-18 10:11:15] [debug] ( javajni.c:441 ) Jvm Option[0] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:447 ) Jvm Option[1] -Xmx512m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[2] -Dcatalina.base=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[3] -Dcatalina.home=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[4] -Djava.endorsed.dirs=C:\Data\tomcat\endorsed
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[5] -Djava.io.tmpdir=C:\Data\tomcat\temp
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[6] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[7] -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[8] -Dcom.sun.management.jmxremote
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[9] -Dcom.sun.management.jmxremote.port=8181
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[10] -Dcom.sun.management.jmxremote.authenticate=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[11] -Dcom.sun.management.jmxremote.ssl=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[12] -XX:+HeapDumpOnOutOfMemoryError
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[13] -Djava.class.path=
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[14] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[15] -Xmx512m
> [2010-03-18 10:11:16] [error] ( javajni.c:611 ) FindClass org/apache/catalina/startup/Bootstrap failed
> [2010-03-18 10:11:16] [error] ( prunsrv.c:999 ) Failed loading main org/apache/catalina/startup/Bootstrap class 
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1304) ServiceStart returned 3
> [2010-03-18 10:11:16] [info] Run service finished.
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1477) Commons Daemon procrun failed with exit value: 4
> Xms and Xmx are specified twice.
> There is also no space between Xms 256m and Xmx 512m.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DAEMON-146) -Xms and -Xmx are included twice

Posted by "Mladen Turk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DAEMON-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864815#action_12864815 ] 

Mladen Turk commented on DAEMON-146:
------------------------------------

Done.

> -Xms and  -Xmx are included twice
> ---------------------------------
>
>                 Key: DAEMON-146
>                 URL: https://issues.apache.org/jira/browse/DAEMON-146
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>            Reporter: David Newcomb
>            Priority: Minor
>             Fix For: 1.0.3
>
>         Attachments: daemon-146.patch
>
>
> Command line:
> "C:\Data\tomcat\bin\tomcat6.exe" //US//Tomcat ^
>   --Description "Apache Tomcat - Company App" ^
>   --StartClass org.apache.catalina.startup.Bootstrap ^
>   --StopClass org.apache.catalina.startup.Bootstrap ^
>   --StartParams start ^
>   --StopParams stop ^
>   --DependsOn MySQL ^
>   --StartMode jvm ^
>   --StopMode jvm ^
>   --JvmOptions "-Dcatalina.base=C:\Data\tomcat" ^
>   --JvmOptions "-Dcatalina.home=C:\Data\tomcat" ^
>   --JvmOptions "-Djava.endorsed.dirs=C:\Data\tomcat\endorsed" ^
>   --JvmOptions "-Djava.io.tmpdir=C:\Data\tomcat\temp" ^
>   --JvmOptions "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" ^
>   --JvmOptions "-Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.port=8181" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.authenticate=false" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.ssl=false" ^
>   --JvmOptions "-XX:+HeapDumpOnOutOfMemoryError" ^
>   --JvmMs 256 ^
>   --JvmMx 512 ^
>   --Jvm c:\data\java\bin\server\jvm.dll ^
>   --JavaHome c:\data\java ^
>   --Startup auto
> Produces debug of:
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized
> [2010-03-18 10:11:15] [info] Commons Daemon procrun (1.0.3.0) started
> [2010-03-18 10:11:15] [info] Running 'Tomcat' Service...
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1189) Inside ServiceMain...
> [2010-03-18 10:11:15] [info] Starting service...
> [2010-03-18 10:11:15] [debug] ( javajni.c:441 ) Jvm Option[0] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:447 ) Jvm Option[1] -Xmx512m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[2] -Dcatalina.base=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[3] -Dcatalina.home=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[4] -Djava.endorsed.dirs=C:\Data\tomcat\endorsed
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[5] -Djava.io.tmpdir=C:\Data\tomcat\temp
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[6] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[7] -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[8] -Dcom.sun.management.jmxremote
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[9] -Dcom.sun.management.jmxremote.port=8181
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[10] -Dcom.sun.management.jmxremote.authenticate=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[11] -Dcom.sun.management.jmxremote.ssl=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[12] -XX:+HeapDumpOnOutOfMemoryError
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[13] -Djava.class.path=
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[14] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[15] -Xmx512m
> [2010-03-18 10:11:16] [error] ( javajni.c:611 ) FindClass org/apache/catalina/startup/Bootstrap failed
> [2010-03-18 10:11:16] [error] ( prunsrv.c:999 ) Failed loading main org/apache/catalina/startup/Bootstrap class 
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1304) ServiceStart returned 3
> [2010-03-18 10:11:16] [info] Run service finished.
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1477) Commons Daemon procrun failed with exit value: 4
> Xms and Xmx are specified twice.
> There is also no space between Xms 256m and Xmx 512m.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DAEMON-146) -Xms and -Xmx are included twice

Posted by "Mladen Turk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DAEMON-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846862#action_12846862 ] 

Mladen Turk commented on DAEMON-146:
------------------------------------

I will leave this open, just because of double -XmsN -XmsN.
Your example misses setting classpath so no wonder why it cannot load.
Next take a look at Java documentation. The MUST NOT be space between -Xms256m


> -Xms and  -Xmx are included twice
> ---------------------------------
>
>                 Key: DAEMON-146
>                 URL: https://issues.apache.org/jira/browse/DAEMON-146
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>            Reporter: David Newcomb
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> Command line:
> "C:\Data\tomcat\bin\tomcat6.exe" //US//Tomcat ^
>   --Description "Apache Tomcat - Company App" ^
>   --StartClass org.apache.catalina.startup.Bootstrap ^
>   --StopClass org.apache.catalina.startup.Bootstrap ^
>   --StartParams start ^
>   --StopParams stop ^
>   --DependsOn MySQL ^
>   --StartMode jvm ^
>   --StopMode jvm ^
>   --JvmOptions "-Dcatalina.base=C:\Data\tomcat" ^
>   --JvmOptions "-Dcatalina.home=C:\Data\tomcat" ^
>   --JvmOptions "-Djava.endorsed.dirs=C:\Data\tomcat\endorsed" ^
>   --JvmOptions "-Djava.io.tmpdir=C:\Data\tomcat\temp" ^
>   --JvmOptions "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" ^
>   --JvmOptions "-Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.port=8181" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.authenticate=false" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.ssl=false" ^
>   --JvmOptions "-XX:+HeapDumpOnOutOfMemoryError" ^
>   --JvmMs 256 ^
>   --JvmMx 512 ^
>   --Jvm c:\data\java\bin\server\jvm.dll ^
>   --JavaHome c:\data\java ^
>   --Startup auto
> Produces debug of:
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized
> [2010-03-18 10:11:15] [info] Commons Daemon procrun (1.0.3.0) started
> [2010-03-18 10:11:15] [info] Running 'Tomcat' Service...
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1189) Inside ServiceMain...
> [2010-03-18 10:11:15] [info] Starting service...
> [2010-03-18 10:11:15] [debug] ( javajni.c:441 ) Jvm Option[0] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:447 ) Jvm Option[1] -Xmx512m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[2] -Dcatalina.base=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[3] -Dcatalina.home=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[4] -Djava.endorsed.dirs=C:\Data\tomcat\endorsed
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[5] -Djava.io.tmpdir=C:\Data\tomcat\temp
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[6] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[7] -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[8] -Dcom.sun.management.jmxremote
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[9] -Dcom.sun.management.jmxremote.port=8181
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[10] -Dcom.sun.management.jmxremote.authenticate=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[11] -Dcom.sun.management.jmxremote.ssl=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[12] -XX:+HeapDumpOnOutOfMemoryError
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[13] -Djava.class.path=
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[14] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[15] -Xmx512m
> [2010-03-18 10:11:16] [error] ( javajni.c:611 ) FindClass org/apache/catalina/startup/Bootstrap failed
> [2010-03-18 10:11:16] [error] ( prunsrv.c:999 ) Failed loading main org/apache/catalina/startup/Bootstrap class 
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1304) ServiceStart returned 3
> [2010-03-18 10:11:16] [info] Run service finished.
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1477) Commons Daemon procrun failed with exit value: 4
> Xms and Xmx are specified twice.
> There is also no space between Xms 256m and Xmx 512m.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DAEMON-146) -Xms and -Xmx are included twice

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DAEMON-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864777#action_12864777 ] 

Sebb commented on DAEMON-146:
-----------------------------

The line

        int   o = 0;

is no longer needed - AFAICT the variable "o" is not used anymore.

However that part of the original patch does not seem to have been applied.

Are you OK with removing the variable, or does it need to remain?

> -Xms and  -Xmx are included twice
> ---------------------------------
>
>                 Key: DAEMON-146
>                 URL: https://issues.apache.org/jira/browse/DAEMON-146
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>            Reporter: David Newcomb
>            Priority: Minor
>             Fix For: 1.0.3
>
>         Attachments: daemon-146.patch
>
>
> Command line:
> "C:\Data\tomcat\bin\tomcat6.exe" //US//Tomcat ^
>   --Description "Apache Tomcat - Company App" ^
>   --StartClass org.apache.catalina.startup.Bootstrap ^
>   --StopClass org.apache.catalina.startup.Bootstrap ^
>   --StartParams start ^
>   --StopParams stop ^
>   --DependsOn MySQL ^
>   --StartMode jvm ^
>   --StopMode jvm ^
>   --JvmOptions "-Dcatalina.base=C:\Data\tomcat" ^
>   --JvmOptions "-Dcatalina.home=C:\Data\tomcat" ^
>   --JvmOptions "-Djava.endorsed.dirs=C:\Data\tomcat\endorsed" ^
>   --JvmOptions "-Djava.io.tmpdir=C:\Data\tomcat\temp" ^
>   --JvmOptions "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" ^
>   --JvmOptions "-Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.port=8181" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.authenticate=false" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.ssl=false" ^
>   --JvmOptions "-XX:+HeapDumpOnOutOfMemoryError" ^
>   --JvmMs 256 ^
>   --JvmMx 512 ^
>   --Jvm c:\data\java\bin\server\jvm.dll ^
>   --JavaHome c:\data\java ^
>   --Startup auto
> Produces debug of:
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized
> [2010-03-18 10:11:15] [info] Commons Daemon procrun (1.0.3.0) started
> [2010-03-18 10:11:15] [info] Running 'Tomcat' Service...
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1189) Inside ServiceMain...
> [2010-03-18 10:11:15] [info] Starting service...
> [2010-03-18 10:11:15] [debug] ( javajni.c:441 ) Jvm Option[0] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:447 ) Jvm Option[1] -Xmx512m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[2] -Dcatalina.base=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[3] -Dcatalina.home=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[4] -Djava.endorsed.dirs=C:\Data\tomcat\endorsed
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[5] -Djava.io.tmpdir=C:\Data\tomcat\temp
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[6] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[7] -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[8] -Dcom.sun.management.jmxremote
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[9] -Dcom.sun.management.jmxremote.port=8181
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[10] -Dcom.sun.management.jmxremote.authenticate=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[11] -Dcom.sun.management.jmxremote.ssl=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[12] -XX:+HeapDumpOnOutOfMemoryError
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[13] -Djava.class.path=
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[14] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[15] -Xmx512m
> [2010-03-18 10:11:16] [error] ( javajni.c:611 ) FindClass org/apache/catalina/startup/Bootstrap failed
> [2010-03-18 10:11:16] [error] ( prunsrv.c:999 ) Failed loading main org/apache/catalina/startup/Bootstrap class 
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1304) ServiceStart returned 3
> [2010-03-18 10:11:16] [info] Run service finished.
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1477) Commons Daemon procrun failed with exit value: 4
> Xms and Xmx are specified twice.
> There is also no space between Xms 256m and Xmx 512m.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DAEMON-146) -Xms and -Xmx are included twice

Posted by "David Newcomb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DAEMON-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Newcomb updated DAEMON-146:
---------------------------------

    Description: 
Command line:

"C:\Data\tomcat\bin\tomcat6.exe" //US//Tomcat ^
  --Description "Apache Tomcat - Company App" ^
  --StartClass org.apache.catalina.startup.Bootstrap ^
  --StopClass org.apache.catalina.startup.Bootstrap ^
  --StartParams start ^
  --StopParams stop ^
  --DependsOn MySQL ^
  --StartMode jvm ^
  --StopMode jvm ^
  --JvmOptions "-Dcatalina.base=C:\Data\tomcat" ^
  --JvmOptions "-Dcatalina.home=C:\Data\tomcat" ^
  --JvmOptions "-Djava.endorsed.dirs=C:\Data\tomcat\endorsed" ^
  --JvmOptions "-Djava.io.tmpdir=C:\Data\tomcat\temp" ^
  --JvmOptions "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" ^
  --JvmOptions "-Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties" ^
  --JvmOptions "-Dcom.sun.management.jmxremote" ^
  --JvmOptions "-Dcom.sun.management.jmxremote.port=8181" ^
  --JvmOptions "-Dcom.sun.management.jmxremote.authenticate=false" ^
  --JvmOptions "-Dcom.sun.management.jmxremote.ssl=false" ^
  --JvmOptions "-XX:+HeapDumpOnOutOfMemoryError" ^
  --JvmMs 256 ^
  --JvmMx 512 ^
  --Jvm c:\data\java\bin\server\jvm.dll ^
  --JavaHome c:\data\java ^
  --Startup auto

Produces debug of:

[2010-03-18 10:11:15] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized
[2010-03-18 10:11:15] [info] Commons Daemon procrun (1.0.3.0) started
[2010-03-18 10:11:15] [info] Running 'Tomcat' Service...
[2010-03-18 10:11:15] [debug] ( prunsrv.c:1189) Inside ServiceMain...
[2010-03-18 10:11:15] [info] Starting service...
[2010-03-18 10:11:15] [debug] ( javajni.c:441 ) Jvm Option[0] -Xms256m
[2010-03-18 10:11:15] [debug] ( javajni.c:447 ) Jvm Option[1] -Xmx512m
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[2] -Dcatalina.base=C:\Data\tomcat
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[3] -Dcatalina.home=C:\Data\tomcat
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[4] -Djava.endorsed.dirs=C:\Data\tomcat\endorsed
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[5] -Djava.io.tmpdir=C:\Data\tomcat\temp
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[6] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[7] -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[8] -Dcom.sun.management.jmxremote
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[9] -Dcom.sun.management.jmxremote.port=8181
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[10] -Dcom.sun.management.jmxremote.authenticate=false
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[11] -Dcom.sun.management.jmxremote.ssl=false
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[12] -XX:+HeapDumpOnOutOfMemoryError
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[13] -Djava.class.path=
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[14] -Xms256m
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[15] -Xmx512m
[2010-03-18 10:11:16] [error] ( javajni.c:611 ) FindClass org/apache/catalina/startup/Bootstrap failed
[2010-03-18 10:11:16] [error] ( prunsrv.c:999 ) Failed loading main org/apache/catalina/startup/Bootstrap class 
[2010-03-18 10:11:16] [error] ( prunsrv.c:1304) ServiceStart returned 3
[2010-03-18 10:11:16] [info] Run service finished.
[2010-03-18 10:11:16] [error] ( prunsrv.c:1477) Commons Daemon procrun failed with exit value: 4

Xms and Xmx are specified twice.
There is also no space between Xms 256m and Xmx 512m.


  was:
Command line:

"C:\Data\tomcat\bin\tomcat6.exe" //US//Tomcat ^
  --Description "Apache Tomcat - Quantel Dino" ^
  --StartClass org.apache.catalina.startup.Bootstrap ^
  --StopClass org.apache.catalina.startup.Bootstrap ^
  --StartParams start ^
  --StopParams stop ^
  --DependsOn MySQL ^
  --StartMode jvm ^
  --StopMode jvm ^
  --JvmOptions "-Dcatalina.base=C:\Data\tomcat" ^
  --JvmOptions "-Dcatalina.home=C:\Data\tomcat" ^
  --JvmOptions "-Djava.endorsed.dirs=C:\Data\tomcat\endorsed" ^
  --JvmOptions "-Djava.io.tmpdir=C:\Data\tomcat\temp" ^
  --JvmOptions "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" ^
  --JvmOptions "-Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties" ^
  --JvmOptions "-Dcom.sun.management.jmxremote" ^
  --JvmOptions "-Dcom.sun.management.jmxremote.port=8181" ^
  --JvmOptions "-Dcom.sun.management.jmxremote.authenticate=false" ^
  --JvmOptions "-Dcom.sun.management.jmxremote.ssl=false" ^
  --JvmOptions "-XX:+HeapDumpOnOutOfMemoryError" ^
  --JvmMs 256 ^
  --JvmMx 512 ^
  --Jvm c:\data\java\bin\server\jvm.dll ^
  --JavaHome c:\data\java ^
  --Startup auto

Produces debug of:

[2010-03-18 10:11:15] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized
[2010-03-18 10:11:15] [info] Commons Daemon procrun (1.0.3.0) started
[2010-03-18 10:11:15] [info] Running 'Tomcat' Service...
[2010-03-18 10:11:15] [debug] ( prunsrv.c:1189) Inside ServiceMain...
[2010-03-18 10:11:15] [info] Starting service...
[2010-03-18 10:11:15] [debug] ( javajni.c:441 ) Jvm Option[0] -Xms256m
[2010-03-18 10:11:15] [debug] ( javajni.c:447 ) Jvm Option[1] -Xmx512m
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[2] -Dcatalina.base=C:\Data\tomcat
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[3] -Dcatalina.home=C:\Data\tomcat
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[4] -Djava.endorsed.dirs=C:\Data\tomcat\endorsed
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[5] -Djava.io.tmpdir=C:\Data\tomcat\temp
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[6] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[7] -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[8] -Dcom.sun.management.jmxremote
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[9] -Dcom.sun.management.jmxremote.port=8181
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[10] -Dcom.sun.management.jmxremote.authenticate=false
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[11] -Dcom.sun.management.jmxremote.ssl=false
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[12] -XX:+HeapDumpOnOutOfMemoryError
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[13] -Djava.class.path=
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[14] -Xms256m
[2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[15] -Xmx512m
[2010-03-18 10:11:16] [error] ( javajni.c:611 ) FindClass org/apache/catalina/startup/Bootstrap failed
[2010-03-18 10:11:16] [error] ( prunsrv.c:999 ) Failed loading main org/apache/catalina/startup/Bootstrap class 
[2010-03-18 10:11:16] [error] ( prunsrv.c:1304) ServiceStart returned 3
[2010-03-18 10:11:16] [info] Run service finished.
[2010-03-18 10:11:16] [error] ( prunsrv.c:1477) Commons Daemon procrun failed with exit value: 4

Xms and Xmx are specified twice.
There is also no space between Xms 256m and Xmx 512m.



> -Xms and  -Xmx are included twice
> ---------------------------------
>
>                 Key: DAEMON-146
>                 URL: https://issues.apache.org/jira/browse/DAEMON-146
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>            Reporter: David Newcomb
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> Command line:
> "C:\Data\tomcat\bin\tomcat6.exe" //US//Tomcat ^
>   --Description "Apache Tomcat - Company App" ^
>   --StartClass org.apache.catalina.startup.Bootstrap ^
>   --StopClass org.apache.catalina.startup.Bootstrap ^
>   --StartParams start ^
>   --StopParams stop ^
>   --DependsOn MySQL ^
>   --StartMode jvm ^
>   --StopMode jvm ^
>   --JvmOptions "-Dcatalina.base=C:\Data\tomcat" ^
>   --JvmOptions "-Dcatalina.home=C:\Data\tomcat" ^
>   --JvmOptions "-Djava.endorsed.dirs=C:\Data\tomcat\endorsed" ^
>   --JvmOptions "-Djava.io.tmpdir=C:\Data\tomcat\temp" ^
>   --JvmOptions "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" ^
>   --JvmOptions "-Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.port=8181" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.authenticate=false" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.ssl=false" ^
>   --JvmOptions "-XX:+HeapDumpOnOutOfMemoryError" ^
>   --JvmMs 256 ^
>   --JvmMx 512 ^
>   --Jvm c:\data\java\bin\server\jvm.dll ^
>   --JavaHome c:\data\java ^
>   --Startup auto
> Produces debug of:
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized
> [2010-03-18 10:11:15] [info] Commons Daemon procrun (1.0.3.0) started
> [2010-03-18 10:11:15] [info] Running 'Tomcat' Service...
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1189) Inside ServiceMain...
> [2010-03-18 10:11:15] [info] Starting service...
> [2010-03-18 10:11:15] [debug] ( javajni.c:441 ) Jvm Option[0] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:447 ) Jvm Option[1] -Xmx512m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[2] -Dcatalina.base=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[3] -Dcatalina.home=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[4] -Djava.endorsed.dirs=C:\Data\tomcat\endorsed
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[5] -Djava.io.tmpdir=C:\Data\tomcat\temp
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[6] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[7] -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[8] -Dcom.sun.management.jmxremote
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[9] -Dcom.sun.management.jmxremote.port=8181
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[10] -Dcom.sun.management.jmxremote.authenticate=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[11] -Dcom.sun.management.jmxremote.ssl=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[12] -XX:+HeapDumpOnOutOfMemoryError
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[13] -Djava.class.path=
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[14] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[15] -Xmx512m
> [2010-03-18 10:11:16] [error] ( javajni.c:611 ) FindClass org/apache/catalina/startup/Bootstrap failed
> [2010-03-18 10:11:16] [error] ( prunsrv.c:999 ) Failed loading main org/apache/catalina/startup/Bootstrap class 
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1304) ServiceStart returned 3
> [2010-03-18 10:11:16] [info] Run service finished.
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1477) Commons Daemon procrun failed with exit value: 4
> Xms and Xmx are specified twice.
> There is also no space between Xms 256m and Xmx 512m.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DAEMON-146) -Xms and -Xmx are included twice

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DAEMON-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863823#action_12863823 ] 

Sebb commented on DAEMON-146:
-----------------------------

Looks like the problem is that the memory options are added to the end of the array of options, but are logged when they are added.

So they are logged again when all the options are logged.

> -Xms and  -Xmx are included twice
> ---------------------------------
>
>                 Key: DAEMON-146
>                 URL: https://issues.apache.org/jira/browse/DAEMON-146
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>            Reporter: David Newcomb
>            Priority: Minor
>             Fix For: 1.0.3
>
>
> Command line:
> "C:\Data\tomcat\bin\tomcat6.exe" //US//Tomcat ^
>   --Description "Apache Tomcat - Company App" ^
>   --StartClass org.apache.catalina.startup.Bootstrap ^
>   --StopClass org.apache.catalina.startup.Bootstrap ^
>   --StartParams start ^
>   --StopParams stop ^
>   --DependsOn MySQL ^
>   --StartMode jvm ^
>   --StopMode jvm ^
>   --JvmOptions "-Dcatalina.base=C:\Data\tomcat" ^
>   --JvmOptions "-Dcatalina.home=C:\Data\tomcat" ^
>   --JvmOptions "-Djava.endorsed.dirs=C:\Data\tomcat\endorsed" ^
>   --JvmOptions "-Djava.io.tmpdir=C:\Data\tomcat\temp" ^
>   --JvmOptions "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" ^
>   --JvmOptions "-Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.port=8181" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.authenticate=false" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.ssl=false" ^
>   --JvmOptions "-XX:+HeapDumpOnOutOfMemoryError" ^
>   --JvmMs 256 ^
>   --JvmMx 512 ^
>   --Jvm c:\data\java\bin\server\jvm.dll ^
>   --JavaHome c:\data\java ^
>   --Startup auto
> Produces debug of:
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized
> [2010-03-18 10:11:15] [info] Commons Daemon procrun (1.0.3.0) started
> [2010-03-18 10:11:15] [info] Running 'Tomcat' Service...
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1189) Inside ServiceMain...
> [2010-03-18 10:11:15] [info] Starting service...
> [2010-03-18 10:11:15] [debug] ( javajni.c:441 ) Jvm Option[0] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:447 ) Jvm Option[1] -Xmx512m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[2] -Dcatalina.base=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[3] -Dcatalina.home=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[4] -Djava.endorsed.dirs=C:\Data\tomcat\endorsed
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[5] -Djava.io.tmpdir=C:\Data\tomcat\temp
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[6] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[7] -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[8] -Dcom.sun.management.jmxremote
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[9] -Dcom.sun.management.jmxremote.port=8181
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[10] -Dcom.sun.management.jmxremote.authenticate=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[11] -Dcom.sun.management.jmxremote.ssl=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[12] -XX:+HeapDumpOnOutOfMemoryError
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[13] -Djava.class.path=
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[14] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[15] -Xmx512m
> [2010-03-18 10:11:16] [error] ( javajni.c:611 ) FindClass org/apache/catalina/startup/Bootstrap failed
> [2010-03-18 10:11:16] [error] ( prunsrv.c:999 ) Failed loading main org/apache/catalina/startup/Bootstrap class 
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1304) ServiceStart returned 3
> [2010-03-18 10:11:16] [info] Run service finished.
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1477) Commons Daemon procrun failed with exit value: 4
> Xms and Xmx are specified twice.
> There is also no space between Xms 256m and Xmx 512m.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DAEMON-146) -Xms and -Xmx are included twice

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DAEMON-146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated DAEMON-146:
------------------------

    Attachment: daemon-146.patch

Patch to stop double reporting of -Xms/mx/ss options

> -Xms and  -Xmx are included twice
> ---------------------------------
>
>                 Key: DAEMON-146
>                 URL: https://issues.apache.org/jira/browse/DAEMON-146
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>            Reporter: David Newcomb
>            Priority: Minor
>             Fix For: 1.0.3
>
>         Attachments: daemon-146.patch
>
>
> Command line:
> "C:\Data\tomcat\bin\tomcat6.exe" //US//Tomcat ^
>   --Description "Apache Tomcat - Company App" ^
>   --StartClass org.apache.catalina.startup.Bootstrap ^
>   --StopClass org.apache.catalina.startup.Bootstrap ^
>   --StartParams start ^
>   --StopParams stop ^
>   --DependsOn MySQL ^
>   --StartMode jvm ^
>   --StopMode jvm ^
>   --JvmOptions "-Dcatalina.base=C:\Data\tomcat" ^
>   --JvmOptions "-Dcatalina.home=C:\Data\tomcat" ^
>   --JvmOptions "-Djava.endorsed.dirs=C:\Data\tomcat\endorsed" ^
>   --JvmOptions "-Djava.io.tmpdir=C:\Data\tomcat\temp" ^
>   --JvmOptions "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" ^
>   --JvmOptions "-Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.port=8181" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.authenticate=false" ^
>   --JvmOptions "-Dcom.sun.management.jmxremote.ssl=false" ^
>   --JvmOptions "-XX:+HeapDumpOnOutOfMemoryError" ^
>   --JvmMs 256 ^
>   --JvmMx 512 ^
>   --Jvm c:\data\java\bin\server\jvm.dll ^
>   --JavaHome c:\data\java ^
>   --Startup auto
> Produces debug of:
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1412) Commons Daemon procrun log initialized
> [2010-03-18 10:11:15] [info] Commons Daemon procrun (1.0.3.0) started
> [2010-03-18 10:11:15] [info] Running 'Tomcat' Service...
> [2010-03-18 10:11:15] [debug] ( prunsrv.c:1189) Inside ServiceMain...
> [2010-03-18 10:11:15] [info] Starting service...
> [2010-03-18 10:11:15] [debug] ( javajni.c:441 ) Jvm Option[0] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:447 ) Jvm Option[1] -Xmx512m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[2] -Dcatalina.base=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[3] -Dcatalina.home=C:\Data\tomcat
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[4] -Djava.endorsed.dirs=C:\Data\tomcat\endorsed
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[5] -Djava.io.tmpdir=C:\Data\tomcat\temp
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[6] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[7] -Djava.util.logging.config.file=C:\Data\tomcat\conf\logging.properties
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[8] -Dcom.sun.management.jmxremote
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[9] -Dcom.sun.management.jmxremote.port=8181
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[10] -Dcom.sun.management.jmxremote.authenticate=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[11] -Dcom.sun.management.jmxremote.ssl=false
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[12] -XX:+HeapDumpOnOutOfMemoryError
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[13] -Djava.class.path=
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[14] -Xms256m
> [2010-03-18 10:11:15] [debug] ( javajni.c:456 ) Jvm Option[15] -Xmx512m
> [2010-03-18 10:11:16] [error] ( javajni.c:611 ) FindClass org/apache/catalina/startup/Bootstrap failed
> [2010-03-18 10:11:16] [error] ( prunsrv.c:999 ) Failed loading main org/apache/catalina/startup/Bootstrap class 
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1304) ServiceStart returned 3
> [2010-03-18 10:11:16] [info] Run service finished.
> [2010-03-18 10:11:16] [error] ( prunsrv.c:1477) Commons Daemon procrun failed with exit value: 4
> Xms and Xmx are specified twice.
> There is also no space between Xms 256m and Xmx 512m.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.