Re: "Virtual memory" framework for Java
- From: "Virgil Green" <vjg@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 21:44:10 GMT
zeus wrote:
> Thomas Hawtin wrote:
>> zeus wrote:
>>> I am dealing with very large in-memory data structures. The
>>> data structures are accessed in different frequencies varying
>>> between every 30 seconds and few minutes. My first try was to zip
>>> the information to a file when un-needed, but it caused very high
>>> I/O wait on Solaris machine. What I really want is something like
>>> virtual memory - I want to be oblivious to where portions of the
>>> data structure are stored (in-memory or on disk) whenever I need to
>>> access the data, I want it to be loaded into memory.
>>> Do you know of such a framework for "virtual memory" in Java?
>>
>> Use java.nio to memory map a file.
>>
>> Be careful what you map though. If the file goes away or truncates
>> you can get an asynchronous exception (InternalError), and on Linux
>> the JVM actually crashes.
>>
>> Tom Hawtin
>> --
>> Unemployed English Java programmer
>> http://jroller.com/page/tackline/
>
> Can you elaborate a little bit about the utilization of the memory
> mapped file for virtual memory as I described?
Does
http://java.sun.com/j2se/1.4.2/docs/api/java/nio/MappedByteBuffer.html
help?
--
Virgil
.
- References:
- "Virtual memory" framework for Java
- From: zeus
- Re: "Virtual memory" framework for Java
- From: Thomas Hawtin
- Re: "Virtual memory" framework for Java
- From: zeus
- "Virtual memory" framework for Java
- Prev by Date: macro processor, string juggler, script language ?
- Next by Date: Re: inhibiting comment reflow
- Previous by thread: Re: "Virtual memory" framework for Java
- Next by thread: How do I do this?
- Index(es):
Relevant Pages
|