Opened 6 years ago
Closed 4 years ago
#18242 closed defect (needinfo)
High CPU Usage
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin mapillary | Version: | tested |
| Keywords: | template_report performance flatpak | Cc: | jpietri |
Description
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.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2019-09-29 23:59:43 +0200 (Sun, 29 Sep 2019) Revision:15390 Build-Date:2019-09-29 22:01:37 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (15390 fr) Linux Freedesktop.org 19.08.3 (Flatpak runtime) Memory Usage: 501 MB / 1980 MB (179 MB allocated, but free) Java version: 11.0.5+9, Oracle Corporation, OpenJDK 64-Bit Server VM Screen: :0.0 1920x1080 Maximum Screen Size: 1920x1080 Dataset consistency test: No problems found Plugins: + Mapillary (1.5.20) + OpeningHoursEditor (34977) + apache-commons (35092) + apache-http (34908) + buildings_tools (35171) + conflation (0.6.4) + continuosDownload (82) + geojson (129) + http2 (35062) + jna (34908) + jts (35122) + livegps (34977) + merge-overlap (35072) + openqa (1557250801) + reverter (35084) + terracer (34977) + tofix + undelete (34977) + utilsplugin2 (35177) Tagging presets: + https://raw.githubusercontent.com/osmlab/name-suggestion-index/master/dist/name-suggestions.presets.xml Map paint styles: - https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip Last errors/warnings: - W: Region [userProfile_BLOCK_v2] Resetting cache - W: restricted header name: "Connection" - W: restricted header name: "Connection" - W: restricted header name: "Connection" - W: restricted header name: "Connection" - W: restricted header name: "Connection" - W: restricted header name: "Connection" - W: restricted header name: "Connection" - W: restricted header name: "Connection" - W: restricted header name: "Connection"
Attachments (1)
Change History (17)
by , 6 years ago
comment:1 by , 6 years ago
I cannot find a reproductible way to trigger this behavior.
Sometimes I detect the CPU is high because JOSM window start to lag for some action, and the fan of my computer becomes noisy.
comment:3 by , 6 years ago
Please try to uninstall all plugins first, and tell me if you still have the problem.
comment:4 by , 6 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → needinfo |
comment:5 by , 6 years ago
I really suspect this is caused by mapillary plugin, but need to test a bit longer.
comment:6 by , 6 years ago
| Component: | Core → Plugin mapillary |
|---|---|
| Keywords: | performance added |
Sounds plausible
comment:7 by , 6 years ago
| Cc: | added |
|---|
comment:8 by , 6 years ago
| Owner: | changed from to |
|---|---|
| Status: | needinfo → new |
comment:9 by , 6 years ago
Same issue for me: JOSM suddenly becomes extremely slow, only a restart saves me.
I'm also suspecting that this was caused by a plugin, but not by Mapillary.
Revision:15569 Is-Local-Build:true Build-Date:2019-12-08 17:35:18 Identification: JOSM/1.5 (15569 SVN en) Linux Arch Linux Memory Usage: 2168 MB / 16088 MB (874 MB allocated, but free) Java version: 11.0.5+10, Oracle Corporation, OpenJDK 64-Bit Server VM Screen: :0.0 3840x2160 Maximum Screen Size: 3840x2160 VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true] Dataset consistency test: No problems found Plugins: + FastDraw (34977) + PolygonCutOut (v0.7) + SimplifyArea (34977) + apache-commons (35092) + apache-http (34908) + austriaaddresshelper (57) + buildings_tools (35171) + ejml (35122) + ext_tools (34988) + geotools (35169) + http2 (35062) + jaxb (35014) + jna (34908) + jts (35122) + log4j (34908) + measurement (35221) + opendata (35179) + reltoolbox (35196) + reverter (35226) + scripting (30796) + terracer (34977) + undelete (34977) + utilsplugin2 (35238) [..]
comment:10 by , 6 years ago
Even after deleting all of its layers and panels Mapillary plugin tries to download pictures and icons.
After one successful (HTTP=200) picture download six times an icon is requested. The icon is 404: https://www.mapillary.com/developer/api-documentation/images/traffic_sign/information--general-directions--g1.png
2020-03-15 17:45:29.042 WARNING: Failed to download icon. ID unknown to the icon list: informat ion--general-directions--g1: javax.imageio.IIOException: Can't get input stream from URL!. Caus e: java.io.FileNotFoundException: https://www.mapillary.com/developer/api-documentation/images/ traffic_sign/information--general-directions--g1.png
comment:11 by , 5 years ago
I have similar behaviour when drawing highways. No imagery. Laptop fan spinning at max with only slow drawing.
comment:12 by , 5 years ago
Drawing a highway one node per second on large screen makes java process use between 50% and 100% cpu. This is MacOs Mojave on 20-19 macbook pro.
comment:13 by , 5 years ago
| Keywords: | flatpak added |
|---|
comment:14 by , 5 years ago
| Owner: | changed from to |
|---|
comment:15 by , 5 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → needinfo |
If you are still having this problem (@Hb---, farin2, baptiste.millemathias), can you please update this ticket after using the Mapillary v2.0 alpha (available in josm-latest as the default Mapillary plugin).
I've made some changes to the Mapillary plugin since this ticket was opened to improve performance.
Specifically, after this ticket was opened:
- Stop drawing icons at lower zoom levels (this helped when in an area with a lot of images -- in the current v2.0 alpha, I've changed this to a (configurable, use
mapillary.images.max_draw) number of images on screen). - Stop downloading detections for all images (v2.0 alpha, may change when the Mapillary v4 API is actually released)
comment:16 by , 4 years ago
| Resolution: | → needinfo |
|---|---|
| Status: | needinfo → closed |



output of strace command