Skip to content
Permalink
Browse files
Add documentation for the feature flag jmeter.regex.engine
  • Loading branch information
FSchumacher committed Mar 5, 2022
1 parent 1d1a548 commit 619bd069e87249542bda6b66285e3b6364b5692d
Showing 3 changed files with 21 additions and 0 deletions.
@@ -1127,6 +1127,14 @@ cookies=cookies
# If you want to use Rhino on JDK8, set this property to true
#javascript.use_rhino=false

# Ability to switch out the old Oro Regex implementation with the JDK built-in implementation
# Any value different to 'oro' will disable the Oro implementation and enable the JDK based.
#jmeter.regex.engine=oro

# We assist the JDK based Regex implementation by caching Pattern objects. The size of the
# cache can be set with this setting. It can be disabled by setting it to '0'.
#jmeter.regex.patterncache.size=1000

# Number of milliseconds to wait for a thread to stop
#jmeterengine.threadstop.wait=5000

@@ -1426,6 +1426,17 @@ JMETER-SERVER</source>
If you want to use Rhino, set this value to <code>true</code></note>
Defaults to: <code>false</code>
</property>
<property name="jmeter.regex.engine">
Ability to switch out the old Oro Regex implementation with the JDK built-in implementation.
Any value different to <code>oro</code> will disable the Oro implementation and enable the JDK based.
<note>We intend to switch the default to the JDK based one in a later version of JMeter.</note>
Defaults to: <code>oro</code>
</property>
<property name="jmeter.regex.patterncache.size">
We assist the JDK based Regex implementation by caching Pattern objects. The size of the
cache can be set with this setting. It can be disabled by setting it to <code>0</code>.
Defaults to: <code>1000</code>
</property>
<property name="jmeterengine.threadstop.wait">
Number of milliseconds to wait for a thread to stop.<br/>
Defaults to: <code>5000</code>
@@ -41,6 +41,8 @@ a summary of the pattern matching characters</a>
There is also documentation on an older incarnation of the product at
<a href="http://www.savarese.org/oro/docs/OROMatcher/index.html">OROMatcher User's guide</a>, which might prove useful.
</p>
<note>With JMeter version 5.5 the Regex implementation can be switched from Oro to the JDK based one by setting
the JMeter property <code>jmeter.regex.engine</code> to some value different than <code>oro</code>.</note>
<p>
The pattern matching is very similar to the pattern matching in Perl.
A full installation of Perl will include plenty of documentation on regular expressions - look for <code>perlrequick</code>,

0 comments on commit 619bd06

Please sign in to comment.