You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jorge Medina <jm...@e-dialog.com> on 2010/03/10 17:49:11 UTC
jsvc and profiler option -agent
hi,
I am using jsvc to start my Java application. I use Sun JDK 64-bit.
I need to start my application with the (Netbeans) profiler using the option
-agent:${profiler.home}/lib/deployed/solaris-amd64/libprofilerinterface.so=${profiler.home}/lib,5140
But JSVC is complaining about not knowing this option.
Is there any way to pass this option to the JVM through JSVC ?
-Jorge
RE: jsvc and profiler option -agent
Posted by Jorge Medina <jm...@e-dialog.com>.
I meant:
-agentpath:${profiler.home}/lib/deployed/solaris-amd64/libprofilerinterface.so=${profiler.home}/lib,5140
-----Original Message-----
From: Jorge Medina [mailto:jmedina@e-dialog.com]
Sent: Wednesday, March 10, 2010 11:49 AM
To: user@commons.apache.org
Subject: jsvc and profiler option -agent
hi,
I am using jsvc to start my Java application. I use Sun JDK 64-bit.
I need to start my application with the (Netbeans) profiler using the option
-agent:${profiler.home}/lib/deployed/solaris-amd64/libprofilerinterface.so=${profiler.home}/lib,5140
But JSVC is complaining about not knowing this option.
Is there any way to pass this option to the JVM through JSVC ?
-Jorge
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: jsvc and profiler option -agent
Posted by Hugo Sterin <hs...@gmail.com>.
Hugo Sterin <hsterin <at> gmail.com> writes:
> I had this issue with tomcat 6.0.26, I tried daemons 1.0.2 without success. I
> can't start tomcat with jsvc if -javaagent property is in the command line. (–
> javaagent:/local/agent/Agent.jar)
>
> Next parameters are always ignored and I end up getting the error "Cannot find
> daemon loader org/apache/commons/daemon/support/DaemonLoader" because the
> classpath is ignored.
>
> If I remove the javaagent property, everything is fine.
>
> Can you confirm it is supported in 1.0.2?
Nevermind, that was an encoding issue on the "-" before javaagent, it was a
windows "-" translated into a unix "." ...
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: jsvc and profiler option -agent
Posted by Hugo Sterin <hs...@gmail.com>.
Mladen Turk <mturk <at> apache.org> writes:
>
> It's not in 6.0.24, and will not be part of 6.0.26
> Layout is a bit different so I need to backport that from
> Tomcat trunk to 6.0.x branch.
>
> You can however download it directly from
> http://commons.apache.org/downloads/download_daemon.cgi
>
> Click on 'Browse download area' and download
> commons-daemon-current-native-src.tar.gz
>
> Since 1.0.2 there will be no separate jsvc.tar.gz any more.
>
> Regards
Hi,
I had this issue with tomcat 6.0.26, I tried daemons 1.0.2 without success. I
can't start tomcat with jsvc if -javaagent property is in the command line. (–
javaagent:/local/agent/Agent.jar)
Next parameters are always ignored and I end up getting the error "Cannot find
daemon loader org/apache/commons/daemon/support/DaemonLoader" because the
classpath is ignored.
If I remove the javaagent property, everything is fine.
Can you confirm it is supported in 1.0.2?
Thanks
Hugo
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: jsvc and profiler option -agent
Posted by Mladen Turk <mt...@apache.org>.
On 03/10/2010 08:35 PM, Jorge Medina wrote:
> Thank you TM.
>
> I am still using version 1.0.1 (included with Tomcat 6.0.20)
> I will check the latest Tomcat 6.0.24 to see if they already have included v 1.0.2
>
It's not in 6.0.24, and will not be part of 6.0.26
Layout is a bit different so I need to backport that from
Tomcat trunk to 6.0.x branch.
You can however download it directly from
http://commons.apache.org/downloads/download_daemon.cgi
Click on 'Browse download area' and download
commons-daemon-current-native-src.tar.gz
Since 1.0.2 there will be no separate jsvc.tar.gz any more.
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
RE: jsvc and profiler option -agent
Posted by Jorge Medina <jm...@e-dialog.com>.
Thank you TM.
I am still using version 1.0.1 (included with Tomcat 6.0.20)
I will check the latest Tomcat 6.0.24 to see if they already have included v 1.0.2
-Jorge
-----Original Message-----
From: Mladen Turk [mailto:mturk@apache.org]
Sent: Wednesday, March 10, 2010 12:14 PM
To: Commons Users List
Subject: Re: jsvc and profiler option -agent
On 03/10/2010 06:02 PM, Jorge Medina wrote:
> Can I use those options when starting the JVM through jsvc ?
>
Yes, with version 1.0.2 you should be able to do that.
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: jsvc and profiler option -agent
Posted by Mladen Turk <mt...@apache.org>.
On 03/10/2010 06:02 PM, Jorge Medina wrote:
> Can I use those options when starting the JVM through jsvc ?
>
Yes, with version 1.0.2 you should be able to do that.
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
RE: jsvc and profiler option -agent
Posted by Jorge Medina <jm...@e-dialog.com>.
Can I use those options when starting the JVM through jsvc ?
-----Original Message-----
From: Mladen Turk [mailto:mturk@apache.org]
Sent: Wednesday, March 10, 2010 12:01 PM
To: Commons Users List
Subject: Re: jsvc and profiler option -agent
On 03/10/2010 05:49 PM, Jorge Medina wrote:
> hi,
> I am using jsvc to start my Java application. I use Sun JDK 64-bit.
> I need to start my application with the (Netbeans) profiler using the option
> -agent:${profiler.home}/lib/deployed/solaris-amd64/libprofilerinterface.so=${profiler.home}/lib,5140
> But JSVC is complaining about not knowing this option.
> Is there any way to pass this option to the JVM through JSVC ?
>
-agentlib: -agentpath: -javaagent: doesn't help?
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: jsvc and profiler option -agent
Posted by Mladen Turk <mt...@apache.org>.
On 03/10/2010 05:49 PM, Jorge Medina wrote:
> hi,
> I am using jsvc to start my Java application. I use Sun JDK 64-bit.
> I need to start my application with the (Netbeans) profiler using the option
> -agent:${profiler.home}/lib/deployed/solaris-amd64/libprofilerinterface.so=${profiler.home}/lib,5140
> But JSVC is complaining about not knowing this option.
> Is there any way to pass this option to the JVM through JSVC ?
>
-agentlib: -agentpath: -javaagent: doesn't help?
Regards
--
^TM
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org