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

After installing VisualVM 2.1.8 on a Mac Apple M1 Pro, the “Perform GC” function cannot be used. #584

Open
sititch opened this issue Jun 28, 2024 · 16 comments

Comments

@sititch
Copy link

sititch commented Jun 28, 2024

After installing VisualVM 2.1.8 on a Mac Apple M1 Pro, the “Perform GC” function cannot be used.

@thurka
Copy link
Member

thurka commented Jun 28, 2024

This report is too vague. Please provide steps to reproduce and messages.log. Thanks.

@sititch
Copy link
Author

sititch commented Jun 28, 2024

logfile.txt
Nothing happens when you click the perform gc button

此报告太模糊。请提供重现步骤messages.log。谢谢。

@thurka
Copy link
Member

thurka commented Jun 28, 2024

Thanks for the log file, although I still missing steps to reproduce. :-( However the log shows that you have unusual proxy settings. All is set to 127.0.0.1:7890 including socks proxy. The problem is probably caused by setting socks proxy - this setting is used when VisualVM communicates with monitored application and probably this not what you want. Please modify the proxy settings and disable proxy alltogether or at least remove socks proxy.

@sititch
Copy link
Author

sititch commented Jun 28, 2024

Thanks for the log file, although I still missing steps to reproduce. :-( However the log shows that you have unusual proxy settings. All is set to 127.0.0.1:7890 including socks proxy. The problem is probably caused by setting socks proxy - this setting is used when VisualVM communicates with monitored application and probably this not what you want. Please modify the proxy settings and disable proxy alltogether or at least remove socks proxy.

Thank you so much for taking a look at my log file, but obviously this is not what I wanted. The log file doesn't capture my problem, which is that nothing happens when I click Perform GC.
image

@thurka
Copy link
Member

thurka commented Jun 28, 2024

Please follow my advice - change proxy settings, restart VisualVM and attach new log file.

@sititch
Copy link
Author

sititch commented Jun 28, 2024

image

Please follow my advice - change proxy settings, restart VisualVM and attach new log file.

It still doesn't work.
Uploading logfile.txt…

@thurka
Copy link
Member

thurka commented Jun 28, 2024

I don't see the log file. The link to log file does not work.

@sititch
Copy link
Author

sititch commented Jun 28, 2024

I don't see the log file. The link to log file does not work.

logfile.txt

@thurka
Copy link
Member

thurka commented Jun 28, 2024

The log file now looks ok, provided that you run VisualVM, opened your application and invoked 'Perform GC'.

@sititch
Copy link
Author

sititch commented Jul 1, 2024

The log file now looks ok, provided that you run VisualVM, opened your application and invoked 'Perform GC'.

Yes, but I got nothing when I clicked on it, and reinstalling it won't work either

@sititch
Copy link
Author

sititch commented Jul 1, 2024

The log file now looks ok, provided that you run VisualVM, opened your application and invoked 'Perform GC'.

There are no other older versions available

@sititch
Copy link
Author

sititch commented Jul 1, 2024

I clicked on version 2.1.7 and it didn't work

Uploading 录屏2024-07-01 09.44.34.mov…

@thurka
Copy link
Member

thurka commented Jul 1, 2024

The log file now looks ok, provided that you run VisualVM, opened your application and invoked 'Perform GC'.

Yes, but I got nothing when I clicked on it,

Based on your screenshot above, it will be hard to see the effect of doing direct GC. BTW: How did you conclude that the 'Perform GC' action does not work?

and reinstalling it won't work either

I don't see a reason to reinstall it.

@thurka
Copy link
Member

thurka commented Jul 1, 2024

The log file now looks ok, provided that you run VisualVM, opened your application and invoked 'Perform GC'.

There are no other older versions available

Are you looking for older versions of VisualVM?

@thurka
Copy link
Member

thurka commented Jul 1, 2024

I clicked on version 2.1.7 and it didn't work

Uploading 录屏2024-07-01 09.44.34.mov…

There is no file linked to this comment.

@sititch
Copy link
Author

sititch commented Jul 1, 2024

image image [root@localhost pmce]# java -version openjdk version "1.8.0_262" OpenJDK Runtime Environment (build 1.8.0_262-b10) OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode) [root@localhost pmce]# I hit visual gc not to display

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants