IntelliJ IDEA 2024.1.4 (Community Edition) + Mac OS 11.5.2 : Build > "Writing Classes" is very slow

Answered
IntelliJ IDEA 2024.1.4 (Community Edition) + Mac OS 11.5.2

I'm trying to debug JUnit test case but it's observed that "Writing Classes" is very slow.

It takes more than 3+ minutes to start actual debugging

I've increased Shared build process heap size (Mbytes) to 2000 but it didn't help as well.

 

0
18 comments

Hello, Vikram!

Thank you for reporting this!

Do you notice increased CPU, RAM or HDD utilization during the “Writing classes…” phase?

Can you share more details about the tests in question (number of tests, typical test scenarios, etc.)?

Could you please also reproduce the issue and upload the logs from investigation (Help → Collect Logs and Diagnostic Data)? 

0

Can you please let me know how to upload ZIP file ? I couldn't find option to upload data from (Help → Collect Logs and Diagnostic Data)

0

Vikram Ingleshwar You can use our upload service.

Please share the upload ID.

0

Upload ID: 2024_07_16_egYMR2dCRBDnR9Nntc3uD4

 

Kindly find 2 zip files attached for debugging purpose.

0

@Roamn Vatagin can you please look into the 2 log files shared and help me to resolve this problem ? I'm blocked because of it, even after updating to latest version of IntelliJ IDEA

Thanks in advance.

0

Vikram Ingleshwar Thank you for sharing the logs!

The logs do not indicate any immediate problems with the build process.

Have noticed a recent increase in the time it takes to debug the tests?

Logs also suggest that your Project is using Maven - how much time does it take to perform the same task with Maven (using Maven Tool Window, Maven Run Configurations)?

0

I'm using Maven since quite long time, is there a way to debug further ? As I don't have anything unique done with this project atm, it simply started taking 5+ minutes to build

0

Vikram Ingleshwar The build shown on the screenshots you've shared is processed by IDEA's Native Build System and not Maven, so I wanted to compare the performance.

Does the issue only affect the tests or all build for this Project? Are other Projects affected as well?

Would it be possible to share the Project for further investigation?

As possible workaround, try the following:

  1. Close all instances of IDEA
  2. Rename or remove the System Directory
0

Please check Upload ID: 2024_07_22_hfFy2vcy8SYMLaSmnEdKHi (file: IC-241.18034.62_vikramanna_22.07.2024_16.19.01.zip) 

 

Note: Couple of days back I had tried solution as per https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000059604-Intellij-Idea-hangs-while-running-jUnit, "Changing the intellij compiler from javac to eclipse solved the issue"; it did work for some time and again I'm facing exactly same problem.

0

Vikram Ingleshwar Thank you for the updates!

Have you also tried increasing the “Shared build process heap size” as suggested in the thread you've linked?

Would you be able to share the Project?

Reproducing the issue on our end is vital for determining its' root cause.

0

yes, I changed heap size to 3000 but same issue.

As this is company project, I can't share with you.

But I've shared all the logs; you've asked for & IMO they should be sufficient enough to debug issue rigth ?

0

Vikram Ingleshwar I see you have created YouTrack Issue IDEA-356371 for this issue, I suggest we continue the troubleshooting there.

I have posted comment there with further steps on addressing this issue.

0

Can you explain why there are 2 platforms to file bugs related to IntelliJ IDEA ? It's very confusing to the users. As I got links to both these platforms from SO, I had to open duplicate issues

0

Vikram Ingleshwar YouTrack primarily is a bug tracker.

The forums are intended for more general questions and less formal discussions.

0

Please sign in to leave a comment.