jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Z W" <mpc8...@gmail.com>
Subject Re: JMeter Ant Newbie Question
Date Wed, 05 Mar 2008 17:54:59 GMT
anyone ?

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

> Where's the right place to ask JMeter Ant questions ?
>
> thanks
>
>   On Wed, Feb 27, 2008 at 9:22 AM, sebb <sebbaz@gmail.com> wrote:
>
> > On 27/02/2008, Z W <mpc8250@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 <sebbaz@gmail.com> wrote:
> > >
> > >  >  On 27/02/2008, Z W <mpc8250@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
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message