Ticket #672: josm-oom-message.diff

File josm-oom-message.diff, 1.0 KB (added by dnaber, 18 years ago)
  • home/dnaber/workspace/JOSM/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java

     
    4343                if (Main.parent != null) {
    4444                        if (e instanceof OutOfMemoryError) {
    4545                                // do not translate the string, as translation may raise an exception
    46                                 JOptionPane.showMessageDialog(Main.parent, "You are out of memory. Strange things may happen.\nPlease restart JOSM and load smaller data sets.");
     46                                JOptionPane.showMessageDialog(Main.parent, "JOSM is out of memory. " +
     47                                                "Strange things may happen.\nPlease restart JOSM with the -Xmx###M option,\n" +
     48                                                "where ### is the the number of MB assigned to JOSM (e.g. 256).\n" +
     49                                                "Currently, " + Runtime.getRuntime().maxMemory()/1000/1000 + " MB are available to JOSM.");
    4750                                return;
    4851                        }
    4952