apache daemon procrun problem

2024-10-25 Thread adrien ruffie
Hello, I try to start my server as a windows service daemon , but the server doesn't start and I don't know why and what is the problem. Anybody know why ? I install my service like that: ExecWait '$INSTDIR\Crimson8-ServerService.exe //IS//Crimson8-ServerService --Descrip

[daemon] StdOut redirection to file in windows service

2024-07-26 Thread Vidas Drevinskas
PR_LOGPATH=%BASE_PATH%Log set PR_LOGPREFIX=HelloWorld-daemon set PR_STDOUTPUT=auto set PR_STDERROR=auto set PR_LOGLEVEL=Trace REM UnInstall prunsrv.exe //DS/%SERVICE_NAME% REM Install prunsrv.exe //IS//%SERVICE_NAME% -- Best regards, Vidas ?sp?jimas d?l konfidencialumo / Confidentiality not

RE: Re: [daemon] High CPU load after update from 1.3.2 to 1.3.3

2024-07-09 Thread Christoffer Bruun
; load in Windows task manager was the only visible thing I saw. No different > logs even with LogLevel=DEBUG. > > But I found out that removing the StopTimeout parameter (in my case > --StopTimeout=15) solves the issue. So I think it might be related to this > change: >

[ANNOUNCEMENT] Commons Daemon 1.4.0 Released

2024-05-24 Thread Mark Thomas
The Apache Commons Team is pleased to announce the availability of Apache Commons Daemon 1.4.0 The Apache Commons Daemon software library provides a generic Daemon (unix) or Service (Windows) wrapper for Java code. Version 1.4.0 raises the minimum supported version of Java to Java 8 and

Commons Daemon jsvc no longer builds

2024-03-20 Thread Sascha Goldsmith
Hi, I tried to sign up for a JIRA account to post this directly to Commons Daemon, but it did not list “daemon” as an option to sign up, and there was nowhere on the Github project to register an issue. So, I am posting here. Earlier in December 2023, jsvc was building fine for us on both x86

Re: commons daemon - Error (Cannot find any VM in Java Home)

2023-07-31 Thread Gary Gregory
Hello, Can you confirm that the _only_ thing that changes from one test to the other is the JAVA_HOME value? What about the PATH? Gary On Mon, Jul 24, 2023, 5:59 PM Harsha Thota wrote: > Hello, > > I am an active user of the apache commons daemon. > I am trying to get the JSVC r

commons daemon - Error (Cannot find any VM in Java Home)

2023-07-24 Thread Harsha Thota
Hello, I am an active user of the apache commons daemon. I am trying to get the JSVC run with Java 11 and getting this error- "Cannot find any VM in Java Home". I am running the JSVC on linux. The commons-daemon version we're using is 1.3.4. Java version is 11 (we use adop

Re: [daemon] High CPU load after update from 1.3.2 to 1.3.3

2023-05-16 Thread Andreas Kuhtz
ssue. So I think it might be related to this change: https://github.com/apache/commons-daemon/commit/243a8521f780b98247820ae187e395597f6c9b51#diff-b4e825062840bfdafb7eeed624d22a66257983305ca7e21470b679bff4ef1ffeR1840-R1850 Am Mo., 15. Mai 2023 um 21:08 Uhr schrieb : > Andreas, > >

RE: [daemon] High CPU load after update from 1.3.2 to 1.3.3

2023-05-15 Thread John.E.Gregg
again. > -Original Message- > From: Andreas Kuhtz > Sent: Monday, May 15, 2023 11:25 AM > To: user@commons.apache.org > Subject: [daemon] High CPU load after update from 1.3.2 to 1.3.3 > > Hi there, > > I see a high CPU load after updating commons-daemon from 1.

Re: [daemon] High CPU load after update from 1.3.2 to 1.3.3

2023-05-15 Thread Gary Gregory
The statement "high CPU load" is pretty vague. Gathering data on which processes use what percentage of CPU/cores and disk activity over time would be a start. Gary On Mon, May 15, 2023, 12:25 Andreas Kuhtz wrote: > Hi there, > > I see a high CPU load after updating common

[daemon] High CPU load after update from 1.3.2 to 1.3.3

2023-05-15 Thread Andreas Kuhtz
Hi there, I see a high CPU load after updating commons-daemon from 1.3.2 to 1.3.3 (and 1.3.4) on my system. The application is a simple SpringBoot application that is started with service-user LocalSystem (no difference if started with default value). How can I find the cause for this? Many

[ANNOUNCEMENT] Commons Daemon 1.3.4 Released

2023-05-12 Thread Mark Thomas
The Apache Commons Team is pleased to announce the availability of Apache Commons Daemon 1.3.4. The Apache Commons Daemon software library provides a generic Daemon (unix) or Service (Windows) wrapper for Java code. Version 1.3.4 is a bugfix release. A full list of changes can be found at

[daemon] Java method profiling not working under jsvc

2023-02-03 Thread Ralf Kraudelt
Hi, I want to use method profiling with the JDK Mission Control plugin for Eclipse and connect remotely with a Tomcat. I use a default Tomcat installation from https://tomcat.apache.org/download-90.cgi on Rocky 9 and a self-compiled jsvc. When I start the Tomcat with its own start script, I c

[ANNOUNCEMENT] Commons Daemon 1.3.2 Released

2022-10-10 Thread Mark Thomas
The Apache Commons Team is pleased to announce the availability of Apache Commons Daemon 1.3.2. The Apache Commons Daemon software library provides a generic Daemon (unix) or Service (Windows) wrapper for Java code. Version 1.3.2 is a bugfix release. A full list of changes can be found at

Re: [daemon] Procrun and -javaagent

2022-09-01 Thread Gary Gregory
I don't think it can be dead since we are maintaining it for Tomcat to use. Gary On Wed, Aug 24, 2022, 23:36 Mladen Turk wrote: > > > On 20/08/2022 20:05, Martin Gainty wrote: > > Apparently you can but only as a jenkinsWindowService.exe > > How to install Windows agents as a service? (cloudbee

Re: [daemon] Procrun and -javaagent

2022-08-24 Thread Mladen Turk
On 20/08/2022 20:05, Martin Gainty wrote: Apparently you can but only as a jenkinsWindowService.exe How to install Windows agents as a service? (cloudbees.com) How to

Re: [daemon] Procrun and -javaagent

2022-08-20 Thread Martin Gainty
ndo O. Sent: Friday, August 19, 2022 8:46 AM To: Commons Users List Subject: [daemon] Procrun and -javaagent Hi all, Disclaimer: I'm pretty new to windows, I worked most of my life on linux I'm trying to add a java agent to a windows service, that was installed with procrun. In

Re: [daemon] Procrun and -javaagent

2022-08-19 Thread Fernando O.
on: >> [2022-08-19 15:39:52] [debug] ( prunsrv.c:1994) [ 980] Apache Commons >> Daemon procrun log initialized. >> [2022-08-19 15:39:52] [info] ( prunsrv.c:2002) [ 980] Apache Commons >> Daemon procrun (1.3.1.0 64-bit) started. >> [2022-08-19 15:39:52] [info] ( pr

Re: [daemon] Procrun and -javaagent

2022-08-19 Thread Fernando O.
nevermind, just RTF I used spaces to separate JavaOptions instead of ; or # Thanks guys On Fri, Aug 19, 2022 at 12:42 PM Fernando O. wrote: > Same issue with the newest version: > [2022-08-19 15:39:52] [debug] ( prunsrv.c:1994) [ 980] Apache Commons > Daemon procrun log in

Re: [daemon] Procrun and -javaagent

2022-08-19 Thread Fernando O.
Same issue with the newest version: [2022-08-19 15:39:52] [debug] ( prunsrv.c:1994) [ 980] Apache Commons Daemon procrun log initialized. [2022-08-19 15:39:52] [info] ( prunsrv.c:2002) [ 980] Apache Commons Daemon procrun (1.3.1.0 64-bit) started. [2022-08-19 15:39:52] [info] ( prunsrv.c:1906

Re: [daemon] Procrun and -javaagent

2022-08-19 Thread Fernando O.
Hi Thanks for the fast answer! I'm using command line : Commons Daemon Service Runner version 1.0.3.0/Win64 (Jul 30 2010) Pretty old I'll try to update On Fri, Aug 19, 2022 at 10:58 AM Mark Thomas wrote: > Hi, > > What version of Commons Daemon? > > Are you config

Re: [daemon] Procrun and -javaagent

2022-08-19 Thread Mantas Gridinas
For logs you should use stdout/stderr options and push them to a file (assuming your logging library does not do that already). I'd suggest running in cmd mode because you get to write full commandline as you would want/need. On Fri, Aug 19, 2022, 15:46 Fernando O. wrote: > Hi all, > Disclai

Re: [daemon] Procrun and -javaagent

2022-08-19 Thread Mark Thomas
Hi, What version of Commons Daemon? Are you configuring the service via the UI or the command line? Mark On 19/08/2022 13:46, Fernando O. wrote: Hi all,     Disclaimer:  I'm pretty new to windows, I worked most of my life on linux     I'm trying to add a java agent to a windo

[daemon] Procrun and -javaagent

2022-08-19 Thread Fernando O.
Hi all, Disclaimer: I'm pretty new to windows, I worked most of my life on linux I'm trying to add a java agent to a windows service, that was installed with procrun. In the doc it seems like there's no option for adding an agent. I tried adding it to options (the doc says that accepts -D

[ANNOUNCEMENT] Commons Daemon 1.3.1 Released

2022-05-09 Thread Mark Thomas
The Apache Commons Team is pleased to announce the availability of Apache Commons Daemon 1.3.1. The Apache Commons Daemon software library provides a generic Daemon (unix) or Service (Windows) wrapper for Java code. Version 1.3.1 is a mainly bugfix release. A full list of changes can be found

[ANNOUNCEMENT] Commons Daemon 1.3.0 Released

2022-03-15 Thread Mark Thomas
The Apache Commons Team is pleased to announce the availability of Apache Commons Daemon 1.3.0. The Apache Commons Daemon software library provides a generic Daemon (unix) or Service (Windows) wrapper for Java code. Version 1.3.0 is a mainly bugfix release but also increases the minimum Java

Re: [DAEMON] Updating install image on Windows

2021-12-24 Thread Mark Thomas
#x27;-install' will not update that imagePath and digging into the code verifies this at https://github.com/apache/commons-daemon/blob/master/src/native/windows/apps/prunsrv/prunsrv.c#L994 That was clearly a deliberate decision. What isn't clear is why the decision was made. In my scena

[DAEMON] Updating install image on Windows

2021-12-23 Thread Kauppila Jared
imagePath and digging into the code verifies this at https://github.com/apache/commons-daemon/blob/master/src/native/windows/apps/prunsrv/prunsrv.c#L994 In my scenario, I would like to upgrade the version of Commons Daemon I'm using and need to update that imagePath value. Is my only option to delet

RE: [daemon] Escaping the colon

2021-09-16 Thread Gridinas, Mantas
ndows service infrastructure and we need these weird workarounds like apache daemon or NSSM. -Original Message- From: Gary Gregory Sent: Monday, September 6, 2021 16:26 To: Commons Users List Subject: Re: [daemon] Escaping the colon Windows and Linux shells treat different quotes differ

Re: [daemon] Escaping the colon

2021-09-06 Thread Gary Gregory
Sadly it did not. I've worked around it using the environment variables, > which do permit the escaping. > > -Original Message- > From: Gary Gregory > Sent: Saturday, August 21, 2021 16:22 > To: Commons Users List > Subject: Re: [daemon] Escaping the colon > &

RE: [daemon] Escaping the colon

2021-09-06 Thread Gridinas, Mantas
Sadly it did not. I've worked around it using the environment variables, which do permit the escaping. -Original Message- From: Gary Gregory Sent: Saturday, August 21, 2021 16:22 To: Commons Users List Subject: Re: [daemon] Escaping the colon Did that fix it? Gary On Tue, A

Re: [daemon] Escaping the colon

2021-08-21 Thread Gary Gregory
ng the message. Result was the following: > > > > -Dfoo=bar > > zar > > > > -Original Message- > > From: Gary Gregory > > Sent: Monday, August 16, 2021 19:17 > > To: Commons Users List > > Subject: Re: [daemon] Escaping the colon > >

Re: [daemon] Escaping the colon

2021-08-17 Thread Mark Thomas
August 16, 2021 19:17 To: Commons Users List Subject: Re: [daemon] Escaping the colon What happens if you say: -Dfoo="bar;zar" Gary On Mon, Aug 16, 2021, 11:54 Gridinas, Mantas wrote: Hi! I've come into a bit of a pickle. I'm trying to pass the following value as my argume

RE: [daemon] Escaping the colon

2021-08-16 Thread Gridinas, Mantas
I did test that prior writing the message. Result was the following: -Dfoo=bar zar -Original Message- From: Gary Gregory Sent: Monday, August 16, 2021 19:17 To: Commons Users List Subject: Re: [daemon] Escaping the colon What happens if you say: -Dfoo="bar;zar" Gary On M

Re: [daemon] Escaping the colon

2021-08-16 Thread Gary Gregory
What happens if you say: -Dfoo="bar;zar" Gary On Mon, Aug 16, 2021, 11:54 Gridinas, Mantas wrote: > Hi! > > I've come into a bit of a pickle. I'm trying to pass the following value > as my argument for a system property > -Dfoo=bar;zar > Which results in the following usage of ++StartParams >

[daemon] Escaping the colon

2021-08-16 Thread Gridinas, Mantas
Hi! I've come into a bit of a pickle. I'm trying to pass the following value as my argument for a system property -Dfoo=bar;zar Which results in the following usage of ++StartParams ++StartParams=-Dfoo=bar;zar In my JVM I am using `System.getProperty("foo")` to read the the expected value of "b

RE: Apache commons daemon prunsrv unable to start

2021-08-03 Thread Rod Widdowson
Are you trying to run an x64 image on an x86 machine (or may be AMD)? > Error code: (NTSTATUS) 0xc07b (3221225595) - {Bad Image} %hs is either > not designed > to run on Windows or it contains an error. Try installing the program again > using the original > installation media or contact

Apache commons daemon prunsrv unable to start

2021-08-03 Thread Kaviarasi G
Hi All, When we try to install a service using prunsrv 1.2, it fails with error Application popup: prunsrv.exe - Application Error : The application was unable to start correctly (0xc07b). Click OK to close the application. But the same command for installing service works with prunsrv vers

Re: [daemon] Java9 --add-modules

2021-04-16 Thread Sebastian Götz
config. But I have had no success so far. Adding it to the standard JvmOptions pane fails with: [2021-04-16 08:14:49] [debug] ( prunsrv.c:1892) [ 5504] Apache Commons Daemon procrun log initialized. [2021-04-16 08:14:49] [info]  ( prunsrv.c:1896) [ 5504] Apache Commons Daemon procrun (1.2.4.0 64

[daemon] Java9 --add-modules

2021-04-15 Thread Sebastian Götz
jdk.management.agent. So I am trying to somewhere get the --add-modules jdk.management.agent part into the service config. But I have had no success so far. Adding it to the standard JvmOptions pane fails with: [2021-04-16 08:14:49] [debug] ( prunsrv.c:1892) [ 5504] Apache Commons Daemon

Re: [daemon] Windows service not starting JVM mode with -javaagent (JDK11)

2021-02-22 Thread Mark Thomas
On 22/02/2021 08:40, Sebastian Götz wrote: > Okay. > > I got it. It appears that the double quotes are no longer allowed. When > removing them the service starts: See the 1.2.0 changelog and https://issues.apache.org/jira/browse/DAEM

Re: [daemon] Windows service not starting JVM mode with -javaagent (JDK11)

2021-02-22 Thread Sebastian Götz
Okay. I got it. It appears that the double quotes are no longer allowed. When removing them the service starts: [2021-02-22 09:24:34] [debug] ( prunsrv.c:1892) [ 1704] Apache Commons Daemon procrun log initialized. [2021-02-22 09:24:34] [info]  ( prunsrv.c:1896) [ 1704] Apache Commons

Re: [daemon] Windows service not starting JVM mode with -javaagent (JDK11)

2021-02-21 Thread Sebastian Götz
that I had to hide some customer details manually in the logs): [2021-02-22 07:53:22] [debug] ( prunsrv.c:1892) [ 5988] Apache Commons Daemon procrun log initialized. [2021-02-22 07:53:23] [info]  ( prunsrv.c:1896) [ 5988] Apache Commons Daemon procrun (1.2.4.0 64-bit) started. [2021-02-22 07:

Re: [daemon] Windows service not starting JVM mode with -javaagent (JDK11)

2021-02-12 Thread Hugo Ferreira
Open or Oracle JDK? Colleague had some issue launching a process in Windows (Oracle JDK). In linux + OpenJDK no problem. Error was from the Java library. java.io.IOException: Cannot run program "java" (in directory "C:\Users\\IdeaProjects\toyadmos"): CreateProcess error=206, The fil

Re: [daemon] Windows service not starting JVM mode with -javaagent (JDK11)

2021-02-12 Thread Gary Gregory
Also enable debug logging. Gary On Fri, Feb 12, 2021, 06:48 Mark Thomas wrote: > Please can you be specific about exactly which JVM versions and Procrun > versions you tested and which worked and which did not? > > Thanks, > > Mark > > > On 12/02/2021 10:38, Sebastian Götz wrote: > > Hi all, >

Re: [daemon] Windows service not starting JVM mode with -javaagent (JDK11)

2021-02-12 Thread Mark Thomas
Please can you be specific about exactly which JVM versions and Procrun versions you tested and which worked and which did not? Thanks, Mark On 12/02/2021 10:38, Sebastian Götz wrote: > Hi all, > > I have an issue when I try upgrading my existing application. > For years I have been using proc

[daemon] Windows service not starting JVM mode with -javaagent (JDK11)

2021-02-12 Thread Sebastian Götz
Hi all, I have an issue when I try upgrading my existing application. For years I have been using procrun to install and start the application as a Windows service. No it seems that there is some sort of compatibility problem. My application is compiled with JDK 11 and also run with JDK 11. It

[ANNOUNCEMENT] Commons Daemon 1.2.4 Released

2021-01-22 Thread Mark Thomas
The Apache Commons Team is pleased to announce the availability of Apache Commons Daemon 1.2.3. The Apache Commons Daemon software library provides a generic Daemon (unix) or Service (Windows) wrapper for Java code. Version 1.2.4 is a bugfix release. A full list of changes can be found at https

Re: [daemon] Daemon Logfile Rotation on Windows

2020-11-02 Thread Mark Thomas
On 02/11/2020 12:20, JP wrote: > Hello, > > I am searching for any documentation on Daemon / Procrun Logfile > Rotation. As there is not much in the official documentation, I'd like > to ask you my questions. > > From observation it seems like the Procrun log itsel

[daemon] Daemon Logfile Rotation on Windows

2020-11-02 Thread JP
Hello, I am searching for any documentation on Daemon / Procrun Logfile Rotation. As there is not much in the official documentation, I'd like to ask you my questions. >From observation it seems like the Procrun log itself and also StdOutput and StdError are rotated at service startup.

[ANNOUNCEMENT] Commons Daemon 1.2.3 Released

2020-09-14 Thread Mark Thomas
The Apache Commons Team is pleased to announce the availability of Apache Commons Daemon 1.2.3. The Apache Commons Daemon software library provides a generic Daemon (unix) or Service (Windows) wrapper for Java code. Version 1.2.3 is a bugfix release. A full list of changes can be found at

[daemon] Trying to use a specified jvm.dll, seems that jvm is ignoring the setting

2020-07-15 Thread Maner, Donald
I have a Windows 7 x32 machine that has Oracle JRE 1.7 installed. I want to use the Commons Daemon to launch a different process, minifi (different from the one that needs Java 7) as a service, but I want minifi to use the jvm.dll provided by OpenJDK 8. So, I have specified the OpenJDK 8

Re: [daemon] Output systemd-coredump on CentOS8.1

2020-06-12 Thread Gary Gregory
On Fri, Jun 12, 2020 at 4:27 AM 荒井元成 wrote: > > > Thanks for your e-mail. > > > > I updated to the current version. (ver1.2.2) > > But still error. > > > > Please tell me the procedure to turn on debug. > https://commons.apache.org/proper/commons-daemon

RE: [daemon] Output systemd-coredump on CentOS8.1

2020-06-12 Thread 荒井元成
Thanks for your e-mail. I updated to the current version. (ver1.2.2) But still error. Please tell me the procedure to turn on debug. >If you turn on debug logging, we might see more interesting output. Also, >you should be using the current version, which is what we would fix if >

Re: [daemon] Output systemd-coredump on CentOS8.1

2020-06-11 Thread Gary Gregory
If you turn on debug logging, we might see more interesting output. Also, you should be using the current version, which is what we would fix if there were something to fix or adjust. I would start by updating to the current version. Gary On Thu, Jun 11, 2020 at 7:09 AM 荒井元成 wrote: > > > I have

[daemon] Output systemd-coredump on CentOS8.1

2020-06-11 Thread 荒井元成
I have a favor to ask you. I'm using apache-commons-deamon 1.0.15. When running on CentOS 8.1, the following error is output. Jun 11 09:00:04 cent8kensho1 user.crit systemd-coredump 4204 Process 2909 (jsvc) of user 10500 dumped core.#012#012Stack trace of thread 2909:#012#0 0x7f2

Re: [daemon] Procrun UnsatisfiedLinkError with JNI project

2020-05-12 Thread Adam Retter
> Maybe try running the service as the same user as the one you use when > running from the command line. That should help narrow down what is > going on. Sorry, I should have mentioned that I had already tried that, and that it made no difference. > >> I guess check the obvious. Does the dll ex

Re: [daemon] Procrun UnsatisfiedLinkError with JNI project

2020-05-12 Thread Bernd Eckenfels
esday, May 12, 2020 4:15:32 PM An: Commons Users List Betreff: Re: [daemon] Procrun UnsatisfiedLinkError with JNI project Thanks for your response Mark, further comments inline below - > It shouldn't. > > Maybe a permissions problem? Although running as LocalService is should > b

Re: [daemon] Procrun UnsatisfiedLinkError with JNI project

2020-05-12 Thread Mark Thomas
On 12/05/2020 15:15, Adam Retter wrote: > Thanks for your response Mark, further comments inline below - > >> It shouldn't. >> >> Maybe a permissions problem? Although running as LocalService is should >> be fine. > > So I am using the `--ServiceUser=LocalSystem` flag - to run under the > LocalSy

Re: [daemon] Procrun UnsatisfiedLinkError with JNI project

2020-05-12 Thread Adam Retter
Thanks for your response Mark, further comments inline below - > It shouldn't. > > Maybe a permissions problem? Although running as LocalService is should > be fine. So I am using the `--ServiceUser=LocalSystem` flag - to run under the LocalSystem account. (i.e. NOT `NT Authority\Local Service`).

Re: [daemon] Does prunsrv only run under Administrator account?

2020-05-12 Thread Adam Retter
Okay thanks Mark, it's good to know that it isn't something that I am doing/configuring wrong. On Tue, 12 May 2020 at 15:25, Mark Thomas wrote: > > On 12/05/2020 11:25, Adam Retter wrote: > > I am seeing different behaviour when running prunsrv either as an > > Administrator or not. I have seen t

Re: [daemon] Procrun UnsatisfiedLinkError with JNI project

2020-05-12 Thread Mark Thomas
On 12/05/2020 11:40, Adam Retter wrote: > Hi there, > > I have a Java project which is using JNI to load a native library. I > would like to install it as a Windows service. > > To install it I am running: > > prunsrv.exe install FusionDB-Server --DisplayName=FusionDB-Server > --Description="Fus

Re: [daemon] Does prunsrv only run under Administrator account?

2020-05-12 Thread Mark Thomas
On 12/05/2020 11:25, Adam Retter wrote: > I am seeing different behaviour when running prunsrv either as an > Administrator or not. I have seen this in the past and it has bothered > me, but I thought it was about time to get to the bottom of it! > > Starting from a clean install of Windows 2012 S

[daemon] Procrun UnsatisfiedLinkError with JNI project

2020-05-12 Thread Adam Retter
Hi there, I have a Java project which is using JNI to load a native library. I would like to install it as a Windows service. To install it I am running: prunsrv.exe install FusionDB-Server --DisplayName=FusionDB-Server --Description="FusionDB Server" --StdError=auto --StdOutput=auto --LogPath="

[daemon] Does prunsrv only run under Administrator account?

2020-05-12 Thread Adam Retter
I am seeing different behaviour when running prunsrv either as an Administrator or not. I have seen this in the past and it has bothered me, but I thought it was about time to get to the bottom of it! Starting from a clean install of Windows 2012 Server Base, if I login as my user account `aretter

[ANNOUNCEMENT] Commons Daemon 1.2.2 Released

2019-10-11 Thread Mark Thomas
The Apache Commons Team is pleased to announce the availability of Apache Commons Daemon 1.2.2. The Apache Commons Daemon software library provides a generic Daemon (unix) or Service (Windows) wrapper for Java code. Version 1.2.2 is a bugfix release. A full list of changes can be found at

[ANNOUNCEMENT] Commons Daemon 1.2.1 Released

2019-09-12 Thread Mark Thomas
The Apache Commons Team is pleased to announce the availability of Apache Commons Daemon 1.2.1. The Apache Commons Daemon software library provides a generic Daemon (unix) or Service (Windows) wrapper for Java code. Version 1.2.1 is a bugfix release. A full list of changes can be found at

[daemon] Procrun: Single quote character in --JvmOptions values

2019-09-11 Thread William Brafford
Hello, Is there a way to escape single quotes in arguments to --JvmOptions for procrun? I see in the documents that single quotes can be used to embed # or ; characters, but I don’t see any options for escaping a single quote. The use case I have in mind is passing in file paths as JVM options.

Re: [daemon] prunsrv x64 1.2.0 doesn't start under local service account

2019-09-02 Thread Mark Thomas
On 02/09/2019 09:00, Adam Retter wrote: > Hi Mark, thanks for your response. I am just wondering when you say: > >> If your application doesn't run under LocalService and you want it to >> then you'll need to fix your application. > > How can we diagnose why Procrun won't start our application un

Re: [daemon] prunsrv x64 1.2.0 doesn't start under local service account

2019-09-02 Thread Adam Retter
Hi Mark, thanks for your response. I am just wondering when you say: > If your application doesn't run under LocalService and you want it to > then you'll need to fix your application. How can we diagnose why Procrun won't start our application under LocalService? We would like to understand what

Re: [daemon] prunsrv x64 1.2.0 doesn't start under local service account

2019-09-01 Thread Mark Thomas
On 31/08/2019 14:40, Adam Retter wrote: > I note in the release notes for 1.2.0 it states: > > - The default Windows service user has changed from LocalSystem to > 'NT Authority\LocalService' > > Could this be the problem that I am experiencing? How can I switch > back to LocalSystem? >>> I

Re: [daemon] prunsrv x64 1.2.0 doesn't start under local service account

2019-08-31 Thread Adam Retter
7;FusionDB-Server'. > > [2019-08-30 23:06:08] [info] [ 5336] Finished starting service > > 'FusionDB-Server', returning 0. > > [2019-08-30 23:06:08] [error] [ 5336] Apache Commons Daemon procrun > > failed with exit value: 5 (failed to start service). > >

Re: [daemon] prunsrv x64 1.2.0 doesn't start under local service account

2019-08-30 Thread Adam Retter
dwServiceSpecificExitCode = 0 > [2019-08-30 23:06:08] [error] [ 5336] apxServiceControl(): returning FALSE > [2019-08-30 23:06:08] [error] [ 5336] Failed to start service > 'FusionDB-Server'. > [2019-08-30 23:06:08] [info] [ 5336] Finished starting service > 'FusionDB-Se

[daemon] prunsrv x64 1.2.0 doesn't start under local service account

2019-08-30 Thread Adam Retter
usionDB-Server', returning 0. [2019-08-30 23:06:08] [error] [ 5336] Apache Commons Daemon procrun failed with exit value: 5 (failed to start service). If however we use the Windows Service Manager to modify the service to run under the "Local System Account" (see attached screenshot

Re: [daemon] after updating prunsrv to 1.2.0 on Windows - The Service doesn't start

2019-08-30 Thread Mark Thomas
Known issue with 32-bit processes. You can track progress here: https://issues.apache.org/jira/browse/DAEMON-401 Mark On 30/08/2019 15:57, David Gutknecht wrote: > Hello everybody, > > I tried to update the prunsrv.exe (1.0.15) installed on my server > (Windows 2012) to the la

[daemon] after updating prunsrv to 1.2.0 on Windows - The Service doesn't start

2019-08-30 Thread David Gutknecht
s has unexpectedly been stopped" The log-file contains only following messages: [2019-08-30 14:43:49] [debug] ( prunsrv.c:1754) [20592] Apache Commons Daemon procrun log initialized. [2019-08-30 14:43:49] [info]  ( prunsrv.c:1758) [20592] Apache Commons Daemon procrun (1.2.0.0 32-bit) started. [

Re: [daemon] Enabling Native Memory Tracking while starting tomcat using jsvc

2019-07-30 Thread Mark Thomas
On 30/07/2019 11:18, కృష్ణ చైతన్య wrote: > Hi, > > We are trying to enable Native Memory Tracking by setting the flags > "-XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=detail > -XX:+PrintNMTStatistics" during startup. We use jsvc to fire up tomcat and > it fails to turn on Native Mem

[daemon] Enabling Native Memory Tracking while starting tomcat using jsvc

2019-07-30 Thread కృష్ణ చైతన్య
Hi, We are trying to enable Native Memory Tracking by setting the flags "-XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=detail -XX:+PrintNMTStatistics" during startup. We use jsvc to fire up tomcat and it fails to turn on Native Memory Tracking. In Catalina.out we see the following

Re: Commons Daemon (jsvc) fails to bind on port 443 on JRE11

2019-07-15 Thread Kanaga Ganesan (kanagane)
Hi Maxim, Thanks for the quick response. "You need to be `root` to use ports below 1000" - Though commons daemon(jsvc) is used to get the root privilege, start the server and downgrade the privilege at later point of time, binding on port 443 fails. Also, exception is no

Re: Commons Daemon (jsvc) fails to bind on port 443 on JRE11

2019-07-15 Thread Kanaga Ganesan (kanagane)
ot; wrote: Is it possible port 443 is already being used by some other service? On Mon, 15 Jul 2019 at 18:05, Kanaga Ganesan (kanagane) wrote: > > Hi Maxim, > > Thanks for the quick response. > "You need to be `root` to use ports b

Re: Commons Daemon (jsvc) fails to bind on port 443 on JRE11

2019-07-15 Thread Maxim Solodovnik
Is it possible port 443 is already being used by some other service? On Mon, 15 Jul 2019 at 18:05, Kanaga Ganesan (kanagane) wrote: > > Hi Maxim, > > Thanks for the quick response. > "You need to be `root` to use ports below 1000" - Though commons > daemon(j

Re: Commons Daemon (jsvc) fails to bind on port 443 on JRE11

2019-07-15 Thread Maxim Solodovnik
You need to be `root` to use ports below 1000 On Mon, 15 Jul 2019 at 17:38, Krishna Chaitanya Koppisetty (kchaitan) wrote: > > Hi, > > I tried compiling the commons daemon 1.2.0 source with jdk 11. When > configured on apache tomcat version 9.0.16 with JRE11, the tomcat ser

Commons Daemon (jsvc) fails to bind on port 443 on JRE11

2019-07-15 Thread Krishna Chaitanya Koppisetty (kchaitan)
Hi, I tried compiling the commons daemon 1.2.0 source with jdk 11. When configured on apache tomcat version 9.0.16 with JRE11, the tomcat server fails to come up. It fails to bind on port 443 with java.net.SocketException. Can you please help use resolve this. 12-Jul-2019 07:10:08.994 INFO

[ANNOUNCEMENT] Commons Daemon 1.2.0 Released

2019-07-04 Thread Mark Thomas
The Apache Commons Team is pleased to announce the availability of Apache Commons Daemon 1.2.0. The Apache Commons Daemon software library provides a generic Daemon (unix) or Service (Windows) wrapper for Java code. Version 1.2.0 is a feature and bugfix release. A full list of changes can be

[daemon] Problem when using Procrun with Java 11

2018-12-28 Thread GASPARD-EXT Joel
Hello, I try to start a Windows service (on Windows 8.1) with Procrun 1.1.0 and Java 11. I've installed the jdk 11 built by AdoptOpenJDK When I install the service with the option -StartMode jvm, Procrun seems not to find Java. I read in the logs : [info] [55436] Starting service... [error] [5

Re: commons-daemon on windows, not honoring JvmMx setting?

2018-04-26 Thread Bernd Eckenfels
So how does the visible memory usage differ? Gruss Bernd -- http://bernd.eckenfels.net From: Alex O'Ree Sent: Thursday, April 26, 2018 9:00:24 PM To: Commons Users List Subject: Re: commons-daemon on windows, not honoring JvmMx setting? --Jvm pointed direct

Re: commons-daemon on windows, not honoring JvmMx setting?

2018-04-26 Thread Alex O'Ree
mmand line arguments do you use and how many threads are active? > > Gruss > Bernd > -- > http://bernd.eckenfels.net > > From: Alex O'Ree > Sent: Thursday, April 26, 2018 5:33:55 PM > To: Commons Users List > Subject: Re: commo

Re: commons-daemon on windows, not honoring JvmMx setting?

2018-04-26 Thread Bernd Eckenfels
let us know. What command line arguments do you use and how many threads are active? Gruss Bernd -- http://bernd.eckenfels.net From: Alex O'Ree Sent: Thursday, April 26, 2018 5:33:55 PM To: Commons Users List Subject: Re: commons-daemon on windows, not hon

Re: commons-daemon on windows, not honoring JvmMx setting?

2018-04-26 Thread Alex O'Ree
So 500mb overhead is normal? On Thu, Apr 26, 2018, 8:36 AM Mark Thomas wrote: > On 26/04/18 11:32, Alex O'Ree wrote: > > I had it set to 300, task mgr listed it at 800 > > That looks normal. > > "Maximum Java Heap Size" != "Maximum OS Memory footprint" > > Mark > > > > > On Mon, Apr 16, 2018, 9:

Re: commons-daemon on windows, not honoring JvmMx setting?

2018-04-26 Thread Mark Thomas
On 26/04/18 11:32, Alex O'Ree wrote: > I had it set to 300, task mgr listed it at 800 That looks normal. "Maximum Java Heap Size" != "Maximum OS Memory footprint" Mark > > On Mon, Apr 16, 2018, 9:59 AM Mark Thomas wrote: > >> On 16/04/18 14:37, Alex O'Ree wrote: >>> I've been experimenting

Re: commons-daemon on windows, not honoring JvmMx setting?

2018-04-26 Thread Alex O'Ree
I had it set to 300, task mgr listed it at 800 On Mon, Apr 16, 2018, 9:59 AM Mark Thomas wrote: > On 16/04/18 14:37, Alex O'Ree wrote: > > I've been experimenting with prunsrv and have been able to get my java > > process to fire up as a windows service when using the "jvm" mode > (couldn't > >

Re: commons-daemon on windows, not honoring JvmMx setting?

2018-04-16 Thread Mark Thomas
On 16/04/18 14:37, Alex O'Ree wrote: > I've been experimenting with prunsrv and have been able to get my java > process to fire up as a windows service when using the "jvm" mode (couldn't > get java or exe to work). I am noticing that the setting "--JvmMx" does not > seem to be honored. According

commons-daemon on windows, not honoring JvmMx setting?

2018-04-16 Thread Alex O'Ree
I've been experimenting with prunsrv and have been able to get my java process to fire up as a windows service when using the "jvm" mode (couldn't get java or exe to work). I am noticing that the setting "--JvmMx" does not seem to be honored. According to the docs, it should. > Maximum memory poo

Re: [Daemon] StdOut and StdErr use extra newline

2018-03-23 Thread Gil Baruch
Maybe I was misunderstood, each line ends with two newlines not just the end of the file... So there's a gap of one empty line between every two lines... Thanks GBa. On Thu, Mar 22, 2018, 23:32 Gil Baruch wrote: > I'm using the daemon to wrap my Jetty based service. I've r

[Daemon] StdOut and StdErr use extra newline

2018-03-22 Thread Gil Baruch
I'm using the daemon to wrap my Jetty based service. I've redirected stdout and stderr to the Daemon via the relevant configuration params. However, both files end up with 2 newline characters (/r/n/r/n) which results in a very unreadable log... especially when dealing with stacktrac

[daemon] Running jvsc directly.

2018-03-19 Thread Brendan McAndrew
Hello, I'm trying to run my application as a daemon using jvsc directly and implementing the below methods instead of implementing the Daemon class itself. However if I try to invoke jvsc without including the commons-daemon.jar in the class path (as per the example below in the document

Re: [daemon] - High memory consumption

2018-03-19 Thread Mark Thomas
On 19/03/18 08:32, Kenneth Vindum wrote: > Dear user list > > I'm having a bit of trouble with memory consumption using procsrv.exe. > I've set the --JvmMX=4096 but the .exe process is consuming nearly 7GB of > memory despite the fact that the JVM only consumed the requested 4GM. The > remaining

[daemon] - High memory consumption

2018-03-19 Thread Kenneth Vindum
Dear user list I'm having a bit of trouble with memory consumption using procsrv.exe. I've set the --JvmMX=4096 but the .exe process is consuming nearly 7GB of memory despite the fact that the JVM only consumed the requested 4GM. The remaining 3GB seems to be consumed by procsrv.exe I can see i

Re: [daemon] Problem with Working Directory

2018-03-07 Thread Gil Baruch
OMG, was looking for it for so long... no idea how I missed it, I went over this page at least 5 times... thanks a lot, worked flawlessly! GBa. On Wed, Mar 7, 2018 at 6:34 AM, Gary Gregory wrote: > Have you tried using --StartPath? See > https://commons.apache.org/proper/commons-

Re: [daemon] Problem with Working Directory

2018-03-06 Thread Gary Gregory
Have you tried using --StartPath? See https://commons.apache.org/proper/commons-daemon/procrun.html Gary On Tue, Mar 6, 2018 at 2:07 PM, Gil Baruch wrote: > Seems like I hit a well known issue although I couldn't find documentation > about it in the FAQ (unfortunately). > > I

  1   2   3   4   5   6   >