jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Schumacher <felix.schumac...@internetallee.de>
Subject Re: Issue with Search replace functionality in jmeter
Date Sat, 29 Apr 2017 09:40:33 GMT
Am 28.04.2017 um 08:25 schrieb mitsm:
> Hello,
>
> I was trying to do search and replace in jmeter (3.2 r1790748) for a change
> in URL for my application. I did as shown in the snaps below but found that
> the search replace was stuck and did not responded even after about 30 mins.
>
> I did a bit of digging using jvisual vm and found that the method
> "org.apache.jorphan.util.JOrphanUtils.replaceAllWithRegex()" had the highest
> self time and it kept increasing with time (obviously!).
>
> <http://www.jmeter-archive.org/file/n5725533/jMeter_Search_Replace_Snap.png>
>
> <http://www.jmeter-archive.org/file/n5725533/jMeter_Search_Replace_snap_2.png>
>
> <http://www.jmeter-archive.org/file/n5725533/jMeter_Search_Replace_Log.png>
>
> Seems to be a bug. Can i please get some suggestions?
I just filed a bug https://bz.apache.org/bugzilla/show_bug.cgi?id=61054

The problem is, that you are replacing a string with a string, that 
includes the search. That leads to an endless loop in 
JOrphanUtils#replaceAllWithRegex.

A simple testcase would be to add a ThreadGroup containing a HTTP 
Sampler with a Parameter having a key "name" and a value "abc".

Now, if one does a find replace with "abc" as the search and "abcabc" as 
the replacement, "replace all" will never come to a halt :(

Regards,
  Felix

>
>
>
> --
> View this message in context: http://www.jmeter-archive.org/Issue-with-Search-replace-functionality-in-jmeter-tp5725533.html
> Sent from the JMeter - Dev mailing list archive at Nabble.com.



Mime
View raw message