Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / January 2004

Tip: Looking for answers? Try searching our database.

excessive paging w/ mass inserts into HSQLDB

Thread view: 
Chris Markle - 31 Dec 2003 04:33 GMT
All - Cannot be too precise since I heard this from secondhand from one of
my developers but thought I'd throw it out here and can provide more details
later if needed... He (the developer) is trying to insert roughly 1 million
rows into an HSQLDB database. He notes that 100k inserts or so go very
quickly and efficiently, but then the system begins to go into heavy paging
status. Has anyone encountered anything like this with HSQLDB and if so
maybe you could share what you learned? Chris
Stephen C. Ferguson - 31 Dec 2003 22:32 GMT
I think that HSQLDB puts everything into memory.  When the physical memory
is used up, it will start paging.  You can periodically monitor the JVM
memory allocated and memory used. The following is code that can be used for
monitoring memory:

Runtime r = Runtime.getRuntime();
System.out.println("Allocated JVM Memory: " +
String.valueOf(r.totalMemory()).toString() + ", Free JVM Memory: " +
String.valueOf(r.freeMemory()).toString());

When the allocated memory is almost equal to the physical memory of the
computer, you will begin noticing the paging.

Steve

> All - Cannot be too precise since I heard this from secondhand from one of
> my developers but thought I'd throw it out here and can provide more details
[quoted text clipped - 3 lines]
> status. Has anyone encountered anything like this with HSQLDB and if so
> maybe you could share what you learned? Chris
Thomas Kellerer - 01 Jan 2004 11:13 GMT
Chris Markle schrieb:
> All - Cannot be too precise since I heard this from secondhand from one of
> my developers but thought I'd throw it out here and can provide more details
[quoted text clipped - 3 lines]
> status. Has anyone encountered anything like this with HSQLDB and if so
> maybe you could share what you learned? Chris

You could try to use cached tables which are not stored in memory. This is
described in the HSQLDB docs

Thomas


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.