-
Notifications
You must be signed in to change notification settings - Fork 305
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
FISH-5687/FISH-1467 Integrate HotSwap Agent in Payara Platform #5394
Conversation
Is it required to use the patched JDK or can this also work with the HotSwapAgent added as agent to any other JDK 11? |
Hi @rdebusscher, As of now, It requires patched JDK 11. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some code remarks
nucleus/common/internal-api/src/main/java/org/glassfish/internal/data/ApplicationInfo.java
Outdated
Show resolved
Hide resolved
nucleus/common/internal-api/src/main/java/org/glassfish/internal/data/ApplicationInfo.java
Outdated
Show resolved
Hide resolved
nucleus/common/internal-api/src/main/java/org/glassfish/internal/deployment/Deployment.java
Outdated
Show resolved
Hide resolved
nucleus/common/internal-api/src/main/java/fish/payara/nucleus/hotdeploy/ApplicationState.java
Outdated
Show resolved
Hide resolved
...s/deployment/common/src/main/java/org/glassfish/deployment/common/DeploymentContextImpl.java
Outdated
Show resolved
Hide resolved
nucleus/common/common-util/src/main/java/com/sun/enterprise/util/JDK.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit hard to review all the code but appears to work!
Hello, I tried to use this feature but we use Java8 so I used this JDK: https://github.com/TravaOpenJDK/trava-jdk-8-dcevm/releases/tag/dcevm8u282b08 However when deploying our app we get this error:
Running on Payara 5.2021.8 Linux |
Hi @newk5 , This feature currently only supports https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases |
I see. Is support for Java8 planned for the future? |
An update on this for anyone who is also using Java8 I was able to get it working using an older JDK8 (181) and using the DCEVM installer (here ) to patch the JDK. As mentioned above, you'll have to start payara from the command line, it doesn't work if you try to start it from NetBeans. @jGauravGupta I'm using Netbeans 12.5, do you know if this fix has already been applied to Netbeans for the next version (12.6) ? Or maybe is there a JIRA ticket I can follow up to know about the status of this?
|
PR to enable HotSwap JVM options in the Apache NetBeans: apache/netbeans#3259 |
Thanks! I'll keep an eye on it, hopefully it gets merged soon 👍 |
FISH-5687/FISH-1467 Integrate HotSwap Agent in Payara Platform
This reverts commit ff38fbf.
Hello, I want to add custom plugin to hotswap agent. |
Description
This is an experimental feature PR to integrate the Payara Platform with the HotSwap Agent.
HotSwap Agent is enabled by jvm-option
-XX:HotswapAgent
where VM nameDynamic Code Evolution
is added to the option to skip this option for JDK with Hotspot vm.Important Info
Todo
Testing
Testing Performed
Manual tested on JDK11
Step to test the feature
VM name
support need to be added to the domain.xml parser in the IDE tools)