You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "bunyanjo (sent by Nabble.com)" <li...@nabble.com> on 2005/09/22 12:47:27 UTC

Re: Remote Testing Problem

I have read all the threads on this problem but I still get "Bad Call to Remote Host" on my client Jmeter Gui platform. 

Heres my situation : 2 platforms on same network segment, no firewall, both identical builds ( Windows Server 2003 Standard. jre1.5.0_01, jmeter2.1,jaf-1.0.2, javamail-1.3.3 ). On jmeter gui box "A" I have edited the jmeter.properties file to include IP of remote client "B". no changes at all on B.
When I start rmiregistry on B, ( via a DOS session ) then start jmeter in server mode, jmeter falls over back to the DOS prompt. Checking "B"'s jmeter.log file I get this :

2005/09/22 11:49:27 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_GB 
2005/09/22 11:49:27 INFO  - jmeter.JMeter: Version 2.1 
2005/09/22 11:49:27 INFO  - jmeter.JMeter: java.version=1.5.0_04 
2005/09/22 11:49:27 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The Apache Software Foundation 
2005/09/22 11:49:27 INFO  - jmeter.engine.RemoteJMeterEngineImpl: Starting backing engine on 1099 
2005/09/22 11:49:27 ERROR - jmeter.engine.RemoteJMeterEngineImpl: rmiregistry needs to be running to start 
JMeter in server mode
	java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
	java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
	java.net.MalformedURLException: no protocol: Files\Java\jakarta-jmeter-2.1\lib\avalon-framework-4.1.4.jar 
2005/09/22 11:49:27 ERROR - jmeter.JMeter: Giving up, as server failed with: java.rmi.RemoteException: Cannot start. 
See server log file.
	at org.apache.jmeter.engine.RemoteJMeterEngineImpl.init(RemoteJMeterEngineImpl.java:60)
	at org.apache.jmeter.engine.RemoteJMeterEngineImpl. (RemoteJMeterEngineImpl.java:46)
	at org.apache.jmeter.JMeter.startServer(JMeter.java:376)
	at org.apache.jmeter.JMeter.start(JMeter.java:237)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.jmeter.NewDriver.main(NewDriver.java:139)

even though rmiregistry is running on "B" !!!. All attempts to get jmeter to run the remote copy on "B" from local "A" fail. Anyone any ideas ?
--
Sent from the JMeter - User forum at Nabble.com:
http://www.nabble.com/Remote-Testing-Problem-t64661.html#a928455

Re: Remote Testing Problem

Posted by sebb <se...@gmail.com>.
Open a DOS box.

What does "java -version" show?

Change to the JMeter bin directory.

Run jmeter-server.bat.
There should be two console windows - what do they say?

S.
On 23/09/05, John Bunyan <bu...@hotmail.com> wrote:
>
>
> Hi Sebb,
>
> I have reinstalled jre1.5.0_04 under C:\Java\ , repointed environment
> variables JAVA_HOME to c:\Java\jre1.5.0_04 and JMETER_HOME to
> C:\Java\Jmeter\Jakart-jmeter2.1 and so no spaces in any pathnames now.
> Rebooted all boxes, I still get the same problem with rmiregistry when
> attempting to run jmeter-server. ???
>
>
>  ________________________________
>
>
>
>
> From: sebb <se...@gmail.com>
> Reply-To: sebb <se...@gmail.com>
> To: John Bunyan <bu...@hotmail.com>, JMeter Users List
> <jm...@jakarta.apache.org>
> Subject: Re: Remote Testing Problem
> Date: Fri, 23 Sep 2005 11:57:43 +0100
>
> Remote JMeter does not work if there are spaces in the path.
>
> S.
> On 23/09/05, John Bunyan <bu...@hotmail.com> wrote:
> >
> >
> >
> >
> > Hi sebb,
> >
> > just checked jmeter-server.bat. The line calling rmiregistry had this :
> >
> > 'START %JAVA_HOME%\bin\rmiregistry'
> >
> > so I changed it to
> >
> > 'START rmiregistry' - but still get the error "Windows cannot find
> > rmiregistry. Make sure you typed the name correctly etc etc "
> >
> > I am running the jmeter-server command from c:\Program
> > Files\Java\Jakarta-Jmeter2.1\bin\
> >
> > John
>
>
>

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


Re: Remote Testing Problem

Posted by sebb <se...@gmail.com>.
Remote JMeter does not work if there are spaces in the path.

S.
On 23/09/05, John Bunyan <bu...@hotmail.com> wrote:
>
>
>
>
> Hi sebb,
>
> just checked jmeter-server.bat. The line calling rmiregistry had this :
>
> 'START %JAVA_HOME%\bin\rmiregistry'
>
> so I changed it to
>
> 'START rmiregistry' - but still get the error "Windows cannot find
> rmiregistry. Make sure you typed the name correctly etc etc "
>
> I am running the jmeter-server command from c:\Program
> Files\Java\Jakarta-Jmeter2.1\bin\
>
> John

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


Controller

Posted by sailaja93 <sa...@yahoo.com>.
Should the simple controller be part of the Thread
Group, in order to perform the load test.
For eg, i have configured the scenario as follows:-

Number Of Threads = 50
Ramp Up Period = 50 sec
Loop Count = 1
Duration = 300 sec

Do i need to necessarily add the controller to the
thread group.

What is the exact functionality of the controller
here.

Thanks in advance



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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


Re: Remote Testing Problem

Posted by sebb <se...@gmail.com>.
Try changing to the jmeter bin directory and running jmeter-server.bat

The rmi registry needs to be provided with the appropriate JMeter classpath.
This is something that the jmeter-server.bat file will do for you.
(On unix, use the jmeter-server shell script)

If you want to run them separately, it should be easy enough to
extract the necessary information from the script.

S.
On 22/09/05, John Bunyan <bu...@hotmail.com> wrote:
>
>
> On Remote "B", I have (a) issued "start rmiregistry" from a DOS command box
> when logged into my jre root /bin/ directory (b) issed "start rmiregistry"
> from inside a DOS .bat file ( when logged into the jre /bin/ directory ) and
> (c) actualy entered just "rmiregistry" ( ie, run command ) whilst at the
> command prompt in a DOS box logged into jre /bin/ directory.
>
> After any one of the 3 above, I have entered "jmeter -s" from a 2nd DOS
> command box whilst logged into the jmeter /bin/ location. In each case,
> jmeter returns to DOS command prompt in about 10 secs.
>
> No gui problem on "B" - IE, runs in gui mode OK.
> ________________________________
> From: sebb <se...@gmail.com>
> Reply-To: sebb <se...@gmail.com>
> To: JMeter Users List <jm...@jakarta.apache.org>, bunyanjo
> <bu...@hotmail.com>
> Subject: Re: Remote Testing Problem
> Date: Thu, 22 Sep 2005 12:39:09 +0100
>
> What commands are you using to start RMI and JMeter on "B"?
>
> S.
> On 22/09/05, bunyanjo (sent by Nabble.com) <li...@nabble.com> wrote:
> >
> > I have read all the threads on this problem but I still get "Bad Call to
> Remote Host" on my client Jmeter Gui platform.
> >
> > Heres my situation : 2 platforms on same network segment, no firewall,
> both identical builds ( Windows Server 2003 Standard. jre1.5.0_01,
> jmeter2.1,jaf-1.0.2, javamail-1.3.3 ). On jmeter gui box "A" I have edited
> the jmeter.properties file to include IP of remote client "B". no changes at
> all on B.
> > When I start rmiregistry on B, ( via a DOS session ) then start jmeter in
> server mode, jmeter falls over back to the DOS prompt. Checking "B"'s
> jmeter.log file I get this :
> >
> > 2005/09/22 11:49:27 INFO - jmeter.util.JMeterUtils: Setting Locale to
> en_GB
> > 2005/09/22 11:49:27 INFO - jmeter.JMeter: Version 2.1
> > 2005/09/22 11:49:27 INFO - jmeter.JMeter: java.version=1.5.0_04
> > 2005/09/22 11:49:27 INFO - jmeter.JMeter: Copyright (c) 1998-2005 The
> Apache Software Foundation
> > 2005/09/22 11:49:27 INFO -
> jmeter.engine.RemoteJMeterEngineImpl: Starting backing
> engine on 1099
> > 2005/09/22 11:49:27 ERROR -
> jmeter.engine.RemoteJMeterEngineImpl: rmiregistry needs to
> be running to start
> > JMeter in server mode
> > java.rmi.ServerException: RemoteException occurred in server thread;
> nested exception is:
> > java.rmi.UnmarshalException: error unmarshalling arguments; nested
> exception is:
> > java.net.MalformedURLException: no protocol:
> Files\Java\jakarta-jmeter-2.1\lib\avalon-framework-4.1.4.jar
> > 2005/09/22 11:49:27 ERROR - jmeter.JMeter: Giving up, as server failed
> with: java.rmi.RemoteException: Cannot start.
> > See server log file.
> > at
> org.apache.jmeter.engine.RemoteJMeterEngineImpl.init(RemoteJMeterEngineImpl.java:60)
> > at org.apache.jmeter.engine.RemoteJMeterEngineImpl.
> (RemoteJMeterEngineImpl.java:46)
> > at org.apache.jmeter.JMeter.startServer(JMeter.java:376)
> > at org.apache.jmeter.JMeter.start(JMeter.java:237)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> Source)
> > at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at org.apache.jmeter.NewDriver.main(NewDriver.java:139)
> >
> > even though rmiregistry is running on "B" !!!. All attempts to get jmeter
> to run the remote copy on "B" from local "A" fail. Anyone any ideas ?
> > --
> > Sent from the JMeter - User forum at Nabble.com:
> >
> http://www.nabble.com/Remote-Testing-Problem-t64661.html#a928455
> >
> >
>

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


Re: Remote Testing Problem

Posted by sebb <se...@gmail.com>.
What commands are you using to start RMI and JMeter on "B"?

S.
On 22/09/05, bunyanjo (sent by Nabble.com) <li...@nabble.com> wrote:
>
> I have read all the threads on this problem but I still get "Bad Call to Remote Host" on my client Jmeter Gui platform.
>
> Heres my situation : 2 platforms on same network segment, no firewall, both identical builds ( Windows Server 2003 Standard. jre1.5.0_01, jmeter2.1,jaf-1.0.2, javamail-1.3.3 ). On jmeter gui box "A" I have edited the jmeter.properties file to include IP of remote client "B". no changes at all on B.
> When I start rmiregistry on B, ( via a DOS session ) then start jmeter in server mode, jmeter falls over back to the DOS prompt. Checking "B"'s jmeter.log file I get this :
>
> 2005/09/22 11:49:27 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_GB
> 2005/09/22 11:49:27 INFO  - jmeter.JMeter: Version 2.1
> 2005/09/22 11:49:27 INFO  - jmeter.JMeter: java.version=1.5.0_04
> 2005/09/22 11:49:27 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The Apache Software Foundation
> 2005/09/22 11:49:27 INFO  - jmeter.engine.RemoteJMeterEngineImpl: Starting backing engine on 1099
> 2005/09/22 11:49:27 ERROR - jmeter.engine.RemoteJMeterEngineImpl: rmiregistry needs to be running to start
> JMeter in server mode
>        java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
>        java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>        java.net.MalformedURLException: no protocol: Files\Java\jakarta-jmeter-2.1\lib\avalon-framework-4.1.4.jar
> 2005/09/22 11:49:27 ERROR - jmeter.JMeter: Giving up, as server failed with: java.rmi.RemoteException: Cannot start.
> See server log file.
>        at org.apache.jmeter.engine.RemoteJMeterEngineImpl.init(RemoteJMeterEngineImpl.java:60)
>        at org.apache.jmeter.engine.RemoteJMeterEngineImpl. (RemoteJMeterEngineImpl.java:46)
>        at org.apache.jmeter.JMeter.startServer(JMeter.java:376)
>        at org.apache.jmeter.JMeter.start(JMeter.java:237)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at org.apache.jmeter.NewDriver.main(NewDriver.java:139)
>
> even though rmiregistry is running on "B" !!!. All attempts to get jmeter to run the remote copy on "B" from local "A" fail. Anyone any ideas ?
> --
> Sent from the JMeter - User forum at Nabble.com:
> http://www.nabble.com/Remote-Testing-Problem-t64661.html#a928455
>
>

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