Hi,

The reason is the perfmon plugin is not using the JMeter internal behaviors
to ping the agent. There is a separate object responsible to connect to the
agent and to query the metrics every defined interval and pass the data to
the visualizer. This object is controled by the testelement, which is
notified of start / stop of the test.
At the startup of the test a socket is opened and will be used during the
life of the test, with a polling thread. It is similar to ftp protocol, with
keywords as command (eg, mem, cpu, swp, etc.).

In non gui mode, I create my own file to collect the metrics. My idea was to
get the name of the jtl file and create another one with same path/name but
different extension.

It is not a big deal if I cannot get the jtl file name. the user can specify
-JperfmonFile=/path/to/file.jppm it is enough.

I'm sorry I have diverted from the JMeter model to implement this particular
plugin...

Regards,

Stephane



On Tue, Nov 23, 2010 at 12:14 AM, sebb <[email protected]> wrote:

> 2010/11/18 Stéphane Hoblingre <[email protected]>:
> > Hi,
> >
> > Is there a way to retrieve the jtl file path/name specified as argument
> when
> > running JMeter in non gui mode?
> > I need it to implement non gui mode of our plugin:
> > http://code.google.com/p/jmeter-plugins/wiki/PerfMon
>
> AFAIK, no other samplers/visualisers need this information.
> It's the Listener's job to save the samples.
>
> So why does this code need it?
>
> > Is it possible?
>
> Probably, but why is it needed?
>
> > Regards,
> >
> > Stephane
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to