Map failed

You are splitting PDF files and they are big, so big that PDFsam Basic choked with these last words?

Caused by: java.io.IOException: Map failed
at sun.nio.ch.FileChannelImpl.map(Unknown Source) ~[na:1.8.0_31]
at org.sejda.io.MemoryMappedSeekableSource.(MemoryMappedSeekableSource.java:59) ~[pdfsam-community-3.0.1.RELEASE.jar:na]
at org.sejda.io.SeekableSources.seekableSourceFrom(SeekableSources.java:74) ~[pdfsam-community-3.0.1.RELEASE.jar:na]
at org.sejda.impl.sambox.component.DefaultPdfSourceOpener.open(DefaultPdfSourceOpener.java:61) ~[pdfsam-community-3.0.1.RELEASE.jar:na]
... 12 common frames omitted
Caused by: java.lang.OutOfMemoryError: Map failed
at sun.nio.ch.FileChannelImpl.map0(Native Method) ~[na:1.8.0_31]
Solution: If you are on a 64-bit operating system, make sure you are running PDFsam Basic version 4 or higher

Java heap space

This is different, still an OutOfMemoryError but with a different cause, see the Java heap space in place of the Map failed?

java.lang.OutOfMemoryError: Java heap space
	at org.sejda.io.MemoryMappedSeekableSource.readPage(MemoryMappedSeekableSource.java:120)
	at org.sejda.io.MemoryMappedSeekableSource.read(MemoryMappedSeekableSource.java:100)
	at org.sejda.io.BufferedSeekableSource.ensureBuffer(BufferedSeekableSource.java:110)
	at org.sejda.io.BufferedSeekableSource.read(BufferedSeekableSource.java:100)
Solution:
  • Version 4: Use a text editor to open the pdfsam.l4j.ini text file in the PDFsam Basic installation directory, find this row -Xmx512m which tells PDFsam Basic to run with 512MB of heap memory, change it to -Xmx1024m rising the amount of memory to 1GB and restart PDFsam Basic. If that doesn't work you can try pushing it even higher with -Xmx1512m
  • Version 5: Use a text editor to open the pdfsam.cfg text file in the PDFsam Basic app subdirectory, find the [JavaOptions] section and add a row java-options=-Xmx1024m rising the amount of memory to 1GB and restart PDFsam Basic. If that doesn't work you can try pushing it even higher with -Xmx1512m