Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File handle leak on Win with Java 11(.0.2) #936

Closed
fbricon opened this issue Feb 22, 2019 · 0 comments
Closed

File handle leak on Win with Java 11(.0.2) #936

fbricon opened this issue Feb 22, 2019 · 0 comments

Comments

@fbricon
Copy link
Contributor

fbricon commented Feb 22, 2019

Following the fix for #931, it turns out Win 10 still has an issue, when running Java 11(.0.2). I can still see a file handle leak with handler64 ( ~+2/+3 handles every 2 sec), when the server is idling:

C:\Dev\projects>c:\Dev\Handle\handle64 -s -p 6524

Nthandle v4.21 - Handle viewer
Copyright (C) 1997-2018 Mark Russinovich
Sysinternals - www.sysinternals.com

Handle type summary:
  <Unknown type>  : 95
  ALPC Port       : 1
  Desktop         : 1
  Directory       : 2
  Event           : 275
  File            : 1218
  IoCompletion    : 3
  IRTimer         : 4
  Key             : 15
  Mutant          : 2
  Section         : 2
  Semaphore       : 39
  Thread          : 39
  Token           : 2
  TpWorkerFactory : 2
  WaitCompletionPacket: 6
  WindowStation   : 2
Total handles: 1708

and several minutes later:

C:\Dev\projects>c:\Dev\Handle\handle64 -s -p 6524

Nthandle v4.21 - Handle viewer
Copyright (C) 1997-2018 Mark Russinovich
Sysinternals - www.sysinternals.com

Handle type summary:
  <Unknown type>  : 2
  <Unknown type>  : 2
  <Unknown type>  : 2
  <Unknown type>  : 95
  ALPC Port       : 1
  Desktop         : 1
  Directory       : 2
  Event           : 275
  File            : 4458
  IoCompletion    : 3
  IRTimer         : 4
  Key             : 15
  Semaphore       : 39
  Thread          : 39
  TpWorkerFactory : 2
  WaitCompletionPacket: 6
  WindowStation   : 2
Total handles: 4948

We might also want to reduce the polling frequency to 1 every 10sec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants