You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Z W <mp...@gmail.com> on 2008/02/27 13:41:29 UTC

JMeter Ant Newbie Question

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 ?

Q2 - I need help to figure out what those errors are. Any help is greatly
appreciated.



Thanks

Re: JMeter Ant Newbie Question

Posted by Z W <mp...@gmail.com>.
anyone ?

On Wed, Feb 27, 2008 at 10:16 AM, Z W <mp...@gmail.com> wrote:

> Where's the right place to ask JMeter Ant questions ?
>
> thanks
>
>   On Wed, Feb 27, 2008 at 9:22 AM, sebb <se...@gmail.com> wrote:
>
> > On 27/02/2008, Z W <mp...@gmail.com> 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 <se...@gmail.com> wrote:
> > >
> > >  >  On 27/02/2008, Z W <mp...@gmail.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
> > >  > For additional commands, e-mail:
> > jmeter-user-help@jakarta.apache.org
> > >  >
> > >  >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>

Re: JMeter Ant Newbie Question

Posted by Z W <mp...@gmail.com>.
Where's the right place to ask JMeter Ant questions ?

thanks

On Wed, Feb 27, 2008 at 9:22 AM, sebb <se...@gmail.com> wrote:

> On 27/02/2008, Z W <mp...@gmail.com> 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 <se...@gmail.com> wrote:
> >
> >  >  On 27/02/2008, Z W <mp...@gmail.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
> >  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >  >
> >  >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: JMeter Ant Newbie Question

Posted by sebb <se...@gmail.com>.
On 27/02/2008, Z W <mp...@gmail.com> 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 <se...@gmail.com> wrote:
>
>  >  On 27/02/2008, Z W <mp...@gmail.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>

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


Re: JMeter Ant Newbie Question

Posted by Z W <mp...@gmail.com>.
sebb
Thanks for responding.
non-GUI works fine.

1 - Are the syxtax for Ant JMeter correct ?
2 - <jvmarg value="-XX:NewSize=128m -XX:MaxNewSize=128m"/>
Is such declaration allowed  or does Ant require them to be declared
separately ?
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.
4 - I have a windows box running Ant script, trying to start JMeter on
another linux box.
Are these values necessary to kick off a Jmeter test run ? What are the
allowable sizes
for memory ?

>  <!-- 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 <se...@gmail.com> wrote:

>  On 27/02/2008, Z W <mp...@gmail.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: JMeter Ant Newbie Question

Posted by sebb <se...@gmail.com>.
On 27/02/2008, Z W <mp...@gmail.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: JMeter Ant Newbie Question

Posted by lmaddi <la...@gmail.com>.
Hi, 

Were you able to find solution to your problem, I am using Maven JMeter
Plugin and when I run a web service test plan I get the same error you
mentioned 

Error in NonGUIDriver
com.thoughtworks.xstream.converters.ConversionException: WebserviceSampler :
WebserviceSampler
---- Debugging information ----
required-type       : org.apache.jorphan.collections.ListedHashTree 
cause-message       : WebserviceSampler : WebserviceSampler 
class               : org.apache.jmeter.save.ScriptWrapper 
message             : WebserviceSampler : WebserviceSampler 
line number         : 34 
path                :
/jmeterTestPlan/hashTree/hashTree/hashTree/hashTree/WebserviceSampler 
cause-exception     :
com.thoughtworks.xstream.alias.CannotResolveClassException 

I changed the jmeter properties file to include this in the
jmeter.properties file
jmeter.save.saveservice.assertion_results=all
Set the JVM Args as mentioned in the thread, but still the same
When I debug the code, it fails at JMeter start method

Any help would be greatly appreciated. 

Thanks!


zw 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 ?
> 
> Q2 - I need help to figure out what those errors are. Any help is greatly
> appreciated.
> 
> 
> 
> Thanks
> 
> 

-- 
View this message in context: http://www.nabble.com/JMeter-Ant-Newbie-Question-tp15712457p23223467.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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