On 27/02/2008, Z W <[EMAIL PROTECTED]> wrote: > sebb > Thanks for responding. > non-GUI works fine. > > 1 - Are the syxtax for Ant JMeter correct ?
Check the documentation on the website - it's not maintained by the JMeter developers. > 2 - <jvmarg value="-XX:NewSize=128m -XX:MaxNewSize=128m"/> > Is such declaration allowed or does Ant require them to be declared > separately ? No and yes. > 3 - Am I still required to start jmeter-server manually before I could start > using > JMeter Ant ? I'm unsure by declaring runremote="true" would cause Ant to > trigger > jmeter-server by itself. No idea what runremote does, but it's unlikely to be able to start a remote server. > 4 - I have a windows box running Ant script, trying to start JMeter on > another linux box. Try using GUI mode first, then non-GUI, then Ant. > Are these values necessary to kick off a Jmeter test run ? What are the > allowable sizes > for memory ? > Check the JVM documentation. > > <!-- jvmarg value="-Xms128m -Xmx258m"/> > > > > <jvmarg value="-XX:NewSize=128m -XX:MaxNewSize=128m"/> > > > > <jvmarg value="-XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=50"/> > > > > <jvmarg value="-XX:MaxTenuringThreshold=2"/> > > > > <jvmarg value="-XX:MaxLiveObjectEvacuationRatio=20"/> > > > > <jvmarg value="-Dsun.rmi.dgc.client.gcInterval=600000 - > > Dsun.rmi.dgc.server.gcInterval=600000"/> > > > > <jvmarg value="-XX:PermSize=64m -XX:MaxPermSize=64m"/--> > > > > > > > On Wed, Feb 27, 2008 at 5:31 AM, sebb <[EMAIL PROTECTED]> wrote: > > > On 27/02/2008, Z W <[EMAIL PROTECTED]> wrote: > > > Hi > > > > > > I've spend time reading articles to get Jmeter to work with Ant. > > > But I'm getting into many errors and need you help to make progress. > > > > > > PS C:\> ant -buildfile APMRun_main.xml jmeter_main > > > Buildfile: APMRun_main.xml > > > jmeter_main: > > > [echo] basedir is C:\ > > > [jmeter] Executing test plan: C:\test_cases\DD_RD_SimSwap.jmx ==> > > > C:\test_cases\DD_RD_SimSwap.jtl > > > [jmeter] Error in NonGUIDriver > > > com.thoughtworks.xstream.converters.ConversionException: > > WebServiceSampler : > > > WebServic > > > eSampler > > > [jmeter] ---- Debugging information ---- > > > [jmeter] message : WebServiceSampler : WebServiceSampler > > > [jmeter] line number : 48 > > > [jmeter] path : > > > /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree/WebServiceSampler > > > [jmeter] cause-message : WebServiceSampler : WebServiceSampler > > > [jmeter] class : org.apache.jmeter.save.ScriptWrapper > > > [jmeter] cause-exception : > > > com.thoughtworks.xstream.alias.CannotResolveClassException > > > [jmeter] required-type : > > > org.apache.jorphan.collections.ListedHashTree > > > [jmeter] ------------------------------- > > > BUILD FAILED > > > C:\APMRun_main.xml:485: Could not read jmeter resultLog: > > > C:\DD_RD_SimSwap.jtl (The system cannot find the file specified) > > > Total time: 1 second > > > > > > My Ant script > > > > > > > > > <jmeter jmeterhome="C:\jakarta-jmeter-2.1rc1" > > > > > > testplan="${basedir}\test_cases\DD_RD_SimSwap.jmx" > > > > > > resultlog="${basedir}\test_cases\DD_RD_SimSwap.jtl" > > > > > > runremote="true" > > > > > > failureproperty="fail_jmx"> > > > > > > <property name="remote_hosts" value="lin2,lin5" /> > > > > > > <property name="jmeter.save.saveservice.assertion_results" value="all" > > /> > > > > > > <!-- jvmarg value="-Xms128m -Xmx258m"/> > > > > > > <jvmarg value="-XX:NewSize=128m -XX:MaxNewSize=128m"/> > > > > > > <jvmarg value="-XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=50"/> > > > > > > <jvmarg value="-XX:MaxTenuringThreshold=2"/> > > > > > > <jvmarg value="-XX:MaxLiveObjectEvacuationRatio=20"/> > > > > > > <jvmarg value="-Dsun.rmi.dgc.client.gcInterval=600000 - > > > Dsun.rmi.dgc.server.gcInterval=600000"/> > > > > > > <jvmarg value="-XX:PermSize=64m -XX:MaxPermSize=64m"/--> > > > > > > </jmeter> > > > > > > <xslt in="${basedir}\test_cases\DD_RD_SimSwap.jtl" > > > > > > out="${basedir}\test_cases\DD_RD_SimSwap.html" > > > > > > style="${basedir}\test_cases\DD_RD_SimSwap.xsl"/> > > > > > > The jvm were commented because ant complains that > > > > > > [jmeter] Could not create the Java virtual machine. > > > [jmeter] Invalid initial heap size: -Xms128m -Xmx258m > > > > > > Q1 - Why can't jmeter task accept those values ? Or is it a semantic > > error > > > ant doesn't understand ? > > > > It's not the JMeter task that is complaining, it seems to be the JVM > > > > > Q2 - I need help to figure out what those errors are. Any help is > > greatly > > > appreciated. > > > > I suggest you try running the script in non-GUI mode first: > > > > set JVM_ARGS="-XX:PermSize=64m -XX:MaxPermSize=64m ... etc." > > jmeter -n -t DD_RD_SimSwap.jmx -l DD_RD_SimSwap.jtl > > > > This will allow you to test the JVM options quickly. > > > > Also 2.1RC1 is rather old, and is not a final release. > > > > > > > > > > > Thanks > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]