JIRA crashes with java.io.IOException: Map fail
JIRA Crashes and results in an OutOfMemoryError.
The following appears in the
Caused by: java.lang.OutOfMemoryError: Map failed at sun.nio.ch.FileChannelImpl.map0(Native Method) at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:846)
The OS (unix based) was preventing JIRA from using the amount of memory allocated for JAVA.
Allow unlimited memory usage for the user running JIRA with the following command. This will remove any limits to virtual memory for the JIRA process.
ulimit -v unlimited
One of the ways to do this is to add the line above to the JIRA start-up script $JIRA-installation-directory/bin/start-jira.sh.