Re: [External] : Re: New candidate JEP: 451: Prepare to Disallow the Dynamic Loading of Agents

2023-05-18 Thread Mike Hearn
bility and need to attach a > serviceability agent for deep troubleshooting beyond what’s possible > without dynamically loaded agents (especially with no access to the > sources), but if they do then surely they’re also able to add the > -XX:+EnableDynamicAgentLoading flag. > > — Ron &

Re: [External] : Re: New candidate JEP: 451: Prepare to Disallow the Dynamic Loading of Agents

2023-05-18 Thread Mike Hearn
The JDK *allows* bundling a JVM since 9 and makes it *possible* since about 15 (jpackage), but still doesn't make it *easy* like throwing a JAR around was easy. Although you discuss market demand here, the market isn't really united on what it wants in this case. Eliminating deployment complexity

Re: [External] : Re: JEP draft: Disallow the Dynamic Loading of Agents by Default

2023-04-30 Thread Mike Hearn
> we’ve begun to explore means other than the flag to allow a tool to load an > agent at runtime How about restricting access to the jcmd socket. For in-VM code it can be blocked at the filesystem implementation level, and for sub-processes by using the operating system APIs to determine if the o

Re: [External] : Re: Disallowing the dynamic loading of agents by default

2023-03-29 Thread Mike Hearn
Why, well, you get more features, it's easier for the end user, and not any harder for the developer. Those are pretty concrete reasons why people would want to do it that way. I'd suggest trying Conveyor out yourself before worrying about rigging or customization, because straightforward Java apps

Re: [External] : Re: Disallowing the dynamic loading of agents by default

2023-03-28 Thread Mike Hearn
Hi Gregg, Distributing little apps as JARs indeed doesn't work well anymore out of the box, but it doesn't have to be the end of the line for them. I've spent a couple of years writing a tool designed explicitly to solve all these problems [1]. You give Conveyor your JARs (or a Maven/Gradle build)