Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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)

fix_out_of_memory.patch (961 bytes ) - added by wiktorn 9 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 by Don-vip, 9 years ago

Resolution: invalid
Status: newclosed

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.

comment:3 by wiktorn, 9 years ago

Resolution: invalid
Status: closedreopened

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 wiktorn, 9 years ago

Owner: changed from team to wiktorn
Status: reopenednew

comment:5 by wiktorn, 9 years ago

Component: unspecifiedCore imagery

comment:6 by stoecker, 9 years ago

A note: Please don't open old tickets only because the topic seems equal :-)

by wiktorn, 9 years ago

Attachment: fix_out_of_memory.patch added

in reply to:  6 comment:7 by wiktorn, 9 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 to high 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.

Version 0, edited 9 years ago by wiktorn (next)

comment:8 by Don-vip, 9 years ago

Resolution: fixed
Status: newclosed

In 8327/josm:

fix #11386 - reduce cache memory footprint (patch by wiktorn)

comment:9 by Klumbumbus, 9 years ago

Ticket #11406 has been marked as a duplicate of this ticket.

comment:10 by bastiK, 9 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 Don-vip, 9 years ago

Milestone: 15.05
Type: enhancementdefect

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain wiktorn.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.