Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 14432 invoked from network); 25 Jun 2008 19:09:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2008 19:09:36 -0000 Received: (qmail 49737 invoked by uid 500); 25 Jun 2008 19:09:37 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 49702 invoked by uid 500); 25 Jun 2008 19:09:37 -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 49691 invoked by uid 99); 25 Jun 2008 19:09:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 12:09:37 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 19:08:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 22C19234C14B for ; Wed, 25 Jun 2008 12:08:45 -0700 (PDT) Message-ID: <1431138602.1214420925141.JavaMail.jira@brutus> Date: Wed, 25 Jun 2008 12:08:45 -0700 (PDT) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3734) Maximum value allowed for derby.storage.fileCacheSize (100) is too low for large system. Increase the maximum value and redocument the property. In-Reply-To: <714427369.1213999424936.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-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali updated DERBY-3734: ---------------------------------- Affects Version/s: 10.4.1.3 > Maximum value allowed for derby.storage.fileCacheSize (100) is too low for large system. Increase the maximum value and redocument the property. > ------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-3734 > URL: https://issues.apache.org/jira/browse/DERBY-3734 > Project: Derby > Issue Type: Bug > Components: Performance > Affects Versions: 10.3.3.0, 10.4.1.3 > Environment: Derby 10.3.3 > Reporter: Stan Bradbury > Assignee: Mike Matrigali > Fix For: 10.3.3.1, 10.4.1.4, 10.5.0.0 > > Attachments: derby-3734-diff.txt > > > Increasing the value of the undocumented property: derby.storage.fileCacheSize improves Derby performance in our system but the maximum allowed value (100) is not large enough to accommodate our system. Our performance engineer reports: > The following stack shows items being evicted from Derby's container cache. Extra debug code showed that the cache was at its maximum size (100), and that about 1 in 25 accesses to the cache was resulting in a miss (forcing another item to be evicted). Since this results in synchronous disk write, performance is bottlenecked on IO. Patching Derby to allow the cache to grow to 200 entries solved the performance problem. > Performance is severely degraded. CPU utilization is low -- performance is IO bound. A sampling of stack dumps for the key thread consistently have the following methods at the top of the stack: > at sun/nio/ch/FileChannelImpl.force0(Native Method) > at sun/nio/ch/FileChannelImpl.force(FileChannelImpl.java:392(Compiled Code)) > at org/apache/derby/impl/io/DirRandomAccessFile4.sync(Bytecode PC:5(Compiled Code)) > at org/apache/derby/impl/store/raw/data/RAFContainer.writeRAFHeader(Bytecode PC:86(Compiled Code)) > at org/apache/derby/impl/store/raw/data/RAFContainer.clean(Bytecode PC:84(Compiled Code)) > at org/apache/derby/impl/services/cache/CachedItem.clean(Bytecode PC:7(Compiled Code)) > at org/apache/derby/impl/services/cache/Clock.rotateClock(Bytecode PC:7(Compiled Code)) > at org/apache/derby/impl/services/cache/Clock.findFreeItem(Bytecode PC:17(Compiled Code)) > at org/apache/derby/impl/services/cache/Clock.find(Bytecode PC:71(Compiled Code)) > at org/apache/derby/impl/store/raw/data/BaseDataFileFactory.openContainer(Bytecode PC:65(Compiled Code)) > at org/apache/derby/impl/store/raw/data/BaseDataFileFactory.openContainer(Bytecode PC:7(Compiled Code)) > at org/apache/derby/impl/store/raw/xact/Xact.openContainer(Bytecode PC:29(Compiled Code)) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.