GoogleCloudPlatform / pgadapter

PostgreSQL wire-protocol proxy for Cloud Spanner
https://cloud.google.com/spanner/docs/postgresql-interface#postgresql-client-support
Apache License 2.0
54 stars 20 forks source link

Multiplexed session maintainer can cause high CPU load if used on Java 8 #2249

Open olavloite opened 2 weeks ago

olavloite commented 2 weeks ago

The multiplexed session maintainer uses a ScheduledExecutorService with a core pool size of 0. This can cause high CPU usage on Java 8: https://bugs.openjdk.org/browse/JDK-8129861