You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Evanthika Amarasiri (JIRA)" <ji...@apache.org> on 2007/11/06 10:52:50 UTC
[jira] Created: (SYNAPSE-173) When sending requests through JMeter,
the number of requests that passes exceeds the maximum number of requests
allowed
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
[jira] Resolved: (SYNAPSE-173) When sending requests through
JMeter, the number of requests that passes exceeds the maximum number of
requests allowed
Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SYNAPSE-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asankha C. Perera resolved SYNAPSE-173.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.1
Assignee: indika priyantha kumara
Fixed by Indika
> 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
> Assignee: indika priyantha kumara
> Fix For: 1.1
>
>
> 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