On 31 August 2010 21:11, Himanshu Ghai <himanshug...@gmail.com> wrote: > It executes on the controller machine when I launch jmeter with this command > > ./jmeter -t plan_xxx.jmx -r > > then I run it on the configured remote hosts using menu option..it doesn't > execute there > on the remote hosts. one thing i noticed is that this code(.bsh) gets > executed not when > i run the test plan but when I launch jmeter...
Yes, that is what is supposed to happen - it is a startup script. > by listener i meant our custom code that looks for incoming requests run by > the > .bsh file.. > > Himanshu > > On Tue, Aug 31, 2010 at 11:55 AM, sebb <seb...@gmail.com> wrote: > >> On 31 August 2010 19:46, Himanshu Ghai <himanshug...@gmail.com> wrote: >> > yes Sebb, jmeter controller machine and host servers have same >> > jmeter.properties >> > file. >> > >> > this line server initialization launches our custom code in startup.bsh >> that >> > starts a >> > listener (our modification): >> > >> > beanshell.server.file=../extras/startup.bsh >> >> So does the startup.bsh file gete executed or not? >> >> Note that listeners are treated specially by the JMeter client-server >> code - the test plan is actually changed on the fly when sending >> listeners to the server. >> This is necessary to ensure that the server listener code can send the >> sample data back to the client. >> >> > Other properties from jmeter.properties file are picked alright.. >> > >> > Many thanks for looking into this >> > >> > Himanshu >> > >> > >> > >> > On Tue, Aug 31, 2010 at 11:03 AM, sebb <seb...@gmail.com> wrote: >> > >> >> On 31 August 2010 18:30, Himanshu Ghai <himanshug...@gmail.com> wrote: >> >> > Greetings Jmeter users, >> >> > >> >> > In the jmeter.properties file under beanshell configuration we >> included a >> >> > modified startup.bsh file. Also changed the init >> >> > configuration. Everything works alright as expected if we launch the >> test >> >> > locally. However when we start the test from >> >> > a remote machine, the server initialization file under beanshell >> >> > configuration isn't executed. >> >> >> >> Did you update the server's copy of jmeter.properties file? >> >> >> >> > I have been struggling with it for a while..any help is appreciated.. >> >> > >> >> > Thanks >> >> > Himanshu >> >> > >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org >> >> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org >> >> >> >> >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org >> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org