#8919 closed defect (fixed)
Out of Memory Exception
| Reported by: | pinkduck | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | unspecified | Version: | tested |
| Keywords: | memory, hprof, crash | Cc: |
Description (last modified by )
JOSM 6060 is crashing for me after around 17–20 edit sessions using Bing and OS StreetView background tiles. I have uploaded a zip file of an .hprof file created by "-XX:+HeapDumpOnOutOfMemoryError” option in the hope that the cause can be identified and resolved so that I don’t need to manually stop and restart the editor too often. I run JOSM with command line " -Xmx512M”.
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2013-07-10 01:34:22 Last Changed Author: stoecker Revision: 6060 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2013-07-08 22:13:24 +0200 (Mon, 08 Jul 2013) Last Changed Rev: 6060 Identification: JOSM/1.5 (6060 en_GB) Windows 7 64-Bit Memory Usage: 163 MB / 455 MB (111 MB allocated, but free) Java version: 1.7.0_25, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM VM arguments: [-Xmx512M, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=C:\Users\Pink Duck\Downloads\JOSM.hprof] Plugin: reverter (29663) Plugin: undelete (29555)
Attachments (1)
Change History (10)
comment:1 by , 12 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 12 years ago
| Description: | modified (diff) |
|---|
comment:3 by , 12 years ago
comment:4 by , 12 years ago
That’s a workaround, but the actual problem is that memory after use is not being properly released. There's a bug somewhere there to fix, which could be analysed by looking at whatever the significant number of similar type objects are in the .hprof profile.
comment:5 by , 12 years ago
Can you please post your status info ? Knowing the list of plugins installed on your machine is important in memory leaks hunting.
comment:6 by , 12 years ago
| Description: | modified (diff) |
|---|
comment:9 by , 12 years ago
Jvisualvm:
- load hprof
- compute 20 largest objects by retained size
- open first instance and look for references
- right click: get nearest GC root



Might want to bump up the memory you give JOSM. That "-Xmx512M" is very low and odds are, causing your problem.
Try boosting that to "-Xmx1024M" if you have enough ram on your computer and see what happens. ;)