parttimenerd / jfrtofp

JFR to Firefox Profiler converter
Other
13 stars 3 forks source link

Memory leaking? #8

Open SettingDust opened 3 months ago

SettingDust commented 3 months ago

It's need so much memory when transforming. The snapshot is 230MB.

 settingdust: IdeaSnapshots ❯ java -jar D:/Projects/jfrtofp-0.0.4-SNAPSHOT-all.jar Main_2024_08_19_191350.jfr
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
 settingdust: IdeaSnapshots ❯ java -Xmx 1G -jar D:/Projects/jfrtofp-0.0.4-SNAPSHOT-all.jar Main_2024_08_19_191350.jfr
Invalid maximum heap size: -Xmx
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
 settingdust: IdeaSnapshots ❯ java -Xmx1G -jar D:/Projects/jfrtofp-0.0.4-SNAPSHOT-all.jar Main_2024_08_19_191350.jfr
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
 settingdust: IdeaSnapshots ❯ java -Xmx4G -jar D:/Projects/jfrtofp-0.0.4-SNAPSHOT-all.jar Main_2024_08_19_191350.jfr
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
parttimenerd commented 3 months ago

That's a known problem and hard to solve. The current solution is to use more RAM.

SettingDust commented 3 months ago

10G still failed XD 12G success lul

SettingDust commented 3 months ago

But firefox profiler isn't supporting profile larger than 2G. It's 3.29G

parttimenerd commented 3 months ago

Then I can't have support for such files at the moment.