-
Notifications
You must be signed in to change notification settings - Fork 20
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
After BuildPack 8.7.0, JVM Launch Error in JRE 8 #131
Comments
Interesting. I see this happening with Gradle builds, but not Maven builds. I need to investigate further and see what is different here. Good news is I can replicate this. I'll keep you posted. |
OK, so not related to Gradle. It is just purely Java 8 vs 11. My sample gradle app was using Java 8 by default, so it was impacted in my initial tests. We can look into this some more. The JVM has some bugs around enabling Java NMT using You can work around this for now by adding |
|
Thanks!!! |
We cut a release to workaround this issue today: https://github.com/paketo-buildpacks/java/releases/tag/v5.17.0. It disables Java NMT if you're on Java 8. If you try to enable Java NMT, it's going to fail with the same error. There will be a fix in the next Bellsoft Liberica Java 8 release so we can enable Java NMT. It should go upstream to other OpenJDK releases after, but it's unclear how long that will take. |
What happened?
What were you attempting to do?
Run a docker image built by bootBuildGradle with Gradle 7.1, Java 8 and Spring Boot 2.5.4.
What did you expect to happen?
Successfully run a docker image
What was the actual behavior? Please provide log output, if possible.
When I run a docker image built by BuildPack, Some JVM error occurs. This error appears after 8.7.0 released.
below is a log header and full log file hs_err_pid1.log
Build Configuration
What platform (
pack
,kpack
,tekton
buildpacks plugin, etc.) are youusing? Please include a version.
I have no idea. I used only pure bootBuildImage
What buildpacks are you using? Please include versions.
A log of bootBuildImage with JVM errored verion,
error_version_log.txt
A log of bootBuildImage at yesterday that successfully launched. and it is same when force downgrade to 8.6.0
success_version_log.txt
I think JVM Option changes after BuildPack 8.7.0 cause error.
I checked UnlockDiagnosticVMOptions NativeMemoryTracking PrintNMTStatistics options are added
And I've tried set docker env or gradle build option with JAVA_TOOL_OPTIONS to disable those things. But not works.
So, I forced downgrade builderpack version to 8.6.0 and it works.
What builder are you using? If custom, can you provide the output from
pack inspect-builder <builder>
?No Customs
Can you provide a sample app or relevant configuration (
buildpack.yml
,nginx.conf
, etc.)?Simple docker image build with run
./gradlew bootBuildImage
with Spring Boot project in Github Action.And Simple launch with Docker
docker run [built-image]
Checklist
The text was updated successfully, but these errors were encountered: