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

2024-07-09 Thread Christoffer Bruun
Hello, I experience the same symptoms as Andreas (both on Procrun(AMD64)  1.3.4 and 1.4.0). I am also running a SpringBoot application. 1: If I install the windows service with --StopTimeout=15,  then the process will use around 7-9% of CPU in Task Manager on my Lenovo P15 laptop. 2: If I i

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

2023-05-16 Thread Andreas Kuhtz
Hello, I know that the statement "high CPU load" ist pretty vague, but the CPU 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 th

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

2023-05-15 Thread John.E.Gregg
Andreas, Use the java flight recorder to take a recording of a minute or two. Open it in Java Mission Control and look at the method samples. That will give you a good idea where the CPU usage is coming from. If that doesn't seem helpful, maybe enable -XX+DebugNonSafepoints and try again.

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 commons-daemon from 1.3.2 to

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
Apparently you can but only as a jenkinsWindowService.exe How to install Windows agents as a service? (cloudbees.com) How to install Windows agents as a service? - CloudBe

Re: [daemon] Procrun and -javaagent

2022-08-19 Thread Fernando O.
RTFM to me * :D On Fri, Aug 19, 2022 at 12:47 PM Fernando O. wrote: > 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] [de

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 initialized. > [20

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 configuring the service via the U

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 windows service,

Re: [DAEMON] Updating install image on Windows

2021-12-24 Thread Mark Thomas
On 23/12/2021 16:20, Kauppila Jared wrote: Hello, When using 'procrun.exe' to install a service on Windows, you can specify '-Install C:/path/to/procrun.exe' to set the imagePath that the service will utilize. I've noticed that updating a service while passing '-install' will not update that

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 >

Re: [daemon] Java9 --add-modules

2021-04-16 Thread Sebastian Götz
Okay I will try answering my own question: It turned out, that with my configuration (Windows Server 2019 and Adopt OpenJDK 11) I needed to specify an additional argument to make the localhost JMX connection work. This is the complete list of arguments used for the JMX server: -Dcom.sun.manag

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/DAEMON-399 Mark --

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 Daemon

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

2021-02-21 Thread Sebastian Götz
I am sorry for the delay but here is the requested information. The application worked fine as a Windows service with the following configuration: * Windows Server 2019 (Version 1809 Build 17763.437) * Oracle JDK 8.0.1020.14 (aka JDK 8 u 102) * Procrun 1.0.15.0 After upgrading the configur

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

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 itself and also StdOutput > and StdEr

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/jsvc.html Gary > > > > >If you turn on

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

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

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
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? On Sat, 31 Aug 2019 at 00:22, Adam Retter wrote: > > I shoul

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

2019-08-30 Thread Adam Retter
I should add that we are intentionally NOT specifying either `--User` or `--ServiceUser` when installing the service via prunsrv x64. On Sat, 31 Aug 2019 at 00:18, Adam Retter wrote: > > After just updating from prunsrv x64 1.1.0 to 1.2.0, we are finding > that prunsrv will no longer start our se

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 latest version (1.2

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

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 redirected > stdout an

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

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-daemon/procru

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). > > It seems that Java d

Re: [daemon] Can init() be called more than once in a single JVM session?

2017-11-29 Thread Mark Thomas
On 29/11/17 11:09, Andrea Lo Pumo wrote: > Does anyone have an answer? My expectation is that init() will be call once per JVM but that the jsvc process may create multiple JVMs (sequentially, not concurrently) and that init() will be called for each. If jsvc detects that the JVM has aborted (OOM

Re: [daemon] Can init() be called more than once in a single JVM session?

2017-11-29 Thread Andrea Lo Pumo
Does anyone have an answer? Best regards. 2017-10-23 15:53 GMT+02:00 Andrea Lo Pumo : > Since now, I have always assumed that init() is called once, and no > more. Now I am not sure anymore. My doubt is that init() can be called > a second time, after destroy() has been called, for example, if t

Re: [daemon]

2017-05-22 Thread Ian Emmons
On 2017-05-18 17:50, Vadym Slavov wrote: Hello, I have a question regarding jsvc daemon: I have installed successfully the server apache-tomcat-9.0.0.M11 on my «macOS Sierra» and It works, I can start and stop it. I also installed your jsvc daemon and tried to start the tomcat server as suggest

Re: [daemon]

2017-05-19 Thread Benedikt Ritter
Hello Vadym, > Am 18.05.2017 um 17:50 schrieb Vadym Slavov : > > Hello, > > I have a question regarding jsvc daemon: > > I have installed successfully the server apache-tomcat-9.0.0.M11 on my «macOS > Sierra» and It works, I can start and stop it. > I also installed your jsvc daemon and tried

Re: [daemon] [windows] JVM exit codes in jvm mode

2016-06-17 Thread Benedikt Ritter
Hello Thomas, I can't help you right away, but maybe Mark Thomas (in cc) can help since AFAIK Tomcat uses daemon as well. Regards, Benedikt Thomas Kappler schrieb am Di., 14. Juni 2016 um 21:37 Uhr: > Hi! > > We run a Java application with procrun on Windows Server 2012. The JVM > is configure

Re: [daemon] When to use MyClass implements Daemon

2015-09-23 Thread John Febarro
I found the answer after some luck with searching around the wiki. >From "Combined java class for Windows and Linux" found in ( >https://wiki.apache.org/commons/Daemon ) it states: // Implementing the Daemon interface is not required for Windows but is for Linux Another example is how

Re: [daemon] How to daemonize a Java app that has a private default constructor

2015-08-08 Thread Bill Durant
On Aug 8, 2015, at 9:29 AM, sebb wrote: > > On 28 July 2015 at 00:56, Bill Durant wrote: >> Greetings: >> >> I have Java application that has a private default constructor in order to >> support the singleton pattern. >> >> When I try to daemonize the application with jsvc, I get the following

Re: [daemon] How to daemonize a Java app that has a private default constructor

2015-08-08 Thread sebb
On 28 July 2015 at 00:56, Bill Durant wrote: > Greetings: > > I have Java application that has a private default constructor in order to > support the singleton pattern. > > When I try to daemonize the application with jsvc, I get the following > exception: > > java.lang.IllegalAccessException: Cl

Re: [daemon] Problem using procrun for Java service

2015-01-28 Thread Bernd Eckenfels
Hm, you can try the following: a) specify the JVM directly, maybe the auto does not work outside a user session. b) try tu use the prunmsgr to edit the settings instead of the command line c) turn on logging and check the logfile Is the S:\ drive a share? can you try with a local disk as well? (

Re: [daemon] Unable to read tomcat.pid file created by Tomcat process

2014-11-16 Thread Ian Emmons
> On Nov 11, 2014, at 7:44 PM, Bernd Eckenfels wrote: > > Am Tue, 11 Nov 2014 00:09:57 -0500 schrieb Anil Ambati : >> Why does the Tomcat server keep the PID file locked, preventing other >> processes to even read the file? Is there a work around or solution for this >> problem? > > I think th

Re: [daemon] Unable to read tomcat.pid file created by Tomcat process

2014-11-11 Thread Bernd Eckenfels
Am Tue, 11 Nov 2014 00:09:57 -0500 schrieb Anil Ambati : > Why does the Tomcat server keep the PID file locked, preventing other > processes to even read the file? Is there a work around or solution > for this problem? I think the reason for that is, that you can this way detect if the process is

Re: [daemon] Unable to read tomcat.pid file created by Tomcat process

2014-11-11 Thread Mark Thomas
-- >> "You have no responsibility to live up to what other people think you >> ought to accomplish." -Richard Feynman (1918-1988) >> >> >> >> From: Gary Gregory To: Commons Users List < >> user@co

Re: [daemon] Unable to read tomcat.pid file created by Tomcat process

2014-11-11 Thread Gary Gregory
man (1918-1988) > > > > From: Gary Gregory To: Commons Users List < > user@commons.apache.org>, Date: 11/11/2014 10:18 AM Subject: Re: > [daemon] Unable to read tomcat.pid file created by Tomcat process > -- > > > > So which vers

Re: [daemon] Unable to read tomcat.pid file created by Tomcat process

2014-11-11 Thread Anil Ambati
up to what other people think you ought to accomplish." -Richard Feynman (1918-1988) From: Gary Gregory To: Commons Users List , Date: 11/11/2014 10:18 AM Subject: Re: [daemon] Unable to read tomcat.pid file created by Tomcat process So which version of [daemon] are you using? C

Re: [daemon] Unable to read tomcat.pid file created by Tomcat process

2014-11-11 Thread Gary Gregory
So which version of [daemon] are you using? Can you try the latest and greatest. It might not matter but it'll make debugging easier for anyone on this ML. Gary On Tue, Nov 11, 2014 at 10:06 AM, Anil Ambati wrote: > I was asked to post this question in this forum. > > We have a requirement to r

Re: [daemon] Unable to read tomcat.pid file created by Tomcat process

2014-11-11 Thread Gary Gregory
Wrong list. You probably want https://tomcat.apache.org/lists.html#tomcat-users Gary On Tue, Nov 11, 2014 at 10:06 AM, Anil Ambati wrote: > I was asked to post this question in this forum. > > We have a requirement to read the PID file created by the Tomcat server > process on Windows, but we a

Re: [daemon] Unable to read tomcat.pid file created by Tomcat process

2014-11-11 Thread Gary Gregory
Oops, sorry, please ignore my previous message. On Tue, Nov 11, 2014 at 10:11 AM, Gary Gregory wrote: > Wrong list. You probably want > https://tomcat.apache.org/lists.html#tomcat-users > > Gary > > On Tue, Nov 11, 2014 at 10:06 AM, Anil Ambati wrote: > >> I was asked to post this question in t

RE: [daemon]

2014-07-30 Thread Jérôme Serré
If interested someone. windows can’t manage services on network location like : “Z:\Jerome\SoftWare\Divers…… Now I moved files on c:\ and it’s ok. De : Jérôme Serré [mailto:jerome.michel.se...@gmail.com] Envoyé : mardi 29 juillet 2014 10:04 À : user@commons.apache.org Objet : [daemon]

RE: [daemon]

2014-07-17 Thread Martin Gainty
mypackage.myClass ? http://stackoverflow.com/questions/7687159/how-to-convert-a-java-program-to-daemon-with-jsvc ? Martin > From: andrew.mar...@exactearth.com > To: user@commons.apache.org > Subject: RE: [daemon] > Date: Thu, 17 Jul 2014 17:21:57 + > > Hi Martin, > > PATH= >

RE: [daemon]

2014-07-17 Thread Andrew Martin
ndrew -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: July-17-14 1:03 PM To: Commons Users List Subject: RE: [daemon] can you display PATH, CLASSPATH and JAVA_HOME please assume: PATH folder = folders for all executables? CLASSPATH folders = contains all classes refer

RE: [daemon]

2014-07-17 Thread Martin Gainty
jsvc.exe ? JAVA_HOME is set to base folder of JAVA installation ? what happens when you run the same class using java.exe mypackage.MyClass ? Martin ___ > From: andrew.mar...@exactearth.com > To: user@commons.apache.org > Subject: RE: [daemon] > Date: Thu, 17 Ju

RE: [daemon]

2014-07-17 Thread Andrew Martin
: RE: [daemon] jsvc.exe -outfile stdout.out -errfile stderr.errcat stdout.out cat stderr.err report back the results Martin From: andrew.mar...@exactearth.com To: user@commons.apache.org Subject: [daemon] Date: Thu, 17 Jul 2014 16:24:14 + Hi, I'm trying to run a java daemon using

RE: [daemon]

2014-07-17 Thread Martin Gainty
jsvc.exe -outfile stdout.out -errfile stderr.errcat stdout.out cat stderr.err report back the results Martin From: andrew.mar...@exactearth.com To: user@commons.apache.org Subject: [daemon] Date: Thu, 17 Jul 2014 16:24:14 + Hi, I’m trying to run a java daemon using jsvc and the Da

Re: [daemon]

2014-06-16 Thread sebb
On 16 June 2014 23:51, Jian Le wrote: > Hi, I would like to submit a minor change to the > commons-daemon-1.0.x-src/src/native/unix/support/apsupport.m4 file such > that it will support the zlinux platform. However, when I clicked the > Contributing Patches menu item on the left panel of your ma

Re: [daemon]

2014-04-05 Thread Mladen Turk
On 03/25/2014 04:25 PM, Freddie wrote: Depending what your thread does. Does it require some user input, access to some resource. Yes it starts a server when started from the parameters given when I created the service. From cmd I can send it commands to check that it is running, the command

Re: [daemon]

2014-03-25 Thread Freddie
> Depending what your thread does. Does it require some user input, access to some resource. Yes it starts a server when started from the parameters given when I created the service. >From cmd I can send it commands to check that it is running, the command that causes it to hang though will c

Re: [daemon]

2014-03-25 Thread Mladen Turk
On 03/20/2014 04:05 PM, Van der Neut, Frederick wrote: Hi, Is this a limitation of procrun? What else could be causing the service to lock up like this? Depending what your thread does. Does it require some user input, access to some resource. On which windows version is this? Also what abo

Re: [daemon]

2014-03-24 Thread Freddie
Martin Gainty hotmail.com> writes: > > > > From: frederick.van-der-neut hp.com > > To: user commons.apache.org > > Subject: [daemon] > > Date: Thu, 20 Mar 2014 15:05:05 + > > > > Hi, > > > > I have been having an issue where the windows service I created will hang. I was able to start

RE: [daemon]

2014-03-20 Thread Martin Gainty
> From: frederick.van-der-n...@hp.com > To: user@commons.apache.org > Subject: [daemon] > Date: Thu, 20 Mar 2014 15:05:05 + > > Hi, > > I have been having an issue where the windows service I created will hang. I > was able to start my java program as a Network Service. It starts and

Re: [daemon] Can't start jvsc on OSX 10.8

2014-02-14 Thread Amos Anderson
Thanks for the hint, Ian, and thanks for your patches! Amos. On Feb 13, 2014, at 6:33 PM, Ian Emmons wrote: > This bug (#281, see URL below) has been fixed and the fix has been committed. > However, there has been no release since that time. > > https://issues.apache.org/jira/browse/DAEMON

Re: [daemon] Can't start jvsc on OSX 10.8

2014-02-13 Thread Ian Emmons
This bug (#281, see URL below) has been fixed and the fix has been committed. However, there has been no release since that time. https://issues.apache.org/jira/browse/DAEMON-281 On Feb 13, 2014, at 2:30 PM, Amos Anderson wrote: > Hello -- > > I'm trying to start tomcat 7.0.50 on my OSX 10.8

Re: [daemon] running https server with ‘common daemon(jsvc)’ generates ‘Permission denied’ error

2013-12-03 Thread sebb
On 3 December 2013 08:19, JinHwan Hwang wrote: > By googling, I know that there are some issue if i use port number which is > under 1000 without root privileges. But in my case, i have run jsvc with > root account and all the involving files have ‘chmod 755’ permission. Https > server are created

Re: [daemon] ClassNotFoundException though class in path

2013-11-19 Thread Thad Humphries
Ha! I can still be lazy thanks to the -outfile param. Thanks again for all the help. On Tue, Nov 19, 2013 at 2:13 PM, Thad Humphries wrote: > Thanks. That seems to have done it. And adding "-pidfile /var/run/jsvc.pid > -stop" stops it. > > However now I don't see the System.out.println() that I

Re: [daemon] ClassNotFoundException though class in path

2013-11-19 Thread Thad Humphries
Thanks. That seems to have done it. And adding "-pidfile /var/run/jsvc.pid -stop" stops it. However now I don't see the System.out.println() that I was (lazily) using to track MultiThread and its three SubTreads. I guess I've got to swap those for a logger if I want to see anything, huh? On Tue,

Re: [daemon] ClassNotFoundException though class in path

2013-11-19 Thread Thomas Neidhart
On 11/19/2013 07:35 PM, Thad Humphries wrote: > Different error this time (see list below). > > The failure is "2013-11-19 13:10:48.376 jsvc[18273:203] Apple AWT Java VM > was loaded on first thread -- can't start AWT. > java.lang.InternalError: Can't start the AWT because Java was started on > th

Re: [daemon] ClassNotFoundException though class in path

2013-11-19 Thread Thad Humphries
Different error this time (see list below). The failure is "2013-11-19 13:10:48.376 jsvc[18273:203] Apple AWT Java VM was loaded on first thread -- can't start AWT. java.lang.InternalError: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not speci

Re: [daemon] ClassNotFoundException though class in path

2013-11-19 Thread Thomas Neidhart
On 11/19/2013 06:11 PM, Thad Humphries wrote: > I've written a class called MultiThread which implements Daemon. However > when I try to run it with jsvc, it fails although the class is clearly > present in my classpath. What am I not seeing? The call and debug are below: > > $ sudo ~/bin/jsvc -jv

Re: [daemon] Service monitor in taskbar

2013-10-24 Thread kosurusekhar
Hi Darren, The startup folder what you are checking is per user, Tomcat will register a register key in Machine level. You can see it run->msconfig->startup tab. There tomcat will listed as startup process system wide. Regards Sekhar. -- View this message in context: http://apache-commons.6

Re: [DAEMON] Assigning JVM to a core

2013-10-16 Thread Gary Gregory
ad.exe on CPU 0 asynchronously > procaff /set 3 4296 sets processor affinity of process with pid 4296 to 3 > procaff /set 3 foo.exe sets processor affinity of process "foo.exe" to 3 > > > Vielen Danke Thomas! > Martin > > > > > > > > Date

RE: [DAEMON] Assigning JVM to a core

2013-10-16 Thread Martin Gainty
uot; to 3 Vielen Danke Thomas! Martin > Date: Wed, 16 Oct 2013 17:51:51 +0200 > Subject: Re: [DAEMON] Assigning JVM to a core > From: thomas.neidh...@gmail.com > To: user@commons.apache.org > > This link may help you: > http://www.scalabiliti.com/blog/java_jvm_process

Re: [DAEMON] Assigning JVM to a core

2013-10-16 Thread Thomas Neidhart
This link may help you: http://www.scalabiliti.com/blog/java_jvm_processor_affinity On Wed, Oct 16, 2013 at 4:38 PM, Gary Gregory wrote: > Ping? > > On Thu, Oct 10, 2013 at 10:13 PM, Gary Gregory >wrote: > > > On Thu, Oct 10, 2013 at 10:11 PM, Martin Gainty > > wrote: > > > Gary > > > > > > wh

Re: [DAEMON] Assigning JVM to a core

2013-10-16 Thread Gary Gregory
Ping? On Thu, Oct 10, 2013 at 10:13 PM, Gary Gregory wrote: > On Thu, Oct 10, 2013 at 10:11 PM, Martin Gainty > wrote: > > Gary > > > > which version of os/arch are you targetting? > > Martin, > > I'm pretty sure our IT folks are looking at Windows 32 and/or 64-bit. > If it matters I'll get the

Re: [DAEMON] Assigning JVM to a core

2013-10-10 Thread Gary Gregory
On Thu, Oct 10, 2013 at 10:11 PM, Martin Gainty wrote: > Gary > > which version of os/arch are you targetting? Martin, I'm pretty sure our IT folks are looking at Windows 32 and/or 64-bit. If it matters I'll get the exact versions. Gary > > Martin > > > > > >> Date: Thu, 10 Oct 2013 22:08:09 -

RE: [DAEMON] Assigning JVM to a core

2013-10-10 Thread Martin Gainty
Gary which version of os/arch are you targetting? Martin > Date: Thu, 10 Oct 2013 22:08:09 -0400 > Subject: [DAEMON] Assigning JVM to a core > From: garydgreg...@gmail.com > To: user@commons.apache.org > > Hi All: > > Is there a way to tell [daemon] to run a JVM on a specific core withi

Re: [daemon] Java Service stop acting differently on different machines

2013-08-20 Thread Andrew Miller
A follow-up to this... we discovered that if we re-wrote the Service to have the start method block until the stop method is called, the Service is stopped cleanly on the machines that displayed the 1067 error code previously. I know the main documentation page says that if you use the jvm mode th

Re: [daemon] Java Service stop acting differently on different machines

2013-08-19 Thread Mladen Turk
On 08/19/2013 05:11 PM, Andrew Miller wrote: (".."\java_error_%p.txt) (passed in via the JvmOptions parameter when the service is installed) and we aren't seeing any logs generated. Is the %p construct handled by Procrun? Nope. Regards -- ^TM --

Re: [daemon] Java Service stop acting differently on different machines

2013-08-19 Thread Andrew Miller
Sebb gets to the heart of the matter... thanks! :) Our service code is actually making use of 0/[nonzero] return codes to signal to Windows on whether or not Windows should restart the Service. What we found in a general case (except on these certain machines) is that if a user directs to Service

Re: [daemon] Java Service stop acting differently on different machines

2013-08-19 Thread sebb
On 19 August 2013 10:17, Mladen Turk wrote: > On 08/19/2013 12:53 AM, Andrew Miller wrote: >> >> Seems like the JVM is >> crashing, which leads Windows > > > If the JVM crashes you should have jvm's generated crash log file. > Doubt that is the reason. > > What you have in log file is > > ( javajn

Re: [daemon] Java Service stop acting differently on different machines

2013-08-19 Thread Mladen Turk
On 08/19/2013 12:53 AM, Andrew Miller wrote: Seems like the JVM is crashing, which leads Windows If the JVM crashes you should have jvm's generated crash log file. Doubt that is the reason. What you have in log file is ( javajni.c:471 ) [ 6948] Exit hook with exit code 1 This means that your

Re: [daemon] Issue DAEMON-281

2013-07-06 Thread Benedikt Ritter
It would probably bet better to move this to the dev ML to get more feedback. Benedikt 2013/7/5 Ian Emmons > Ping? > > > On May 4, 2013, at 3:59 PM, Ian Emmons wrote: > > I re-opened this issue because the previous fix didn't work. I also > attached a patch to the issue that (I believe) fixe

  1   2   3   >