Passing VM Arguments To Profiled Application [message #108513] |
Fri, 10 August 2007 20: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 03:06   |
Eclipse User |
|
|
|
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 11: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 #109946 is a reply to message #108513] |
Thu, 23 August 2007 23: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.24739 seconds