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/08/07 16:41:22 UTC

DO NOT REPLY [Bug 43054] New: - SSLManager causes stress tests to saturate and crash

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=43054>.
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=43054

           Summary: SSLManager causes stress tests to saturate and crash
           Product: JMeter
           Version: 2.3.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: andreabaroncelli@tiscali.it


When attempting stress tests consisting of several sequential HTTPS user login 
requests at a relatively high rate (e.g. 200 threads or more at a rate of 1 
per second, i.e. a 200 second ramp-up period or less), I noticed that after 
some initial successful iterations all the successive authentications failed 
with timeout errors.
By inspecting the code I found an apparent contradiction in the following 
method of the class org.apache.jmeter.util.SSLManager:

/**
 * Static accessor for the SSLManager object. The SSLManager is a singleton.
*/
public static final SSLManager getInstance() {
  if (null == SSLManager.manager) {
    return new JsseSSLManager(SSLManager.sslProvider);
  }

  return SSLManager.manager;
}

As you can see, no caching is performed on the object SSLManager.manager (that 
remains unused), which causes high memory consumption and is likely to be the 
responsible of the observed faulty behaviour. By replacing

    return new JsseSSLManager(SSLManager.sslProvider);

with

    SSLManager.manager = new JsseSSLManager(SSLManager.sslProvider);

I could solve my issue.

-- 
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 43054] - SSLManager causes stress tests to saturate and crash

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=43054>.
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=43054


andreabaroncelli@tiscali.it changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|jmeter-                     |andreabaroncelli@tiscali.it
                   |dev@jakarta.apache.org      |
             Status|NEW                         |ASSIGNED




------- Additional Comments From andreabaroncelli@tiscali.it  2007-08-07 07:44 -------
Created an attachment (id=20613)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20613&action=view)
Result of `diff -u SSLManager.java.orig SSLManager.java` 


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