Skip to content

Jersey update from 3.1.8 to 3.1.9 performance regression when using the JVM http.proxyHost mechanism #5814

@ripdajacker

Description

@ripdajacker

This PR introduced the regression: #5749

The referenced fix introduces a map from java.util.URL to a Lock. That has the side effect of calling getInetAddress(url.host), which significantly impacts the performance if you are running the JVM with a proxy with -Dhttp.proxyHost and -Dhttp.proxyPort.

Before the call to hashCode the JVM handled the proxy connection transparently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions