igor.wojda
03/12/2024, 10:36 PMjava.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
error. Despite my attempts to address this (including tweaking gradle.properties
flags). I suspect my implementation is not-optimal, but I am not sure on how to find the root cause of the problem (error message is not helpful).
I've prepared a complete, runnable example that includes:
• The source code for Konsist 0.14.0
(directly in the main
source set for easier debugging rather than as a separate dependency)
• A directory (parsedClasses
) containing classes for Konsist to parse (and used them in test)
• A sample test class (SampleKonsistTest
) that triggers the parsing of classes in parsedClasses
To reproduce the issue, you can simply download attached project and execute the following command: ./gradlew --stop && ./gradlew konsistTest --rerun-tasks
.
I'm really hoping someone with experience in troubleshooting memory-related issues can shed some light on this for me. Any guidance or suggestions would be greatly appreciated 🙏Adam S
03/12/2024, 11:04 PMAdam S
03/12/2024, 11:06 PMAdam S
03/12/2024, 11:07 PMigor.wojda
03/12/2024, 11:12 PMAdam S
03/12/2024, 11:15 PMAdam S
03/12/2024, 11:24 PMStefan Oltmann
03/13/2024, 6:17 AMAdam S
03/13/2024, 1:12 PMAdam S
03/13/2024, 1:12 PMAdam S
03/13/2024, 1:14 PMAdam S
03/23/2024, 12:00 PMI had to look into some memory issues recently, and I found a really good article about the tools that were available for JVM memory inspection. And I can't find it!I found it! https://krzysztofslusarski.github.io/2022/12/12/async-manual.html