https://issues.apache.org/bugzilla/show_bug.cgi?id=53815

          Priority: P2
            Bug ID: 53815
          Assignee: [email protected]
           Summary: FileServer synchronisation is rather crude
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: Main
           Product: JMeter

FileServer needs to be synchronised to provide thread-safety.

However, the synchronisation is applied at instance level.
This is unnecessary for at least part of the time.

The files Map is mostly read, not written, so could be protected using
read/write locks. A Concurrent Map would not be sufficient here, as the updates
need exclusive access.

Access to a single FileEntry instance would still need to be single-threaded to
prevent problems when sharing a file across multiple threads.

Making such changes should improve performance by reducing lock waits.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to