You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by zorglub76 <zo...@yahoo.com> on 2007/01/16 15:59:09 UTC

Load testing RMI

Hi all

I have a problem testing an application that uses RMI.
The suffrage workflow was the following:
1) Thought that BeanShell could help me test. Created and started a simple
server, then created a simple client using BeanShell - everything worked
well.
2) Created a client in BeanShell for the actual application that I wanted to
test, but got the class not found exception. I checked the classpath
(several times) - the one given to BeanShell using addClassPath() and the
system one - everything was ok, but the same exception kept occurring for
the same class. (This class was not directly used in BeanShell).
3) Created a console Java application with the same code used in BeanShell -
everything worked fine
4 - 16000) Tried the various combinations of Java versions/OS-es/BeanShell
environments. The same error occurred in BeanShell and the same smooth
errorless performance when started outside of BeanShell (as a console
app)...
16001) Created a client, compiled it and used BeanShell just to start it and
get the results - the same bloody error occurred.

Any ideas (apart from weapons of destruction)?
Can I somehow use JMeter and client application and avoid BeanShell?
Anyone had any experience with testing RMI based applications?
-- 
View this message in context: http://www.nabble.com/Load-testing-RMI-tf3021394.html#a8391503
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Load testing RMI

Posted by sebb <se...@gmail.com>.
On 16/01/07, zorglub76 <zo...@yahoo.com> wrote:
>
> Hi all
>
> I have a problem testing an application that uses RMI.
> The suffrage workflow was the following:

what is suffrage?

> 1) Thought that BeanShell could help me test. Created and started a simple
> server, then created a simple client using BeanShell - everything worked
> well.

OK

> 2) Created a client in BeanShell for the actual application that I wanted to
> test, but got the class not found exception. I checked the classpath
> (several times) - the one given to BeanShell using addClassPath() and the
> system one - everything was ok, but the same exception kept occurring for
> the same class. (This class was not directly used in BeanShell).

Java ignores the CLASSPATH when -jar is used.

Try putting the relevant jars in the lib directory, or add them to the
following jmeter property:

user.classpath

> 3) Created a console Java application with the same code used in BeanShell -
> everything worked fine

OK

> 4 - 16000) Tried the various combinations of Java versions/OS-es/BeanShell
> environments. The same error occurred in BeanShell and the same smooth
> errorless performance when started outside of BeanShell (as a console
> app)...
> 16001) Created a client, compiled it and used BeanShell just to start it and
> get the results - the same bloody error occurred.
>
> Any ideas (apart from weapons of destruction)?

Some kind of error in the BeanShell client activation code ...

> Can I somehow use JMeter and client application and avoid BeanShell?

You could write a Java Sampler ...

> Anyone had any experience with testing RMI based applications?

JMeter uses RMI for client-server mode, and it's a pain... but calling
the RMI procedures is much the same as calling any other method.

> --
> View this message in context: http://www.nabble.com/Load-testing-RMI-tf3021394.html#a8391503
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org