Modify

Opened 9 years ago

Closed 3 years ago

#11298 closed defect (wontfix)

Extra caching when run under JavaWebStart

Reported by: SergeyAstakhov Owned by: team
Priority: major Milestone:
Component: Core Webstart Version: tested
Keywords: cache webstart Cc: wiktorn

Description (last modified by Don-vip)

Since JDK 7 Update 2 they turned on feature of caching any resouces downloading by URLConnection. Quote from doc (http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/enhancements-7.html#javase7u2):

"Caching enabled by default: Caching of network content for application code running in Web Start mode is now enabled by default. This allows application improved performance and consistency with applet execution mode. To ensure the latest copy of content is used, the application can use URLConnection.setUseCaches(false) or request header Cache-Control values no-cache/no-store."

This is lead to two problem (and may be to others):

  1. Bing attribution data is not updated properly, so new images (when bing updated it) does not displayed in JOSM.
  2. Imagery tiles is cached twice (in JWS cache and JOSM cache) and just waste disk space and degrade performance.


The first problem is especially troubling.
Can you fix this?

Attachments (1)

JWSCacheResources.png (32.2 KB ) - added by SergeyAstakhov 9 years ago.

Download all attachments as: .zip

Change History (11)

by SergeyAstakhov, 9 years ago

Attachment: JWSCacheResources.png added

comment:1 by SergeyAstakhov, 9 years ago

Description: modified (diff)

comment:2 by bastiK, 9 years ago

Priority: normalmajor

comment:3 by Don-vip, 9 years ago

See #8904

comment:4 by Don-vip, 9 years ago

Description: modified (diff)
Keywords: cache webstart added

comment:5 by wiktorn, 9 years ago

Cc: wiktorn added

comment:6 by wiktorn, 9 years ago

I tried to test it, but I failed on java security refusing to launch unsigned or self-sgined jar. I'd need some walkthrough, how to test it.

Anyway - I'm worried that there is only half-solution to the problem and use URLConnection.setUseCaches(false) but this would also have a negative impact on any CDN-s, caches between user and server, as well as, doesn't guarantee, that JWS will not put those objects into its cache anyway. So imagery will work correct, but disks will be trashed with cache entries.

As far as I've checked, the default value of cache size is 32768MB which is quite a lot...

in reply to:  6 ; comment:7 by bastiK, 9 years ago

Replying to wiktorn:

I tried to test it, but I failed on java security refusing to launch unsigned or self-sgined jar. I'd need some walkthrough, how to test it.

I'm not aware of this problem. Could you report it in a separate ticket with status report and screen shot?

in reply to:  7 comment:8 by wiktorn, 9 years ago

Replying to bastiK:

I'm not aware of this problem. Could you report it in a separate ticket with status report and screen shot?

See #11331

comment:9 by Don-vip, 4 years ago

Component: CoreCore Webstart

comment:10 by Don-vip, 3 years ago

Resolution: wontfix
Status: newclosed

"Java WebStart" (the closed-source Oracle implementation) is slowly dying since its removal in Java 11. Not going to fix this, as we focus only to OpenWebStart now. Please open a new ticket is the same issue affects OpenWebStart.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.