You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Derek Baum <de...@paremus.com> on 2002/07/10 16:08:28 UTC

Extending JMeter 1.7.1

Hi,

I've recently discovered JMeter and extended the latest "release" (1.7) 
to test JavaSpaces.
I got all this working fine, then I downloaded version 1.7.1 and found 
it had major architectural changes. I understand these changes make it 
much cleaner to extend, but I wish I'd known this when I pulled down the 
1.7 release :-)

There is a note warning about these changes in 
http://jakarta.apache.org/jmeter/extending.html, but there is no direct 
navigation to this page, and it implies that the changes took affect in 
version 1.6, rather than version 1.7.1.

I would be grateful if someone could answer the following questions 
about 1.7.1+:

Q1 - file reporting:

1a. What's happened to the File Reporter?

1b. The Graph Results GUI etc now offers the ability to display results 
from a file.
    How are the results saved to a file in the first place?

1c. I don't understand the "Functional Test mode" - which file is the 
data saved to?

Q2 - log4j initialisation

I can't configure log4j with JMeter v1.7.1. NewDriver.java hardcodes:
System.setProperty("log4j.configuration",System.getProperty("user.dir")+ 
File.separator+"log4j.conf");

if log4j can't convert the property to an URL, it searches for the file 
on the classpath, but this doesn't work if an absolute path is specified 
(as above).
Possible solutions are to leave the path relative or to make it a valid 
URL, by prefixing it with "file:". I would also suggest only setting the 
property if it is not already set, thus allowing users to over-ride if 
required.

Q3 - NewDriver initialisation

The NewDriver creates it's own URLClassLoader, which allows it be run 
directly from the jar, without a wrapper script setting the CLASSPATH.

This seemed to work well, it even automatically found my extension 
classes from a jar I put in the lib/ext directory, and displayed their 
menus and GUIs. However when  I attempted to run (or Save) any tests 
using my custom extensions I got a java.lang.NoClassDefFoundException! 
(jmeter.properties search_paths=../lib/ext).

I am not sure of the correct resolution for this, but in the meantime I 
have added a trivial public static void main() to JMeter.java, which 
allows me to start JMeter by explictly setting the classpath as before.

JMeter is a great tool - keep up the good work!

Thanks,

Derek









________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: JMeter remote start

Posted by Mike Stover <ms...@apache.org>.
That doesn't sound good.  Particularly since, me having only one computer - that's 
how I test the remote features.  Let me know what you find out.

-Mike

On 11 Jul 2002 at 22:37, Derek Baum wrote:

> Hi,
> 
> I've just started experimenting with JMeter's remote start capability. 
> It works fine to a server running on the same host, but when I try to 
> start a remote host, the client gui hangs (I think waiting for the 
> remote configure() method to complete).
> 
> I just wondered if anyone's seen this before I I investigate further.
> 
> Thanks,
> 
> //derek
> 
> 
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 



--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


JMeter remote start

Posted by Derek Baum <de...@paremus.com>.
Hi,

I've just started experimenting with JMeter's remote start capability. 
It works fine to a server running on the same host, but when I try to 
start a remote host, the client gui hangs (I think waiting for the 
remote configure() method to complete).

I just wondered if anyone's seen this before I I investigate further.

Thanks,

//derek


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>