jakarta-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From St├ęphane Hoblingre <stephane.hoblin...@gmail.com>
Subject Re: [JMeter] - Get the log file parameter from plugin code (non gui mode, -j option)
Date Mon, 22 Nov 2010 19:20:58 GMT

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



On Tue, Nov 23, 2010 at 12:14 AM, sebb <sebbaz@gmail.com> wrote:

> 2010/11/18 St├ęphane Hoblingre <stephane.hoblingre@gmail.com>:
> > 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: dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: dev-help@jakarta.apache.org

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message