Re: Persistent outrigger doesn't shrink logstore
John McClain <[email protected]> Thu, 20 Nov 2008 09:01:11 -0500
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Asaf Lahav wrote: > The logStore files are constantly growing in size. > There are a bunch of different files logstore uses, which one are you seeing a problem with? An "ls -l" would be helpful. > I would expect the logStore to reduce the size of the repository as entries > are being taken. > On a test I did I write about 5000 entries and then took all the existing > 5000 entries. > Yet, two hours later, the logStore files are still a few megabytes in size. > > On another test I did, I defined 2 minutes in lease time for 5000 entries > and after 3 minutes tried to take those entries. Non were returned (as > expected) yet, the logStore files were still as big as if the entries are > still stored in there. > > I would expect the logStore files to be reduced as entries either expire or > taken. > Currently it seems as if the logStore files constantly increase in size and > may consume all the disk space if given enough time. > The "store reduction" process isn't continuous with logStore (or snapLogStore) it happen in chunks. By default (in v2.0.2 - BTW, what version are you using?) individual log files grow until they contain 1000 operations (takes, writes, lease expirations, or event registrations - don't remember if event deliveries get logged). Once a log is full the operations are replayed into an object db (PSEPro), and once the update to the db is committed the log file is removed. We periodically need to GC the object DB, too, that we do every 5 logs (again by default). It isn't clear to me which files you are seeing a problem with. If you have 10 log files, that is a problem, if you only have one then the log file part of the process is working. If files associated with the object database appear to be growing without bound, it may just be that you haven't done enough operations to trigger the necessary GC. -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]