Passing VM Arguments To Profiled Application [message #108513] |
Sat, 11 August 2007 00:10 |
Eclipse User |
|
|
|
Originally posted by: downlodr417.msn.com
Hi there,
I feel like many others must have already encountered this, but I
haven't been able to find anything that seems to answer my question... I
am running Eclipse 3.3 and the latest version of TPTP (4.4?) I am
specifying VM arguments for a project in Eclipse (e.g.
-Djava.library.path=C:/somePath), and these arguments work properly in a
Run or Debug execution (I can print out the java.library.path system
property to verify this). However, when I run the same launch
configuration under Profiling mode, java.library.path is set to the
system's value; I assume that the VM arguments I'm specifying are in fact
being fed to some other application (I guess Hyades or something...?), and
that application is giving my app some default arguments. Anyway, I feel
like this is probably a really common need (to specify VM arguments for
the profiled application), so I must be missing something - could anyone
please enlighten me as to how to specify VM arguments for my application
under profiling mode? Thanks in advance!
- Daniel
|
|
|
Re: Passing VM Arguments To Profiled Application [message #108692 is a reply to message #108513] |
Mon, 13 August 2007 07:06 |
Asaf Yaffe Messages: 333 Registered: July 2009 |
Senior Member |
|
|
Daniel wrote:
> Hi there,
>
> I feel like many others must have already encountered this, but I
> haven't been able to find anything that seems to answer my question... I
> am running Eclipse 3.3 and the latest version of TPTP (4.4?) I am
> specifying VM arguments for a project in Eclipse (e.g.
> -Djava.library.path=C:/somePath), and these arguments work properly in a
> Run or Debug execution (I can print out the java.library.path system
> property to verify this). However, when I run the same launch
> configuration under Profiling mode, java.library.path is set to the
> system's value; I assume that the VM arguments I'm specifying are in
> fact being fed to some other application (I guess Hyades or
> something...?), and that application is giving my app some default
> arguments. Anyway, I feel like this is probably a really common need
> (to specify VM arguments for the profiled application), so I must be
> missing something - could anyone please enlighten me as to how to
> specify VM arguments for my application under profiling mode? Thanks in
> advance!
>
> - Daniel
>
Daniel,
VM arguments should be specified in the "VM arguments" section of the
"Arguments" tab of the Launch Configuration of your application. I
tested this with the latest TPTP version and could not reproduce your
problem.
Can you please specify the exact version of your O/S, Eclipse, Java and
TPTP, and how exactly do you specify the VM arguments?
Thanks,
Asaf
--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
|
|
|
Re: Passing VM Arguments To Profiled Application [message #108850 is a reply to message #108692] |
Mon, 13 August 2007 15:52 |
Eclipse User |
|
|
|
Originally posted by: downlodr417.msn.com
Hi Asaf,
Just to be clear, the process I'm following is "Run -> Profile...",
then clicking the Arguments tab, then specifying text in the "VM
Arguments" box, just as I normally do for debugging - it sounds to me like
this is what you're describing, but I just wanted to make sure there
wasn't some other VM Arguments configuration somewhere. :-P I'm running
Windows XP, Eclipse 3.3.0, currently using the 1.5.0_12 JRE, and I have
versions 4.4.0 of the TPTP Platform & Monitoring Tools and 4.3.0 of
Tracing & Profiling Tools (hopefully one of those has the version info
you're looking for). Thanks in advance for any help you can offer!
- Daniel
|
|
|
Re: Passing VM Arguments To Profiled Application [message #108863 is a reply to message #108692] |
Mon, 13 August 2007 15:54 |
Eclipse User |
|
|
|
Originally posted by: downlodr417.msn.com
Also, in regards to how I specify the arguments, I've been using something
like "-Djava.library.path=xyz" in order to set the system property
java.library.path to the value xyz. (No quotes on any of that...)
- Daniel
|
|
|
Re: Passing VM Arguments To Profiled Application [message #108937 is a reply to message #108863] |
Mon, 13 August 2007 21:11 |
Eclipse User |
|
|
|
Originally posted by: downlodr417.msn.com
Also also, I notice now that the value of java.library.path appears to be
roughly what I have in my Windows PATH environment variable, but with some
TPTP and Hyades stuff intermingled. Could it be that TPTP is adding its
own stuff to the path variable and clobbering my settings? Anyway, thanks
in advance for any advice you can offer...
- D
|
|
|
Re: Passing VM Arguments To Profiled Application [message #109110 is a reply to message #108937] |
Wed, 15 August 2007 15:48 |
Eclipse User |
|
|
|
Originally posted by: downlodr417.msn.com
Hi, just bumping this thread in hopes that it doesn't become forgotten; I
am hoping to use TPTP to help improve something I'm working on right now.
Please let me know what I might to do solve this problem with the VM
arguments - thanks!
- Daniel
|
|
|
Re: Passing VM Arguments To Profiled Application [message #109946 is a reply to message #108513] |
Fri, 24 August 2007 03:46 |
Eclipse User |
|
|
|
Originally posted by: chris.rendai.com
Hi Daniel,
Are you still having the same problem? I was having an issue when
launching the profiler and determined that variables within the VM
arguments were causing the issue.
- Chris Schmidt
Daniel wrote:
> Hi there,
>
> I feel like many others must have already encountered this, but I
> haven't been able to find anything that seems to answer my question... I
> am running Eclipse 3.3 and the latest version of TPTP (4.4?) I am
> specifying VM arguments for a project in Eclipse (e.g.
> -Djava.library.path=C:/somePath), and these arguments work properly in a
> Run or Debug execution (I can print out the java.library.path system
> property to verify this). However, when I run the same launch
> configuration under Profiling mode, java.library.path is set to the
> system's value; I assume that the VM arguments I'm specifying are in
> fact being fed to some other application (I guess Hyades or
> something...?), and that application is giving my app some default
> arguments. Anyway, I feel like this is probably a really common need
> (to specify VM arguments for the profiled application), so I must be
> missing something - could anyone please enlighten me as to how to
> specify VM arguments for my application under profiling mode? Thanks in
> advance!
>
> - Daniel
>
|
|
|
Powered by
FUDForum. Page generated in 0.03614 seconds