Modify

Opened 3 years ago

Last modified 3 years ago

#16832 new defect

Add settings to control automatic refresh strategy

Reported by: flohoff Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: cache update policy Cc:

Description (last modified by Don-vip)

Hi,

josm does update data needed by views unconditionally. For example when the EU StreetSign view is enabled it unconditionally updates the Sign.zip which is 42 MByte. This takes on a "low bandwidth" link e.g. 1MBit/s about 12 Minutes.

Sometimes when @home i am working behind a 384kbit/s link. I have seen startup times up to 35 Minutes.

For the very same reason i have disabled plugin auto update. Please reduce the number of network interactions to a minimum necessary and make updates like this purely optional.

Flo

Here is an excert from the startup just a couple minutes ago with josm-tested-14026.jar

Thu Oct 11 20:21:27 2018 NOTICE: just started...
[ ... ]
2018-10-11 20:21:38.834 INFO: OK
2018-10-11 20:21:38.835 INFO: GET https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1 -> 200 (8.04 kB)
2018-10-11 20:21:38.974 INFO: GET https://josm.openstreetmap.de/josmfile?page=Styles/hazmat&zip=1 -> 200 (7.78 kB)
2018-10-11 20:21:39.152 INFO: GET https://josm.openstreetmap.de/josmfile?page=Styles/LitObjects&zip=1 -> 200 (1.73 kB)
2018-10-11 20:21:40.828 INFO: GET https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/DE.zip -> 200 (6.26 MB)
2018-10-11 20:21:40.983 INFO: GET https://raw.githubusercontent.com/yopaseopor/traffic_signs_style_JOSM/master/Styles_Traffic_signs_EUR.zip -> 200 (46.1 MB)
2018-10-11 20:24:06.193 INFO: Registered toolbar action tagging_Traffic_signs_DE/C.Traffic signs (Order by code)/Germany/Complementary/DE:1005-30 overwritten: org.openstreetmap.josm.gui.tagging.pre
2018-10-11 20:24:06.193 INFO: Registered toolbar action tagging_Traffic_signs_DE/C.Traffic signs (Order by code)/Germany/Complementary/DE:1005-31 overwritten: org.openstreetmap.josm.gui.tagging.pre
2018-10-11 20:24:06.194 INFO: Registered toolbar action tagging_Traffic_signs_DE/C.Traffic signs (Order by code)/Germany/Regulatory/DE:201 overwritten: org.openstreetmap.josm.gui.tagging.presets.Ta
2018-10-11 20:36:27.200 INFO: GET https://upload.wikimedia.org/wikipedia/commons/5/5d/IconColouredStreets.svg -> 200 (1.08 kB)
2018-10-11 20:36:27.287 INFO: Defaults for imagery.generic.default_autozoom differ:  != true
2018-10-11 20:36:27.287 INFO: Defaults for imagery.generic.default_autoload differ:  != true
2018-10-11 20:36:27.287 INFO: Defaults for imagery.generic.default_showerrors differ:  != true
2018-10-11 20:36:27.361 INFO: Toolbar action tagging_Traffic_signs_DE/C.Traffic signs (Order by code)/Germany/Complementary/DE:1005-30 overwritten: org.openstreetmap.josm.gui.tagging.presets.Taggin
2018-10-11 20:36:27.362 INFO: Toolbar action tagging_Traffic_signs_DE/C.Traffic signs (Order by code)/Germany/Complementary/DE:1005-31 overwritten: org.openstreetmap.josm.gui.tagging.presets.Taggin
2018-10-11 20:36:27.363 INFO: Toolbar action tagging_Traffic_signs_DE/C.Traffic signs (Order by code)/Germany/Regulatory/DE:201 overwritten: org.openstreetmap.josm.gui.tagging.presets.TaggingPreset
2018-10-11 20:36:27.478 INFO: loading plugin 'reverter' (version 34271)
2018-10-11 20:36:27.516 INFO: RemoteControl: adding command "revert_changeset" (handled by RevertChangesetHandler)
2018-10-11 20:36:27.526 INFO: loading plugin 'jogl' (version 1.2.1)
2018-10-11 20:36:27.534 INFO: loading plugin 'apache-commons' (version 34389)
2018-10-11 20:36:27.541 INFO: loading plugin 'gson' (version 34389)
2018-10-11 20:36:27.547 INFO: loading plugin 'apache-http' (version 34389)
2018-10-11 20:36:27.588 INFO: loading plugin 'utilsplugin2' (version 34389)
2018-10-11 20:36:27.620 WARNING: No configuration settings found.  Using hardcoded default values for all pools.
2018-10-11 20:36:27.886 INFO: loading plugin 'RoadSigns' (version 34109)
2018-10-11 20:36:27.943 INFO: loading plugin 'kendzi3d-resources' (version 0.0.1)
2018-10-11 20:36:27.972 INFO: loading plugin 'mapdust' (version 34389)
2018-10-11 20:36:28.091 INFO: loading plugin 'Mapillary' (version v1.5.15)
2018-10-11 20:36:28.115 INFO: loading plugin 'continuosDownload' (version 1530471163)
[ ... ]
2018-10-11 20:36:34.345 INFO: GET https://api.openstreetmap.org/api/0.6/user/details (get number of unread messages) -> 200 (629 B)

Attachments (0)

Change History (7)

comment:1 Changed 3 years ago by stoecker

One way to achieve this: Don't use remote resouces, but local ones. Instead of directly using remote resources, download them and use file: URLs. Then you can control update manually.

Last edited 3 years ago by stoecker (previous) (diff)

comment:2 Changed 3 years ago by flohoff

Thats not something a normal user would be able to do. They expect to enable views/Map Paint Styles and will expect an initial download. They wont expect updates from the net causing half an hour delay on random starts.

comment:3 Changed 3 years ago by naoliv

Maybe include an update policy for everything (styles, rules, etc), like we already have for plugins?
https://i.imgur.com/SxIp9RS.png

comment:4 Changed 3 years ago by Don-vip

Description: modified (diff)

comment:5 Changed 3 years ago by Don-vip

Priority: normalminor

This is a very uncommon situation: downloading a giant European file provided by an external plugin using a very poor Internet connection. You should start by asking yopaseopor to not make such a big file (split by country?)

comment:6 Changed 3 years ago by stoecker

Summary: Long startup times (Up to 35 Minutes) with low bandwidth (<= 1MBit/s), enabled viewsAdd settings to control automatic refresh strategy

Anyway I agree that we could add an similar update policy setting for the cached stuff and probably also a "cleanup" button to drop all cached files and the JOSM entries for them.

We had other requests which would be solved by such a change.

comment:7 in reply to:  6 Changed 3 years ago by Don-vip

Keywords: cache update policy added
Priority: minornormal

Replying to stoecker:

Anyway I agree that we could add an similar update policy setting for the cached stuff and probably also a "cleanup" button to drop all cached files and the JOSM entries for them.

We had other requests which would be solved by such a change.

Good idea. But don't we already have a ticket for that? It sounds familiar.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new 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 flohoff
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.