Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6791245

Tune handling of LAP files

    XMLWordPrintable

Details

    • b02
    • generic
    • generic
    • Not verified

    Backports

      Description

        There are several issues related to LAP files:

        1) Using procmon tool to monitor file system access on XP i see 26 requests to read parts of the same lap file while starting DisplayShelf FX demo with populated cache. We should reduce number of system calls as
        total length of LAP file is small.

        2) Tracing readLAP calls i see that AppPolicy.grantUnrestrictedAccess() tries to check some conditions related to desktop integration for each jnlp file but this only has sense for main jnlp file.
        As result we have number of failing open file requests.

        3) in my experiments refreshIfNecessary rereads lap that was just read in and there are no other processes that touched lap file. May be something is not correct in the logic there

        4) starting cached webstart application triggers writing LAP file. This might be ok (if it saves last run time) but this probably can be done in background reducing amount of work done before starting main application class.

        ====== List of read operations from procmon log
        "47620","11:31:13.6361286 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 512"
        "47621","11:31:13.6361737 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 512"
        "47622","11:31:13.6362579 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 2"
        "47623","11:31:13.6363288 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 512"
        "47624","11:31:13.6364610 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 161"
        "47625","11:31:13.6364723 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 4,096"
        "47627","11:31:13.6365490 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 512"
        "47628","11:31:13.6365598 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 64"
        "47629","11:31:13.6366126 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 512"
        "47636","11:31:13.6368132 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 161"
        "47637","11:31:13.6368399 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 4"
        "47648","11:31:13.6372245 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 161, Length: 32,768"
        "47742","11:31:13.6412847 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 161, Length: 32,768"
        "66656","11:31:14.4629647 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 256"
        "66659","11:31:14.4630159 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 512"
        "66660","11:31:14.4630608 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 512"
        "66665","11:31:14.4631552 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 2"
        "66668","11:31:14.4632270 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 512"
        "66671","11:31:14.4633508 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 161"
        "66672","11:31:14.4633619 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 4,096"
        "66673","11:31:14.4634380 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 512"
        "66674","11:31:14.4635073 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 64"
        "66675","11:31:14.4635634 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 512"
        "66677","11:31:14.4637579 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 161"
        "66678","11:31:14.4637815 PM","javaw.exe","4788","FASTIO_CHECK_IF_POSSIBLE","C:\Users\igor\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\294f8c18-6.0.lap","SUCCESS","Operation: Read, Offset: 0, Length: 4"

        Attachments

          Issue Links

            Activity

              People

                igor Igor Nekrestyanov (Inactive)
                igor Igor Nekrestyanov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: