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 49A5D97BA for ; Tue, 11 Oct 2011 11:53:34 +0000 (UTC) Received: (qmail 16605 invoked by uid 500); 11 Oct 2011 11:53:33 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 16512 invoked by uid 500); 11 Oct 2011 11:53:33 -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 16497 invoked by uid 99); 11 Oct 2011 11:53:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 11:53:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 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, 11 Oct 2011 11:53:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D2F843609D for ; Tue, 11 Oct 2011 11:53:11 +0000 (UTC) Date: Tue, 11 Oct 2011 11:53:11 +0000 (UTC) From: "Danilo Ghirardelli (Commented) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1558909412.357.1318333991865.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <565820444.19027.1297811157592.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JCR-2892) Large fetch sizes have potentially deleterious effects on VM memory requirements when using Oracle MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-2892?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D131249= 50#comment-13124950 ]=20 Danilo Ghirardelli commented on JCR-2892: ----------------------------------------- I'm sorry if I wasn't clear, but the value of 100 just worked for my applic= ation (clustered Magnolia CMS), and it was the maximum fetchSize value that= allowed the application to start. Anyway, at 100 the memory occupation was= quite high, so maybe that value was good in my case but may crash in other= cases. Would it be possible to avoid setting a fetchSize at all (except fo= r postgresql)? Performance were always good and there was no problem until = it was set for the first time in JCR-2832... =20 > Large fetch sizes have potentially deleterious effects on VM memory requi= rements when using Oracle > -------------------------------------------------------------------------= ------------------------- > > Key: JCR-2892 > URL: https://issues.apache.org/jira/browse/JCR-2892 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core, sql > Affects Versions: 2.2.2 > Environment: Oracle 10g+ > Reporter: Christopher Elkins > Assignee: Claus K=C3=B6ll > Fix For: 2.2.10, 2.3.1 > > Attachments: JCR-2892.patch, oracleFetchSize.patch > > > Since Release 10g, Oracle JDBC drivers use the fetch size to allocate buf= fers for caching row data. > cf. http://www.oracle.com/technetwork/database/enterprise-edition/memory.= pdf > r1060431 hard-codes the fetch size for all ResultSet-returning statements= to 10,000. This value has significant, potentially deleterious, effects on= the heap space required for even moderately-sized repositories. For exampl= e, the BUNDLE table (from 'oracle.ddl') has two columns -- NODE_ID raw(16) = and BUNDLE_DATA blob -- which require 16 b and 4 kb of buffer space, respec= tively. This requires a buffer of more than 40 mb [(16+4096) * 10000 =3D 41= 120000]. > If the issue described in JCR-2832 is truly specific to PostgreSQL, I thi= nk its resolution should be moved to a PostgreSQL-specific ConnectionHelper= subclass. Failing that, there should be a way to override this hard-coded = value in OracleConnectionHelper. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira