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

(fs) WatchService's buffer should be configurable to avoid exceessive OVERFLOW events [win]

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7
    • core-libs
    • x86
    • windows_2008

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      Quote from WindowsWatchService.java line 270:

              // size of per-directory buffer for events (FIXME - make this configurable)
              private static final int CHANGES_BUFFER_SIZE = 16 * 1024;

      Someone wanted this to be configurable and I want to encourage them to make it so. This setting translates to a queue size of 512 events on our system and that does not suffice. We have a network delay of .3 Seconds, so the queue overflows constantly for us. We do not monitor too much and have tested this extensively. The queue size is just too small. There is no reason not to go ahead an make this configurable.


      REPRODUCIBILITY :
      This bug can be reproduced always.

            bpb Brian Burkhalter
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: