#11386 closed defect (fixed)
[PATCH] out of memory
Reported by: | RAytoun | Owned by: | wiktorn |
---|---|---|---|
Priority: | major | Milestone: | 15.05 |
Component: | Core imagery | Version: | |
Keywords: | memory | Cc: |
Description
I am regularly getting the following error and it is preventing me from working on the Nepal Earthquake
Tasks.
"JOSM is out of memory. Strange things may happen.
Please restart JOSM with the -xXmx###M option where ### is the number of MB assigned to JOSM (eg 256)
Currently 247MB are available to JOSM"
Where do I find this -xXmx###M option to assign more memory to JOSM?
I am on Windows 7 and JOSM Version 8279.
Attachments (1)
Change History (12)
comment:1 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:3 by , 10 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
I've noticed, that we are leaking BufferedImages, I've noticed more than 2000 BufferedImage instances, though we should have at most 200 (what should reside in memory tile cache).
I will look more deep into this using Memory Analyzer Tool.
comment:4 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
comment:5 by , 10 years ago
Component: | unspecified → Core imagery |
---|
follow-up: 7 comment:6 by , 10 years ago
A note: Please don't open old tickets only because the topic seems equal :-)
by , 10 years ago
Attachment: | fix_out_of_memory.patch added |
---|
comment:7 by , 10 years ago
Summary: | out of memory → [PATCH] out of memory |
---|
The topic gained my attention, as I've seen yesterday also the same message. I did some preliminary digging with VisualVM. But as I worked with MAT, I confirmed, that the problem lies only in size of memory cache.
With 200 objects in cache, I see memory usage ~100MB after System.gc(), which is quite reasonable.
1000 might be far too high for a default.
Replying to stoecker:
A note: Please don't open old tickets only because the topic seems equal :-)
In my opinion, this gives users a better felling of support from developers.
comment:10 by , 10 years ago
High memory use has been reported for r8339 on the forum: http://forum.openstreetmap.org/viewtopic.php?pid=502326#p502326
He sees more than 1 GB memory used by JOSM according to the Windows task manager.
@wiktorn: Can you check if this is reproduceable?
comment:11 by , 10 years ago
Milestone: | → 15.05 |
---|---|
Type: | enhancement → defect |
Please don't create bug reports for that. Adding more memory to JOSM is explained on several sites: this one, the osm wiki, the osm help forum, etc.