JIRA crashes with java.io.IOException: Map fail

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

JIRA Crashes and results in an OutOfMemoryError.

The following appears in the atlassian-jira.log:

Caused by: java.lang.OutOfMemoryError: Map failed
	at sun.nio.ch.FileChannelImpl.map0(Native Method)
	at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:846)

Cause

The OS (unix based) was preventing JIRA from using the amount of memory allocated for JAVA.

Resolution

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. 

 


Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.