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

fix: use core pool size 1 for maintainer #3314

Merged

Commits on Aug 30, 2024

  1. fix: use core pool size 1 for maintainer

    The multiplexed session maintainer used a ScheduledExecutorService
    with a core pool size of zero. This can cause high CPU usage on
    Java 8 due to https://bugs.openjdk.org/browse/JDK-8129861. Also
    on higher versions of Java, it is better to use an executor with
    at least one core thread, instead of letting the executor create
    a new thread every time a task needs to be executed.
    
    Fixes #3313
    Fixes GoogleCloudPlatform/pgadapter#2249
    Fixes googleapis/java-spanner-jdbc#1736
    olavloite committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    c333f1f View commit details
    Browse the repository at this point in the history