Results 1 to 14 of 14
Thread: Huge Collections Management
- 08-20-2012, 04:13 PM #1
Huge Collections Management
Hi, I've a HUGE problem with HUGE set of data

The problem is that I want to manage 3-4GB of data in Lists, Sets or Maps but obviously with canonical collections native types I can't.
I've tried with Vanilla lib but that lib is not complete, Maps are not usable.gif)
Also I've tried with -Xms command line option for manual setting the heap but this are not enough.
Someone knows some lib like Vanilla that do direct swapping between memory and disk giving the same interfaces of List, Set and Map?
- 08-20-2012, 06:32 PM #2
Member
- Join Date
- Mar 2012
- Location
- Novosibirsk, Russia
- Posts
- 13
- Rep Power
- 0
Re: Huge Collections Management
- 08-20-2012, 06:34 PM #3
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,606
- Rep Power
- 5
Re: Huge Collections Management
Are your required to have it all in memory at once? A database like Derby can store the data such that you can access it at runtime without needing it all in memory at once.
- 08-20-2012, 07:12 PM #4
- 08-24-2012, 01:03 AM #5
Member
- Join Date
- Aug 2012
- Posts
- 13
- Rep Power
- 0
Re: Huge Collections Management
I have come across similar situations a few times where the data held in memory (collections or Arrays) grew more then initially anticipated. I ended up optimizing code and using some combination of in memory storage and database. One of the important thing to consider is your application reliability requirements. If you can not afford your application to fail and still want to use a library that is still in beta mode (or even any recent open source library) then make sure you write a lot of test cases.
Also, in your post you mentioned that you tried setting -xms. This is just your initial heap size. did you try bumping up your -Xmx as well?
- 08-24-2012, 09:45 AM #6
- 08-28-2012, 11:42 AM #7
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
Re: Huge Collections Management
If you'll pardon my French, but how the hell is that library going to be any better than a database?
It's stored on disk, which is the primary source of delay in database queries, so I really don't see what advantage you are going to get?
It's a database mapped onto the Collections framework!Please do not ask for code as refusal often offends.
- 08-28-2012, 12:19 PM #8
Re: Huge Collections Management
A database by definition must contain structured and organized data.
Data that I manage are huge sets of strings, then it use unproperly the database theory.
Then a database offer a multi-tier structure: disk<->dbms page manager<->dbms logical manager<->resultsets
A library of that type are a structure like: disk<->library manager<->results
With every implications in terms of performances, it uses JVM native methods instead of dbms algebra and engine.
In my opinion a lib like that will be some order of magnitude better than dbms. Although I can't do an exhaustive comparison research... :(
- 08-28-2012, 02:06 PM #9
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
Re: Huge Collections Management
So guesswork then.
Please do not ask for code as refusal often offends.
- 08-28-2012, 02:29 PM #10
- 08-28-2012, 03:20 PM #11
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
Re: Huge Collections Management
That's a reasonable position.
:)Please do not ask for code as refusal often offends.
- 08-28-2012, 04:15 PM #12
- 08-28-2012, 05:44 PM #13
Member
- Join Date
- Aug 2012
- Posts
- 13
- Rep Power
- 0
Re: Huge Collections Management
claudiocarcaci , Please let us know what your findings are about the performance of JDBM3, specially if you get a chance to compare it with any DBMS for search , insert and delete time etc. I just quickly glanced over their README file and it seems like the library shares alot of same concepts and utilizes bunch of same strategies as common DBMS. Honestly, I will be surprised if this library gives better performance then any well known DBMS for large number of big records(> 1GB data)
Last edited by farrukh; 08-28-2012 at 05:52 PM.
- 08-28-2012, 05:55 PM #14
Similar Threads
-
Huge memory allocation
By mctommek in forum Advanced JavaReplies: 2Last Post: 12-08-2011, 01:06 PM -
Huge Newbie Question: save so others can use
By Zuty in forum New To JavaReplies: 11Last Post: 06-16-2011, 03:29 AM -
Huge req on java in my company
By g.vinod.r in forum Jobs OfferedReplies: 2Last Post: 09-13-2010, 11:03 AM -
Storing and managing huge arrays
By trust in forum Java SoftwareReplies: 2Last Post: 08-22-2009, 02:47 PM -
Huge VB.Net conversion
By bullstreetboy in forum New To JavaReplies: 3Last Post: 04-09-2009, 01:30 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks