Modify

Opened 6 years ago

Last modified 5 months ago

#10213 reopened defect

JOSM should have by default 512 MB or more

Reported by: baditaflorin Owned by: team
Priority: normal Milestone:
Component: Core Webstart Version: tested
Keywords: template_report Cc:

Description

With the new Java7 switch, if i open BING, Mapbox and Mapnik Layer, and i download one or 2 layers of data to work with, i get really fast JOSM is out of memory, and if i try to sae a file, it will sometimes save it partially, leading to a corrupt file

What steps will reproduce the problem?

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if
possible.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-05-26 07:29:16
Last Changed Author: akks
Revision: 7182
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-05-26 09:22:25 +0200 (Mon, 26 May 2014)
Last Changed Rev: 7182

Identification: JOSM/1.5 (7182 en) Windows 7 64-Bit
Memory Usage: 247 MB / 247 MB (6 MB allocated, but free)
Java version: 1.7.0_55, Oracle Corporation, Java HotSpot(TM) Client VM
VM arguments: [-Djava.security.policy=file:C:\Program Files (x86)\Java\jre7\lib\security\javaws.policy, -DtrustProxy=true, -Xverify:remote, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Users\florin\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-6679a95c, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Xbootclasspath/a:C:\Program Files (x86)\Java\jre7\lib\javaws.jar;C:\Program Files (x86)\Java\jre7\lib\deploy.jar;C:\Program Files (x86)\Java\jre7\lib\plugin.jar, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=52721, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=-Djava.util.Arrays.useLegacyMergeSort=true -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp]
Dataset consistency test: No problems found

Plugin: AddrInterpolation (30416)
Plugin: FastDraw (30416)
Plugin: HouseNumberTaggingTool (30416)
Plugin: ImportImagePlugin (30416)
Plugin: OpeningHoursEditor (30416)
Plugin: SimplifyArea (30416)
Plugin: alignways (30416)
Plugin: buildings_tools (30485)
Plugin: conflation (0.1.7)
Plugin: geotools (30416)
Plugin: jts (30416)
Plugin: log4j (30416)
Plugin: merge-overlap (30416)
Plugin: opendata (30436)
Plugin: print (30416)
Plugin: terracer (30416)
Plugin: turnrestrictions (30454)
Plugin: utilsplugin2 (30460)
Plugin: walkingpapers (30416)

Attachments (0)

Change History (8)

comment:1 Changed 6 years ago by anonymous

Summary: JOSM should have but default 512 MB or moreJOSM should have by default 512 MB or more

comment:2 Changed 6 years ago by bastiK

This is not possible as webstart is also used on older machines. You can download the jar file and add an option at start: java -Xmx500m -jar josm.jar

comment:3 Changed 6 years ago by bastiK

Resolution: wontfix
Status: newclosed

comment:4 Changed 6 years ago by Klumbumbus

Or you use the .jnlp file and change in a text editor the line

<j2se version="1.6+"/>

to

<j2se version="1.6+" initial-heap-size="256m" max-heap-size="768m"/>

(or other values for initial-heap-size and max-heap-size)

Last edited 6 years ago by Klumbumbus (previous) (diff)

comment:5 Changed 4 years ago by anonymous

Resolution: wontfix
Status: closedreopened

I suggest to provide some alternative download links on josm.openstreetmap.de, which already include larger values for max-heap-size (like 1GB, 2GB, ..). This way, the original 512MB is retained, while it allows for larger heap sizes without any manual file fiddling.

Rationale: Asking a user to download .jnlp and manually editing the file may be too much for some users, see:

https://forum.openstreetmap.org/viewtopic.php?pid=623954#p623954

comment:6 Changed 4 years ago by skyper

Did not try it with webstart but running .jar-files on Linux the java environment is providing more memory if the system has plenty. So, this might be better fixed within java by a smarter default setting depending on the available memory and not by every executable itself.

comment:7 Changed 4 years ago by anonymous

@skypet: setting the max heap size in the jnlp file (a text file!) works on any os, not just Linux. It is just a matter of providing a suitable jnlp file according to what a user wants to run.

comment:8 Changed 5 months ago by Don-vip

Component: CoreCore Webstart

Modify Ticket

Change Properties
Set your email in Preferences
Action
as reopened The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to baditaflorin
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.