You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2007/09/13 15:27:29 UTC
DO NOT REPLY [Bug 43384] New: - using semaphores in jmeter (block critical regions)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43384>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43384
Summary: using semaphores in jmeter (block critical regions)
Product: JMeter
Version: 2.3
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P2
Component: Main
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: christoph.schragen@gmx.at
hi,
in our testplans, we needed a sort of "semaphore" mechanism, e.g.:
- we have problems if more than 10 parallel logins to our webapp exists
- we have a lot of threads that create, rename and delete channels. one thread
can delete a channel that another thread tries to rename.
these are only 2 examples, but since we implemented this controller, we use it
very often.
for this improvement, JMeterUtils.java has methods for acquiring and releasing
semaphores. StandardJMeterEngine.java was patched to clear all semaphores when
starting a test (if someone stops the test and there exists a sempaphore that
was not released). Moreover, JMeterThread.java was patched, that all semaphores
in a threadgroup are released if the scheduler stops the test (before releasing
the semaphore with a sampler).
acquiring and releasing a semaphore can be either done by calling the 2 methods
acquireSemaphore and releaseSemaphore, or by using the 2 samplers that come
with the patch (Java Request). If you are interested in this Feature, i would
implement a SemaphoreSampler with a nice GUI :)
The sampler works like this:
With the "AcquireSemaphore" sampler, you can define the begin of the critical
region by calling the acquireSemaphore-function. It acquires the given number
of permits (count-parameter) from this semaphore, blocking until all are
available. When leaving the critical region, use the ReleaseSemaphore sampler
with the unique semaphore name as parameter.
setting the "count" parameter to "1" would cause this sampler to work like
a "mutex".
Semaphores are supported since Java 1.5, so the build script has to be updated
to build JMeter with Java Version 1.5.
greets,
chris
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 43384] - using semaphores in jmeter (block critical regions)
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43384>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43384
------- Additional Comments From sebb@apache.org 2007-09-13 07:58 -------
JMeter currently requires a minimum of Java 1.4.
We don't have plans to require Java 1.5 at present.
However the functionality would be useful.
I believe there is a library containing semaphores which runs on 1.4. Provided
that the license is compatible, we could use that.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 43384] - using semaphores in jmeter (block critical regions)
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43384>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43384
------- Additional Comments From sebb@apache.org 2007-12-05 17:27 -------
See also bug 36227
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 43384] - using semaphores in jmeter (block critical regions)
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43384>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43384
------- Additional Comments From christoph.schragen@gmx.at 2007-09-13 06:27 -------
Created an attachment (id=20817)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20817&action=view)
semaphore addon
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org