GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — SelectorManager threads stay open after remote command execution and even after closing RemoteDatabase · Issue #2458 · ArcadeData/arcadedb Closed Milestone DescriptionArcadeDB version: 25.6.1-java17 Running on Windows11 with java: When running a program which executes many requests with different threads (or different RemoteDatabase objects) the HttpClient-x-SelectorManager threads keep piling up until you get an out of memory error on client side. The cause for this seems to be a bug in the JDK (see https://bugs.openjdk.org/browse/JDK-8308364 and https://bugs.openjdk.org/browse/JDK-8308691). It unfortunately cannot be solved properly on client side. See example ArcadeDBTest.java which does not lead to an out of memory as the number is not high enough, but with a profiler like visualvm you can see the 500 leftover threads. A "dirty" workaround would be to add something like the following code to the close() mehtod of the RemoteDatabase, but I'm not convinced that this is a good solution (obviously ;)):
Reacted by Dominik Bergen, Vladimir Trandafilov, Hanna Ostrovska, Tetiana Dibrova and Ruslan Butyk Activity
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |