Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D4E07FA8 for ; Tue, 26 Jul 2011 14:25:36 +0000 (UTC) Received: (qmail 16217 invoked by uid 500); 26 Jul 2011 14:25:36 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 15714 invoked by uid 500); 26 Jul 2011 14:25:34 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 15247 invoked by uid 99); 26 Jul 2011 14:25:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 14:25:33 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 14:25:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 15FC187322 for ; Tue, 26 Jul 2011 14:25:10 +0000 (UTC) Date: Tue, 26 Jul 2011 14:25:10 +0000 (UTC) From: "angela (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1216904531.7481.1311690310086.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1199060144.5619.1311114537976.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JCR-3026) davex remoting has a performance bottleneck due limit of 2 http connections MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071119#comment-13071119 ] angela commented on JCR-3026: ----------------------------- applied patch with quite some modification. specially the comments did not match the code which made it a bit cumbersome. in addition it would be nice if the formatting would match the overall coding style used in jackrabbit. thanks anyway for your effort. > davex remoting has a performance bottleneck due limit of 2 http connections > ---------------------------------------------------------------------------- > > Key: JCR-3026 > URL: https://issues.apache.org/jira/browse/JCR-3026 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-spi2dav > Affects Versions: 2.2.5 > Reporter: chad davis > Assignee: angela > Labels: dav, davex, performance, remoting > Fix For: 2.3.0 > > Attachments: JCR-3026_Spi2davRepositoryServiceFactory.java.patch, JCR-3026_Spi2davexRepositoryServiceFactory.java.patch, JCR-3026_org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.java.patch, JCR-3026_org.apache.jackrabbit.spi2davex.RepositoryServiceImpl.java.patch > > > The spi2dav service implementation use of HttpClient did not support configuration of the maximum amount of http connections to the server. The default value, in the HttpClient code, is two. This was a performance bottleneck. This work makes the number of connections configurable via a parameter to the map passed to the repository factory. > It also fixes a concurrency issue which was exposed by the increased concurrency effected by this work. This fix is a replacement of a HashMap cache of client connections with a ConcurrentHashMap, thanks to the java 1.5 available in Jackrabbit 2.x > USAGE: > Set the number of connections (Spi2davRepositoryServiceFactory.PARAM_MAX_HTTP_CONNECTIONS) when creating a factory via the dav or davex rep factories. Default is 20. > NOTE: > See also the server side fixes: JCR-3027 The patch on that ticket allows configuration of the concurrency level on the server, which should be tuned in conjunction with the client side connection levels. > -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira