On 24/05/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,

We use a regex extractor to extract a ref from an XML/RPC message, and
then use it in the next request to respond back.  (An acknowledgement as
we call it )

The test runs for several hours over night.  The test has many other
thread groups which send different messages.  This is the only group that
uses a regex extractor.

During the run, 9961 ack's are sent.  out of these, 18 fail because the
regex failed to extract the correct message ref.  However our DB stores
the xml sent back and forth, and if i paste the xml into this link below:

http://jakarta.apache.org/oro/demo.html

then i can see that the message ref is correctly extracted.

So my question is, why am i getting these occasional failures?  Or more to

Perhaps there is a thread-safety problem.

Does the RE use fixed strings, or are any variables used?

How many threads in the thread group?

the point, how can I investigate further?

You could use the "Save Responses"  Post-Processor as a child of the
samplers to create a copy of all the responses.

Is there any pattern to the failures?
Do they match the wrong text, or do they fail to match at all?

( Also; I have 2 regex's following each other, would it be more efficient
if they could be combined into 1, and we could map the occurrance number
to the variable name? )

Very difficult to say in general - you would have to test it, as
different REs can have very different perfomance characteristics.

But it is likely that a simple combination such as

  num1=(\d+)\s+num2=(\d+)

would be more efficient than

 num1=(\d+)

followed by

  num2=(\d+)


Thanks,
Dan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to