Return-Path: Delivered-To: apmail-jakarta-jcs-dev-archive@www.apache.org Received: (qmail 7269 invoked from network); 11 Jun 2007 18:20:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2007 18:20:09 -0000 Received: (qmail 79344 invoked by uid 500); 11 Jun 2007 18:20:12 -0000 Delivered-To: apmail-jakarta-jcs-dev-archive@jakarta.apache.org Received: (qmail 79311 invoked by uid 500); 11 Jun 2007 18:20:12 -0000 Mailing-List: contact jcs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Developers List" Delivered-To: mailing list jcs-dev@jakarta.apache.org Received: (qmail 79271 invoked by uid 99); 11 Jun 2007 18:20:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 11:20:12 -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; Mon, 11 Jun 2007 11:20:08 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 46A0E71420B for ; Mon, 11 Jun 2007 11:19:29 -0700 (PDT) Message-ID: <441619.1181585969287.JavaMail.jira@brutus> Date: Mon, 11 Jun 2007 11:19:29 -0700 (PDT) From: "Thomas Vandahl (JIRA)" To: jcs-dev@jakarta.apache.org Subject: [jira] Updated: (JCS-25) problem with optimizeFile() In-Reply-To: <32184600.1176805635296.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCS-25?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:all-tabpanel ] Thomas Vandahl updated JCS-25: ------------------------------ Fix Version/s: jcs-1.4-dev Affects Version/s: (was: jcs-1.2.7.9.2) jcs-1.3 > problem with optimizeFile() > --------------------------- > > Key: JCS-25 > URL: https://issues.apache.org/jira/browse/JCS-25 > Project: JCS > Issue Type: Bug > Components: Indexed Disk Cache > Affects Versions: jcs-1.3 > Environment: Linux=20 > Reporter: Jan-Philipp Bolle > Assignee: Aaron Smuts > Fix For: jcs-1.4-dev > > > Its two month ago then I posted my question to jcs user: > We have the problem that our indexed disk is growing over the day. Is it = possible to start > the optimization by API? > The situation is still the same. I am sure that the index optimization is= not working in Version > jcs 1.2.7.9.2. . I had written a dirty program to optimize the index: > =09public static void main(String[] args) throws IOException { > IndexedDiskCacheAttributes cattr =3D new IndexedDiskCacheAttribut= es(); > cattr.setCacheName( "articleBase" ); > cattr.setMaxKeySize( -1 ); > cattr.setDiskPath( "D:\\temp\\bug5464\\systems" ); > IndexedDiskCache disk =3D new IndexedDiskCache( cattr ); > disk.optimizeFile(); > System.out.println(disk.getSize()); > } > With the help of my program the size of the index changed from 3,30 GB to= 619 MB. But I can=EF=BF=BDt > use the program in production. > I expect that the function optimizeFile() will be executed after shutdown= . But in JCS Version > jcs 1.2.7.9.2 in IndexedDiskCache in Line 888 the function this.getBytesF= ree() returns always > 0. > Any idea way the value is always 0? > Why I can optimize the index with my dirty program but not with the defau= lt behaviour? > In my point of view this is a bug in JCS. > How can I support you to fix that problem? > Regards Philipp --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-dev-help@jakarta.apache.org