public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/4390] New: CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile
@ 2007-04-18  0:57 pmuldoon at redhat dot com
  2008-01-09 13:44 ` [Bug general/4390] " pmuldoon at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pmuldoon at redhat dot com @ 2007-04-18  0:57 UTC (permalink / raw)
  To: frysk-bugzilla

A read from a corefile should be open->read->close. Doing this with
RandomAccessFile would cause many dozens of java objects queued for GC on a lot
of peek() operations. Right now, because of that, CorefileBytebuffer maintains
the RandomAccessFile open for the life of the buffer, consuming one FD for a
long time.

A very light weight object that keeps the file closed, opens it on read, then
closes it again is required, so that fd's and other systems resources can be
cycled back into the pool

-- 
           Summary: CorefileByteBuffer needs to use a lighter weight file
                    access method than RandomAccessFile
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: pmuldoon at redhat dot com
OtherBugsDependingO 4378
             nThis:


http://sourceware.org/bugzilla/show_bug.cgi?id=4390

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-01-09 13:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-18  0:57 [Bug general/4390] New: CorefileByteBuffer needs to use a lighter weight file access method than RandomAccessFile pmuldoon at redhat dot com
2008-01-09 13:44 ` [Bug general/4390] " pmuldoon at redhat dot com
2008-01-09 13:47 ` pmuldoon at redhat dot com
2008-01-09 13:48 ` pmuldoon at redhat dot com
2008-01-09 13:48 ` pmuldoon at redhat dot com
2008-01-09 13:49 ` pmuldoon at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).