You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ju...@apache.org on 2014/04/24 18:52:34 UTC

svn commit: r1589794 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/TarReader.java

Author: jukka
Date: Thu Apr 24 16:52:33 2014
New Revision: 1589794

URL: http://svn.apache.org/r1589794
Log:
OAK-1762: TarMK: Fall back to normal IO when mmap fails

Improved warning message as suggested by by Michael Marth.

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/TarReader.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/TarReader.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/TarReader.java?rev=1589794&r1=1589793&r2=1589794&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/TarReader.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/TarReader.java Thu Apr 24 16:52:33 2014
@@ -204,7 +204,17 @@ class TarReader {
                                 return new TarReader(file, mapped, index);
                             } catch (IOException e) {
                                 log.warn("Failed to mmap tar file " + file
-                                        + ", falling back to normal file IO",
+                                        + ". Falling back to normal file IO,"
+                                        + " which will negatively impact"
+                                        + " repository performance. This"
+                                        + " problem may have been caused by"
+                                        + " restrictions on the amount of"
+                                        + " virtual memory available to the"
+                                        + " JVM. Please make sure that a"
+                                        + " 64-bit JVM is being used and"
+                                        + " that the process has access to"
+                                        + " unlimited virtual memory"
+                                        + " (ulimit option -v).",
                                         e);
                             }
                         }