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]