Hi Mike:
> Yes, using 1.8. I don't know what all this talk of a pause in the
> script is about.
I have everything starting from a batch file and wanted to give
rmiregistry time to load before calling jmeter -s. The plan was to create
a package on cd. The computers I have available are public user rooms and
I certainly wouldn't want to leave the software on the machines. Would
make a nice DoS attack... JMeter would be copied during testing to the PC
and Java would run off the CD. I even slapped a little java app together
to send the IP of the machine to the admin. who would be running the
JMeter client. That way I could just slap in a CD into each machine, run
the batch file and take off. After testing, run clean script and collect
CDs.
> I start rmiregistry on one command line, and then go
> start jmeter in a different one. I never use system-wide classpaths, as
> that's a recipe for hard-to-debug problems. instead, I define a more
> local classpath in the command line for rmiregistry, and then start
> rmiregistry.
I believe it would be a local classpath if run from batch file. No?
Anyway, I tried your method and still didn't work. :(
I included my steps below sig. if interested.
> Admittedly, windows doesn't localize such things as well
> as L/Unix, but, that's how I do it since I'm more used to Unix in that
> regard.
Agreed.
> So, anyway, I just tried it again, and it worked perfectly my first try.
Kick a guy when he's down huh? ;)
> I am running Windows2000, jdk1.4.0, and latest JMeter code from CVS, which is
> not different from 1.8 in this area.
Hmmm. Only difference is you're using the jdk and I'm using the jre. jdk
maybe come with libraries not in jre? I've downloaded jdk and will give
that a try.
Thanks For The Tips and Confirmation!
-Ryan
Unnsuccessful Steps taken::
Open cmd shell (1st attempt JMeter bin, then 2nd attempt in JRE bin):
Set a temp var. for ease of use
C:\j2re1.4.0_03\bin>set JMHOME=c:\Progra~1\JavaSoft\JMeter\jakarta-jmeter
Set the path
C:\j2re1.4.0_03\bin>set
CLASSPATH=%JMHOME%\lib\ext\ApacheJMeter_core.jar;%JMHOME
%\lib\jorphan.jar;%JMHOME%\lib\logkit-1.0.1.jar
Display the path
C:\j2re1.4.0_03\bin>echo %classpath%
c:\Progra~1\JavaSoft\JMeter\jakarta-jmeter\lib\ext\ApacheJMeter_core.jar;c:\Prog
ra~1\JavaSoft\JMeter\jakarta-jmeter\lib\jorphan.jar;c:\Progra~1\JavaSoft\JMeter\
jakarta-jmeter\lib\logkit-1.0.1.jar
(confirmed paths correct by copy pasting and performing directory
listing)
Start it
C:\j2re1.4.0_03\bin>start rmiregistry
Check RMI is running on default port
C:\j2re1.4.0_03\bin>netstat -a | find "1099"
TCP russo-dell:1099 russo-dell.acs.univ.albany.edu:0
LISTENING
Open cmd shell in JMeter bin dir. and run JMeter in server mode
(1st attempt opened fresh cmd shell, 2nd cd'd from the shell used to start
rmiregistry):
C:\Program Files\JavaSoft\JMeter\jakarta-jmeter\bin>jmeter -s
First line of log Reports:
01/02/2003 12:48:51 PM ERROR - jmeter.engine: 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\JavaSoft\JMeter\jakarta-jmeter\lib\ant-1.5-optional.jar
However a check of RMI status again reveals:
H:\>netstat -a | find "1099"
TCP russo-dell:1099 russo-dell.acs.univ.albany.edu:0
LISTENING
TCP russo-dell:1304 russo-dell.acs.univ.albany.edu:1099
TIME_WAIT
jmeter still running. Start GUI, Open a script, attempt to run remote
script for 127.0.0.1:
JMeter GUI reports "Bad call to Host"
jmeter log now shows:
01/02/2003 1:05:25 PM ERROR - jmeter.gui: java.rmi.NotBoundException:
JMeterEngine
etc....
RMI again:
H:\>netstat -a | find "1099"
TCP russo-dell:1099 russo-dell.acs.univ.albany.edu:0 LISTENING
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>