file descriptor leak per connection
See original GitHub issueUsing Conscrypt for TLS with a java webserver, each connection leaves a pipe open.
The server will crash once the limit is reached, easiest way I’ve found to reproduce is by using ab
(Apache Benchmark) which doesn’t reuse connections.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
File descriptor leak. Very hard to reproduce in development.
I developed a full project in vert.x and I noticed a file descriptor leak in production. I have a 50 files descriptor leak...
Read more >Fixing File Descriptor Leaks - DSpace@MIT
Abstract. We design, implement and test a tool for eliminating file descriptor (FD) leaks in programs at run-time. Our tool monitors FD ......
Read more >Fixing File Descriptor Leaks in Long-Lived Servers
Leaked file handles can come from many sources, not just open files. Some common sources are: Sockets: Every socket also opens a file...
Read more >How to identify leaked file descriptors that are shown only as ...
In Linux operating system every file or socket is associated with a file descriptor. Incorrectly closing these could cause a file descriptor leak....
Read more >In Go, what are the best practices to find open socket/file ...
The code has a connections leak here, i.e. after some running time ... The reason seems to be creation of the transport for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Probably the same issue posted in Jetty bug tracker: https://github.com/eclipse/jetty.project/issues/2342
@flooey Is it okay if it is dropwizard? I bet I could cut it down. Basically I have a dropwizard app under Java 11 running HTTP/2. If I create an HTTPS client that does 10,024 posts from 256 threads, I get the file exhausted handles error. Even though I think I’ve bumped up my ulimit pretty high. I’m using these deps:
So just one resource with a post. Then 256 threads doing 10,100K posts. The posts can be empty. I basically eventually get a bunch of these: