Index: /applications/editors/josm/plugins/imagerycache/build.xml
===================================================================
--- /applications/editors/josm/plugins/imagerycache/build.xml	(revision 29689)
+++ /applications/editors/josm/plugins/imagerycache/build.xml	(revision 29690)
@@ -15,5 +15,5 @@
 
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="JOSM/ImageryCache: updated MapDB (no more deadlocks, Java 1.6 compatible), less crashes, multiple-JOSM support"/>
+    <property name="commit.message" value="JOSM/ImageryCache: add optional imagerycache.randomAccessFile parameter for slower but less system-dependent storage"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
     <property name="plugin.main.version" value="5779"/>
Index: /applications/editors/josm/plugins/imagerycache/changelog
===================================================================
--- /applications/editors/josm/plugins/imagerycache/changelog	(revision 29689)
+++ /applications/editors/josm/plugins/imagerycache/changelog	(revision 29690)
@@ -10,10 +10,5 @@
 * Cache directory is created if needed
 
-
-
-        
-
-         
-           
-
-
+21.06.2013 :
+* Add optional imagerycache.randomAccessFile parameter for slower but less system-dependent storage 
+(RandomAccessFile instead of memory mapped file)
Index: /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/OsmDBTilesLoader.java
===================================================================
--- /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/OsmDBTilesLoader.java	(revision 29689)
+++ /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/OsmDBTilesLoader.java	(revision 29690)
@@ -18,5 +18,4 @@
 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource;
 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource.TileUpdate;
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.data.preferences.BooleanProperty;
 
Index: /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/TileDAOMapDB.java
===================================================================
--- /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/TileDAOMapDB.java	(revision 29689)
+++ /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/TileDAOMapDB.java	(revision 29690)
@@ -3,8 +3,5 @@
 import java.io.File;
 import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
 import org.mapdb.DB;
 import org.mapdb.DBMaker;
@@ -17,4 +14,5 @@
 public class TileDAOMapDB implements TileDAO {
     public static final boolean debug = new BooleanProperty("imagerycache.debug", false).get();
+    public static final boolean noMmap = new BooleanProperty("imagerycache.randomAccessFile", false).get();
     
     public static boolean dbNotAvailable = false;
@@ -54,7 +52,13 @@
                 lock.deleteOnExit();
                 
-                db = DBMaker.newFileDB(f)
-                    .randomAccessFileEnableIfNeeded()
-                    .writeAheadLogDisable().closeOnJvmShutdown().make();
+                if (noMmap) {
+                    db = DBMaker.newFileDB(f)
+                        .randomAccessFileEnable()
+                        .writeAheadLogDisable().closeOnJvmShutdown().make();
+                } else {
+                    db = DBMaker.newFileDB(f)
+                        .randomAccessFileEnableIfNeeded()
+                        .writeAheadLogDisable().closeOnJvmShutdown().make();
+                }
                 
                 
