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

Consider packaging Tomcat along with the Ubuntu own Java runtime (3x speedup in JPEG encoding) #320

Open
aaime opened this issue Aug 26, 2024 · 3 comments

Comments

@aaime
Copy link

aaime commented Aug 26, 2024

Testing GeoServer running inside the Tomcat official docker images, I've found it to be significantly slower at generating JPEG outputs compared to my local developer machine (Linux Mint).

I've tracked the difference down to the usage of libjpeg-turbo, by default, in the operating system JDK packages, while Temurin builds are using an older JPEG library, embedded directly in the runtime. I've reported this to the Temurin base images, but just in case, I wanted to let you know as well:
adoptium/containers#641

In case the suggestion does not get traction upstream, would it make sense to have Tomcat packaged with just the Ubuntu OpenJDK runtime instead?

@aaime aaime changed the title Consider packaging Tomcat along with the Ubuntu own Java runtime (3x speedup in JJPEG encoding) Consider packaging Tomcat along with the Ubuntu own Java runtime (3x speedup in JPEG encoding) Aug 26, 2024
@tianon
Copy link
Member

tianon commented Aug 26, 2024

We had a lot of friction with the Java community when the https://hub.docker.com/_/openjdk images were built on the distro-provided OpenJDK packages, so we're not likely to repeat that for anything intended to provide Java (like Tomcat is).

You might also be interested in (testing?) builds from #299.

@aaime
Copy link
Author

aaime commented Aug 28, 2024

@tianon thanks for sharing the builds at #299. I don't see any Tomcat 9 build that uses the Linux distribution own JDK, could you confirm?

I've also searched over the OpenJDK bug tracker, I don't see anything related to using libjpeg turbo directly in OpenJDK (as a replacement for the current JPEG library).

In the meantime, Temurin contributors confirmed the performance difference with their own testing, along with the difficulty of having a Temurin build that targets the specific platform, rather than being self-contained (and missing the libjpeg-turbo link).

@tianon
Copy link
Member

tianon commented Aug 28, 2024

Yes, that is correct -- as noted above, we don't plan to provide that particular combination, unfortunately. 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@tianon @aaime and others