Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-173

When sending requests through JMeter, the number of requests that passes exceeds the maximum number of requests allowed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-QA-B3
    • 1.1
    • Extension Mediators
    • None
    • Windows XP, JDK1.5.0_06, Jakarta-jmeter-2.2

    Description

      Invoked the client with 20 requests when the maximum number of requests allowed was 10 but it actually executed 12 and sometimes 11 requests. Tried with different values and the same thing occurred each time I tried.

      The policy configuration is as follows
      ***********************************************************************************************************************************************
      <definitions xmlns="http://ws.apache.org/ns/synapse">

      <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
      <parameter name="root">file:repository/</parameter>
      <parameter name="cachableDuration">15000</parameter>
      </registry>

      <localEntry key="thottlePolicy">
      <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
      xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">
      <throttle:ThrottleAssertion>
      <throttle:MaximumConcurrentAccess>10</throttle:MaximumConcurrentAccess>
      <wsp:All>
      <throttle:ID throttle:type="IP">Other</throttle:ID>
      <wsp:ExactlyOne>
      <wsp:All>
      <throttle:MaximumCount>10</throttle:MaximumCount>
      <throttle:UnitTime>800000</throttle:UnitTime>
      <throttle:ProhibitTimePeriod wsp:Optional="true">500</throttle:ProhibitTimePeriod>
      </wsp:All>
      <throttle:IsAllow>true</throttle:IsAllow>
      </wsp:ExactlyOne>
      </wsp:All>
      </throttle:ThrottleAssertion>
      </wsp:Policy>
      </localEntry>

      <sequence name="onAcceptSequence">.....</sequence>
      <sequence name="onRejectSequence" trace="enable">........</sequence>
      <in>
      <throttle onReject="onRejectSequence" onAccept="onAcceptSequence" id="A">
      <policy key="thottlePolicy"/>
      </throttle>
      </in>
      <out>
      <throttle id="A"/>
      <send/>
      </out>
      </definitions>
      ***********************************************************************************************************************************************

      Attachments

        Activity

          People

            indika Indika Kumara
            evanthika Evanthika Shiromali Amarasiri
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: