niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
java collections api + out of memory on load
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
sunfishy@gmail.com
*nix forums beginner


Joined: 03 May 2006
Posts: 1

PostPosted: Wed May 03, 2006 1:08 am    Post subject: java collections api + out of memory on load Reply with quote

Hi,

I'm a newbie to berkeley db, so apologies in advance for any silly
questions...

I'm reading a large file into my berkeley db using the collections API.
I am using JVM settings of 512 MB, but I keep running out of memory,
perhaps because I am loading it in a very simple way: I am currently
doing a map.put() for each line. Why would there be such a large memory
footprint if I am just adding entries to the db? Is there a faster way
to load in a large, sorted, formatted file?

Thanks very much!
Back to top
Michael Cahill
*nix forums Guru Wannabe


Joined: 26 May 2005
Posts: 219

PostPosted: Thu May 04, 2006 2:54 am    Post subject: Re: java collections api + out of memory on load Reply with quote

Hi,

Out-of-memory errors can be caused by lots of things. The first thing
to do is to run "db_stat -e" in your environment directory, and look at
the cache and locking regions to see whether some resource has been
exhausted.

Also check how much cache you have allocated, the amount of memory
available to the JVM, and so on. The defaults are quite conservative
and shouldn't cause problems, but if you've allocated a bigger cache
than you have memory for (for example), that could cause problems.

Regards,
Michael.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sat Jan 10, 2009 4:30 am | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts GIDS 2009 Java:: Save Big, Win Big, Learn Big: Act Before... Shaguf Apache 0 Tue Dec 23, 2008 7:41 am
No new posts postfix out of memory error - please help metind Postfix 0 Mon Sep 11, 2006 1:54 am
No new posts Non IBM memory in p630 Ron AIX 0 Fri Jul 21, 2006 2:05 pm
No new posts database Share Memory Limit (2 GB ) in a Instance is tota... sadanjan@gmail.com IBM DB2 0 Fri Jul 21, 2006 12:57 pm
No new posts Where is this code not freeing memory ? jithoosin C++ 2 Fri Jul 21, 2006 9:39 am

Loans | Loans | Loans | Advertising | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1399s ][ Queries: 16 (0.0780s) ][ GZIP on - Debug on ]