Update Traffic Router Java version to 11#6210
Conversation
rawlinp
left a comment
There was a problem hiding this comment.
I'm getting some interesting differences in performance with testing this PR. Specifically, TR with this PR appears to handle about 3365 req/s in my shadow testing environment, whereas master handles 4549 req/s when compiled and run using Java 8 and 4959 req/s when compiled using Java 8 but run with Java 11.
So, this PR appears to decrease performance by 25% in terms of req/s handled compared to master on Java 8. If we just upgrade to java 11 on the server, we get a performance increase of 9%.
|
Rebased to resolve merge conflicts |
|
Rebased to fix a merge conflict from #6278 |
…or the build-rpms GHA
|
Rebased to fix a merge conflict from #6303 |
There was a NullPointerException due to trying to get the socket from |
Closes: #3196
This PR makes Traffic Router use Java 11 by default for compilation, testing, and running.
Big thanks to @ARMmaster17 for getting Traffic Router itself to work using Java 11. Besides changing Java versions around the project, this PR mainly just updates PMD to a version that supports targeting Java 11, which involved fixing new PMD "failures" that PMD 6.29.0 (up from PMD 5.3.5 in
maven-pmd-pluginversion 3.6) finds.Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
PR submission checklist