https://issues.apache.org/bugzilla/show_bug.cgi?id=47420
Summary: ldap extended request not closing connections during
add request
Product: JMeter
Version: 2.3.3
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
During load testing of a bind,add,search,delete request I noticed connections
to the LDAP server we're being left open until the first full GC occured.
Upon further investigation I believe I have tracked the bug down. I have
tested with the new code and it is now closing the connections properly.
In the Class org.apache.jmeter.protocol.ldap.sampler.LDAPExtSampler
Method Name: addTest
old code:
try {
res.sampleStart();
ctx = ldap.createTest(dirContext, getUserAttributes(),
getBaseEntryDN());
} finally {
res.sampleEnd();
}
new code:
try {
res.sampleStart();
DirContext ctx = ldap.createTest(dirContext, getUserAttributes(),
getBaseEntryDN());
ctx.close();
} finally {
res.sampleEnd();
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]