-
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
VisualVM getting stuck ( Not responding ) after starting java application in local #565
Comments
@thurka Please have a look. |
Unfortunately, I am not able to reproduce it. Can you be more specific? Can you share |
@thurka Below one I have used, You can increase number of iterations ( i < 100000 or more ) if you are not getting the freezing issue.
|
I am not sure I understand what is the source code
|
@thurka Yes, correct and if the issue is not reproduced with above code, you can try to increase the for loop size i.e. 10000 or more. |
Hi there, I faced similar issue last week. I suspect it is something related to the new version of IntelliJ IDE. In my case, my runtime was like this:
I tried to start VisualVM a few times but it always end up frozen. My solution is to configure JDK 21 as visualvm_jdkhome. After that, all works well. However, I don't know the detailes underneath. Hope this informaiton might help. Regards, |
Thanks a lot for clarification, howerver I have trouble compiling your testcase on JDK 17:
|
@imspzero Can you please attach the messages.log, which is available via VisualVM | About VisualVM | Logfile. I would like to see how it looks like when VisualVm is frozen running on JDK 8. BTW: Can you specify, what exactly you did? Did you start some application from Intellij or not? |
@thurka Please try below code snippet. public class Main {
|
Thanks for the above test case. I will try to reproduce the problem. |
Unfortunately I am not able to reproduce your problem. Below is description of my test. I created project in intelliJ and used your Main class. I have to increase the loop to 10000000 to get more time. I was able to:
I am using macOS 13.6.7 on Apple M1 Pro. |
Strange! That means it occurs sometimes with someone for some piece of codes! @imspzero can you please provide your code snippet here to re-produce the issue. |
VisualVM getting stuck ( Not responding ) after starting java application in local
It becomes responsive once I stopped/killed the running java application.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The application should be acting normally.
VisualVM log
Please attach VisualVM logfile.txt file to help diagnose your problem.
messages.log is available via Help | About | Logfile and
via VisualVM | About VisualVM | Logfile on macOS
Screenshots
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: