title: Java8: Findout which thread is creating the file
body: <p>Every Thread in our application log output to separate file.
  Lately we have noticed an issue where few threads hung up in between. While these threads hung, other threads are fine and it is creating new threads to finish other work. No dead locks noticed from thread dump.  No memory issues at this point.
  I know the log file name for the hung threads. Just to trace the problem further, If I could find thread number of the Thread creating these log file, I can concentrate on that thread to investigate further.
  Is there a way to find out which thread is using the given file resource? any other suggestions would be helpful.</p>