eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.27k stars 721 forks source link

Issue with minecraft servers on latest OJ9 Java 8 version. #15912

Open Zilacon opened 2 years ago

Zilacon commented 2 years ago

I tried updating my OJ9 today and pretty much everything exploded. When updating errors that never existed from mods and plugins started appearing and many servers just crashed entirely.

Here is the OJ9 version i was using before:

JAVA_VERSION="1.8.0_302"
OS_NAME="Linux"
OS_VERSION="2.6"
OS_ARCH="amd64"
SOURCE="OpenJDK:e0e56cb2 OpenJ9:f06af2d55 OMR:7bff18ff5"
IMPLEMENTOR="AdoptOpenJDK"
BUILD_SOURCE="git:0d358c4"
FULL_VERSION="1.8.0_302-internal-202105071818-b01"
SEMANTIC_VERSION="8.0.302+1"
BUILD_INFO="OS: Linux Version: 4.15.0-1113-azure"
JVM_VARIANT="Openj9"
JVM_VERSION="master-f06af2d55"
HEAP_SIZE="Standard"
OPENJ9_TAG="openj9-0.26.0-m1"
IMAGE_TYPE="JRE"

And the version i updated to:

JAVA_VERSION="1.8.0_345"
OS_NAME="Linux"
OS_VERSION="2.6"
OS_ARCH="amd64"
SOURCE=".:git:e361c6629949+ omr:git:b58aa2708c09 openj9:git:1d9d16830f71 openssl:git:8aaca20cf999+"
IMPLEMENTOR="IBM Corporation"
BUILD_SOURCE="git:39e45e50"
BUILD_SOURCE_REPO="https://github.com/ibmruntimes/temurin-build.git"
SOURCE_REPO="https://github.com/ibmruntimes/openj9-openjdk-jdk8.git"
FULL_VERSION="1.8.0_345-b01"
SEMANTIC_VERSION="8.0.345+1"
BUILD_INFO="OS: Linux Version: 3.10.0-327.el7.x86_64"
JVM_VARIANT="Openj9"
JVM_VERSION="openj9-0.33.1"
IMAGE_TYPE="JRE"

And here is a log starting the server with the new oj9: 2022-09-16-4.log

And the old oj9: latest.log

Besides updating OJ9 there was no other changes done to the server. Yet it crashes with the updated version and doesnt with the not up to date version.

I am using a hybrid server software that can be found here: https://github.com/Luohuayu/CatServer/releases/tag/22.08.03

Any help with this like in the past would be greatly appreciated! :)

pshipton commented 2 years ago

Does it work with Temurin of the same 345 version? https://adoptium.net/temurin/releases?version=8

If it's specific to OpenJ9, does it work when the -Xint option (slow) or -Xshareclasses:none option is used?

Zilacon commented 1 year ago

Nope. Removing the cache and adding -Xint resulted in the same crash. Using temurin also resulted in the same crash. Temurin launch log: latest.log

pshipton commented 1 year ago

Since it doesn't work with Terumin, it's not an OpenJ9 problem. You could narrow it down to a particular build between 302 and 345 and we can get the list of changes between the builds, and then either guess which change caused it, or see about creating some custom builds to narrow it down to a particular change. But then you'd have to take up the problem with OpenJDK.

Zilacon commented 1 year ago

I'm very confused, I've tested every single build that's available on https://adoptopenjdk.net/archive.html?variant=openjdk8&jvmVariant=openj9 and they all crash.

I've made sure to wipe my cache on every test as well. 0.33.1 8u345b01 0.33.0 8u345b01 0.32.0 8u332b09 0.30.0 8u322b06 0.29.0 8u312b07 0.27.0 8u302b08 0.26.0 8u292b10

All crash, which I don't understand cause I'm apparently using 0.26.0 302, but 292 doesn't work. Any ideas?

pshipton commented 1 year ago

Your working build is a head stream build created after 0.26 but before 0.27. There are many changes, and no longer any intermediate builds available. Do you get the same results with Hotspot builds?

OpenJ9 changes shouldn't be relevant if Hotspot builds show the same problem: changes from 0.26 to your nightly build b4cc246...f06af2d55 changes from your nightly build to 0.27 f06af2d55...1851b00

Changes from 8u292b10 to your nightly build https://github.com/ibmruntimes/openj9-openjdk-jdk8/compare/2a5e268...e0e56cb2 Changes from your nightly build to 8u302b08 https://github.com/ibmruntimes/openj9-openjdk-jdk8/compare/e0e56cb2...de702c3

Zilacon commented 1 year ago

No the same result happens with hotspot, kind of at a loss here on whats going on...