Hi,
If you get an out of memory exception then something is wrong... Of
course it's possible to re-try, but I think the out of memory problem
is serious and needs to be solved. What happens if you run this?:
String fileName = "split:nioMapped:~/data/h2database/h2/data/test";
FileSystem m = FileSystem.getInstance(fileName);
m.createNewFile("split:nioMapped:data/test");
for (long l = 16; l <= 16L * 1024 * 1024 * 1024; l+= l) {
FileObject fo = m.openFileObject(fileName, "rw");
System.out.println("length: " + l);
fo.setFileLength(l);
fo.close();
}
Maybe we need to use some other strategy and not map the complete file
in memory...
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.