Thanks.
 Makes sense.

On Mar 6, 3:04 am, Thomas Mueller <thomas.tom.muel...@gmail.com>
wrote:
> Hi,
>
> > we are getting explicit System.gc() 's about every 1 - 2 hours
>
> I don't think this is because of H2.
>
> > When running the database in process we are getting explicit
> > System.gc() 's about every 1 - 2 hours.
>
> By default, H2 doesn't use memory mapped files. Memory mapped files are only
> used if you use the nioMapped file 
> system:http://h2database.com/html/advanced.html#file_system, meaning if the
> database URL starts with jdbc:h2:nioMapped: or similar.
>
> System.gc() is also called when using LOCK_MODE=2 (if a table is locked for
> a longer time, System.gc is called to close forgotten connections), or when
> deleting or renaming a file fails (which can happen on Windows, if the file
> is still open). But those are all special cases.
>
> Regards,
> Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to h2-database@googlegroups.com.
To unsubscribe from this group, send email to 
h2-database+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to