Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA 14 : What is capture memory snapshot

I tried to search this, but couldn't find, exactly what I am looking for

so someone please provide me an explanation on IDEA14's capture memory snapshot

like image 324
Dharshi Avatar asked Dec 12 '14 04:12

Dharshi


People also ask

What is snapshot in IntelliJ?

Compare profiler snapshotsUltimate IntelliJ IDEA allows you to compare profiler snapshots. This may be useful to see how a certain change in the code affects performance, or how the same piece of code performs in different runtimes.

How do I make IntelliJ consume less memory?

From the main menu, select Help | Change Memory Settings. Set the necessary amount of memory that you want to allocate and click Save and Restart.

How much memory should I give to IntelliJ?

IntelliJ IDEA memory usage Follow IntelliJ itself reports that it is using a little more than 1GB of heap but the OS reports that it is using anywhere from 3.5 to 4.5 GB.

Does IntelliJ use a lot of memory?

I have a Macbook Pro with M1 processor, and it extremely laggy, when I open a Java class, it takes a couple of seconds to load. Sometimes it is using up to 6-7 GB of RAM. It makes it virtually impossible to write any code or to run any application.


1 Answers

It is added to 14 version for convenience reporting in case of memory troubles.

Snippet from How to report IntelliJ IDEA performance problems:

In case of memory related issues (memory usage goes high, garbage is not collected, etc) please use the Memory snapshot button in the menu near the CPU snapshot button. If it's not possible to get the snapshot because of the application crashing with OutOfMemory errors, please add the

-XX:+HeapDumpOnOutOfMemoryError

option to the IntelliJ IDEA JVM options. On the next OOM error the .hrpof dump will be produced and saved by the JVM (usually in the application working directory which is IDEA_HOME\bin).

Upload this dump to our FTP as described above in the CPU snapshot section.

Please note that memory snapshot may contain the sensitive source code from your project.

If you are uploading to a public service, use some password protection or enctyption. JetBrains FTP server is write only and you don't need to protect files uploaded there.

Additional link:

Reporting performance problems

like image 177
catch23 Avatar answered Sep 27 '22 22:09

catch23