Hotswapping with JBR and HotSwapAgent
hey, im trying to install the jetbrain runtime in a docker container along with hotswap agent.
I am running on an arm ubuntu machine and tried the aarch JBR releases JCEF (fastdebug) and JBRSDK. I put the hotswap-agent.jar in lib/hotswap and i still get the error
Unrecognized VM option 'AllowEnhancedClassRedefinition'
, im using java 2117 Replies
⌛
This post has been reserved for your question.
Hey @Lianecx! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
this is my docker compose
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
its only a problem inside of docker, outside it works
In the docker compose you wrote
JVM_XX_OPTS: "-XX:+AllowEnhancedClassRedefinition -XX:HotswapAgent=fatjar"
Have you tried to use JVM_XX_OPTS: "-XX:HotswapAgent=fatjar"
instead?yea well i do want the enhanced class redefinition though
and if i run itousdie of docker, it works with the option
its also incredibly slow
to the point its not usable anymore
They decided that its not gona work. They dropped the feature. You need a JDK version that support AllowEnhancedClassRedefinition. Its JDK8.
Going back from 21 to 8 is a dealbreaker?
Is that even a question?
Yes, sentences with a questionmark at the end used to be questions.
The more you know ... 😄
I meant that going back from JDK 21 to JDK 8 is normally not an option
and definitely shouldn't be
Also what's the Dockerfile?
He posted the docker compose.
yes but that uses an image I don't know
so I want to see the Dockerfile used to generate that image
There is no image. The docker compose is in text form.
I see you like to take the question from here. I let it in behalf of your hands mate. I am out, bye.
image: itzg/minecraft-server:java21
that's in the Docker compose file
and I want to know how the image itzg/minecraft-server:java21
was built - which normally happens using a Dockerfile
a Docker compose file is useless without an image somewhere💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
Oh I knew I remember the JVMFlag. It is a hotswapagent.org thing. You need Jetbrains17 not 21. 21 is not supported.
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.