Profiler: No Java process found

Answered

Hello.

I'm following this memory leak tutorial: https://www.jetbrains.com/help/idea/tutorial-find-a-memory-leak.html

In section CPU and Memory Live Charts, I jump on the profiler, but I'm not able to see any Java process:

What Am I doing wrong?

I'm running Intellij IDEA Ultimate 2023.2.2

 

Thank you.

0
3 comments

Which JDK version are you using for the project/Gradle configuration:

  • File > Project Structure > Project Settings > Project > SDK
  • File > Project Structure > Project Settings > Modules > select module > Dependencies > Module SDK
  • Project bytecode version in Settings (⌘ + , or Ctrl + Alt + S) > Build, Execution, Deployment > Compiler > Java Compiler
  • Settings (⌘ + , or Ctrl + Alt + S) > Build, Execution, Deployment > Build Tools > Gradle > Gradle JVM

Please try to set a different version of JDK and see if the issue persists.

0

Hello Ivan.

I am using the same JDK as used in the tutorial, Amazon Corretto 11.

  • File > Project Structure > Project Settings > Project > SDK
  • File > Project Structure > Project Settings > Modules > select module > Dependencies > Module SDK
  • Project bytecode version in Settings (⌘ + , or Ctrl + Alt + S) > Build, Execution, Deployment > Compiler > Java Compiler
  • Settings (⌘ + , or Ctrl + Alt + S) > Build, Execution, Deployment > Build Tools > Gradle > Gradle JVM
0

Ok, thanks for the screenshots.
As a general troubleshooting step, try to:

  • File > Invalidate Caches.. > enable Clear file system cache and Local History option > Invalidate and Restart
  • Close IDE, delete .idea folder and any *.iml files in your project root folder in file explorer, and re-import the project from existing sources

If the issue persists, could you please restart IDE, reproduce the issue and share your IDE logs (Help > Collect Logs and Diagnostic Data)? They contain useful information about your environment and can have exceptions/errors related to the issue.

You can upload them here: https://uploads.jetbrains.com, just provide the uploaded file ID.

0

Please sign in to leave a comment.