When trying to load a csv file (791 Mb; data is 3118643 rows x 15 columns) into TOPCAT, I get the following error:
java.io.IOException: Map failed
at sun.nio.ch.FileChannelImpl.map(Unknown Source)
at uk.ac.starlink.table.storage.FileByteStore.toByteBuffers(FileByteStore.java:181)
at uk.ac.starlink.table.storage.FileByteStore.toByteBuffers(FileByteStore.java:146)
at uk.ac.starlink.table.storage.AdaptiveByteStore.toByteBuffers(AdaptiveByteStore.java:127)
at uk.ac.starlink.table.storage.ByteStoreRowStore.endRows(ByteStoreRowStore.java:135)
at uk.ac.starlink.table.storage.MonitorStoragePolicy$TeeRowStore.endRows(MonitorStoragePolicy.java:126)
at uk.ac.starlink.table.storage.MonitorStoragePolicy$TeeRowStore.endRows(MonitorStoragePolicy.java:126)
at uk.ac.starlink.table.StoragePolicy.copyTable(StoragePolicy.java:190)
at uk.ac.starlink.table.StoragePolicy.randomTable(StoragePolicy.java:165)
at uk.ac.starlink.table.StarTableFactory.randomTable(StarTableFactory.java:521)
at uk.ac.starlink.table.StarTableFactory.prepareTable(StarTableFactory.java:1270)
at uk.ac.starlink.table.StarTableFactory.makeStarTables(StarTableFactory.java:800)
at uk.ac.starlink.table.gui.SystemBrowser$1.loadTables(SystemBrowser.java:114)
at uk.ac.starlink.table.gui.TableLoadWorker.run(TableLoadWorker.java:118)
Caused by: java.lang.OutOfMemoryError: Map failed
at sun.nio.ch.FileChannelImpl.map0(Native Method)
... 14 more
I'm using:
Java Version 8 Update 333 (build 1.8.0_333-b02)
TOPCAT Version 4.8-4
STIL Version 4.1
Starjava revision: a12183c9e (2022-04-05)
What's going wrong?