synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evanthika Amarasiri (JIRA)" <j...@apache.org>
Subject [jira] Created: (SYNAPSE-173) When sending requests through JMeter, the number of requests that passes exceeds the maximum number of requests allowed
Date Tue, 06 Nov 2007 09:52:50 GMT
When sending requests through JMeter, the number of requests that passes exceeds the maximum
number of requests allowed
-----------------------------------------------------------------------------------------------------------------------

                 Key: SYNAPSE-173
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-173
             Project: Synapse
          Issue Type: Bug
          Components: Extension Mediators
    Affects Versions: 1.1-QA-B3
         Environment: Windows XP, JDK1.5.0_06, Jakarta-jmeter-2.2
            Reporter: Evanthika Amarasiri


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>
***********************************************************************************************************************************************

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message