Skip to content
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

Agentmain or Premain? #1662

Closed
SunJiFengPlus opened this issue Nov 11, 2024 · 1 comment
Closed

Agentmain or Premain? #1662

SunJiFengPlus opened this issue Nov 11, 2024 · 1 comment
Labels
kind/question Further information is requested

Comments

@SunJiFengPlus
Copy link

SunJiFengPlus commented Nov 11, 2024

What do you want to ask?

Which is the best way to use it? Is there any difference between Agentmain and Premain?

The documentation looks like the Agentmain is more flexible, and agent upgrades don't require restarting the java process, but the operation is more complex, are there any other differences? Such as compatibility or anything else.

@SunJiFengPlus SunJiFengPlus added the kind/question Further information is requested label Nov 11, 2024
@hanbingleixue
Copy link
Collaborator

Based on your application scenario, for example, if the service-registry plug-in needs to shield the original registration center, you need to use the premain to enhance the bytecode. When the service is started, cancel the registration of the original registration center. The agentmain function cannot be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants