Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 64905 invoked from network); 5 Oct 2007 06:43:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2007 06:43:11 -0000 Received: (qmail 41264 invoked by uid 500); 5 Oct 2007 06:43:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 41232 invoked by uid 500); 5 Oct 2007 06:43:00 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 41223 invoked by uid 99); 5 Oct 2007 06:43:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2007 23:43:00 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 06:43:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 93267714035 for ; Thu, 4 Oct 2007 23:42:50 -0700 (PDT) Message-ID: <19453648.1191566570582.JavaMail.jira@brutus> Date: Thu, 4 Oct 2007 23:42:50 -0700 (PDT) From: "mike bell (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3106) securityMechansim=8 causes slowdown on some JVMs? In-Reply-To: <31773693.1191565792915.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532581 ] mike bell commented on DERBY-3106: ---------------------------------- I guess I should also mention. The reason why I unfairly (and perhaps wrongly) think it might be the IBM JVM, is because on other platforms (and older SLES) the SUN JVM was used. > securityMechansim=8 causes slowdown on some JVMs? > ------------------------------------------------- > > Key: DERBY-3106 > URL: https://issues.apache.org/jira/browse/DERBY-3106 > Project: Derby > Issue Type: Bug > Components: Network Client > Affects Versions: 10.2.2.0 > Environment: IBM JVM 1.42, SLES 10 or SLES 10 SP1 > Reporter: mike bell > Attachments: goo.jsp > > > 1. We have a Web App that uses Derby 10.2, doing client/server. It is a Java 1.4 app > 2. We run it extensively on Windows (JDK 1.4,1.5/Tomcat 4.1/5.5), SLES 9, SLES 10, OES, and NetWare > 3. Recently I added securityMechanism=8 to the JDBC URL to at least encrypt the password (it's all local right now, but it was a nicety). Extensive testing on Windows proved flawless. > 4. Immediately after releasing to Beta testers, we heard the "UI" was slow. I traced this specifically to pages that accessed Derby Connections (or built them into a pool - there are depressing reasons why we don't do this all the time currently). > 5. The issue only occurs on SLES 10/10 SP1. It occurred for about 80% of users, and was oddly intermittent. The slowdown did NOT occur on initial login, but after they added some entries (adding some fields to some tables effectively). From then on, the slowdown was rampant and survived restarts. Even the login (which queries some DBs) was very very slow > 6. A test JSP page was created, which basically will be attached, but did nothing more than create a Connection, do a simple query, iterate the result set. Then do the same thing without the security Mechanism. Then spit out benchmark numbers. > On my box (Windows), the numbers were typically a total of less than 10 ms for the queries. On machines exhibiting the issue, they were 80 SECONDS! > As soon as the securityMechanism=8 was removed, the issue disappeared. > Now, I'm not really sure I should blame Derby. My offhand gut guess is there is something wrong with the IBM JVM 1.42, doing the encrypted password and Derby took a long time to timeout and then backed down to cleartext.. > But I don't have a lot of time to test this one out. So I'm mostly posting FYI. > (Additional: Connection logging was performed and not that interesting. Telnet to derby server was quick - it appears it is all in the client negotiating the connection that the slow down occurs). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.