You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "BAZLEY, Sebastian" <se...@atosorigin.com> on 2004/08/24 18:15:08 UTC

JMeter.bat options (was: win 2000)

Indeed ... we should add some comments to the BAT file ...

It would be useful if most of the other stuff could be made optional.

S.
-----Original Message-----
From: Jordi Salvat i Alabart [mailto:jsalvata@atg.com]
Sent: 24 August 2004 16:58
To: JMeter Users List
Subject: Re: win 2000


or

set JVM_ARGS=-server

:-)

En BAZLEY, Sebastian ha escrit:
> JMETER_CMD_LINE_ARGS is set from the batch file parameters - %*
> 
> JVM_ARGS is presumably intended to be set before calling jmeter.bat:
> 
> set JVM_ARGS=-Dprop=eller
> jmeter -n -t test.jmx -l test.jtl
> 
> S.
> -----Original Message-----
> From: Michael Chandler [mailto:michaelc@browning.com]
> Sent: 24 August 2004 16:38
> To: JMeter Users List
> Subject: RE: win 2000
> 
> 
> Had to put the GC back in. So here are the changes I made for
> jmeter.bat:
> rem set HEAP="-Xms128m -Xmx128m"
> rem set NEW=-XX:NewSize=128m -XX:MaxNewSize=128m
>  
> set SURVIVOR=-XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=50%
> set TENURING=-XX:MaxTenuringThreshold=2
> set EVACUATION=-XX:MaxLiveObjectEvacuationRatio=20%
> set RMIGC=-Dsun.rmi.dgc.client.gcInterval=600000
> -Dsun.rmi.dgc.server.gcInterval=600000
> set PERM=-XX:PermSize=64m -XX:MaxPermSize=64m
> set DEBUG=-verbose:gc -XX:+PrintTenuringDistribution
> set SERV=-server
>  
> rem set ARGS=%NEW% %SURVIVOR% %TENURING% %EVACUATION% %RMIGC% %PERM%
> %DEBUG%
> set ARGS=%SURVIVOR% %TENURING% %EVACUATION% %RMIGC% %PERM% %DEBUG%
> %SERV%
>  
> rem java %JVM_ARGS% %ARGS% -jar ApacheJMeter.jar %JMETER_CMD_LINE_ARGS%
>  
> java %ARGS% -jar ApacheJMeter.jar
>  
> I don't get any errors. Also, I don't see where JMETER_CMD_LINE_ARGS or
> JVM_ARGS are being set to anything. Works without them................
>  
> -----Original Message-----
> From: Jordi Salvat i Alabart [mailto:jsalvata@atg.com] 
> Sent: Tuesday, August 24, 2004 9:05 AM
> To: JMeter Users List
> Subject: Re: win 2000
>  
> Sounds like a good plan.
>  
> On Unixes (checked Linux and Solaris) it's similar: all JDKs I have 
> (ranging from jdk1.3.1_07 to j2sdk1.4.2_05) have a 
> JAVA_HOME/jre/lib/i386/server/libjvm.so and .../client/libjvm.so.
>  

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


_______________________________________________________

This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the
sender does not warrant that this transmission is virus-free and will
not be liable for any damages resulting from any virus transmitted. 
_______________________________________________________


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


Re: Extracting Random Value from a Combobox

Posted by Michael Stover <ms...@apache.org>.
I don't think you can do that with regular expressions.  To do so would
require the matcher attempt to match multiple different ways against the
same text, and that's just not how they work.

Alternatively, you can sometimes use the HTML Link Parser for this sort
of thing.  I say 'sometimes' because it's a touchy piece of code that
likes things just so, but if your HTTP Request is otherwise
straightforward, you might be able to do so.  

The basics of using it involve attaching an HTML Link Parser to the
request you want to modify (ie, not the previous request as you would do
with the regular expression post processor).  Then, in your request you
have a parameter named "cbo_Type".  For the value of that parameter, put
'*'.

It might be as easy as that.  Or not :-)

-Mike

On Tue, 2004-08-24 at 15:55, Peter Bernier wrote:
> Hello,
> 
> I've been trying to figure out the correct regular expression to be
> using to extract a random value from a combobox (html <select>) and
> can't quite seem to get the syntax right.
> 
> I'm trying to use this expression in the Regular Expression field of a
> Regular Expression Extract Post Processor :
> 
> name="cbo_Type" size="1">[\W]*<option value="-1"
> SELECTED></option>[\w\W]*<option value="(\d*)"
> >[\w\W]*</option>[\W]*</select>
> 
> Where cbo_Type is the combobox that I want the values to come from and
> all values are positive integer numbers.
> 
> Sample code to apply the expression on :
> <select id="cbo_Type" name="cbo_Type" size="1">
> <option value="-1" SELECTED></option>
> <option value="5" >Value 5</option>
> <option value="1" >Value 1</option>
> <option value="3" >Value 3</option>
> <option value="2" >Value 2</option>
> <option value="4" >Value 4</option>
> </select>
> 
> Depending on the expression that I use, I only seem to be able to extract
> the first or last integer value (with separate expressions...).
> 
> I would greatly appreciate any help with this..
> 
> - Peter
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
-- 
Michael Stover <ms...@apache.org>
Apache Software Foundation


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


Extracting Random Value from a Combobox

Posted by Peter Bernier <jm...@binarytwo.com>.
Hello,

I've been trying to figure out the correct regular expression to be
using to extract a random value from a combobox (html <select>) and
can't quite seem to get the syntax right.

I'm trying to use this expression in the Regular Expression field of a
Regular Expression Extract Post Processor :

name="cbo_Type" size="1">[\W]*<option value="-1"
SELECTED></option>[\w\W]*<option value="(\d*)"
>[\w\W]*</option>[\W]*</select>

Where cbo_Type is the combobox that I want the values to come from and
all values are positive integer numbers.

Sample code to apply the expression on :
<select id="cbo_Type" name="cbo_Type" size="1">
<option value="-1" SELECTED></option>
<option value="5" >Value 5</option>
<option value="1" >Value 1</option>
<option value="3" >Value 3</option>
<option value="2" >Value 2</option>
<option value="4" >Value 4</option>
</select>

Depending on the expression that I use, I only seem to be able to extract
the first or last integer value (with separate expressions...).

I would greatly appreciate any help with this..

- Peter

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