android-methods-profiler icon indicating copy to clipboard operation
android-methods-profiler copied to clipboard

java heap size

Open theapache64 opened this issue 2 years ago • 5 comments

image

I am trying to open a large trace file (~500MB) and am getting this error. how can increase the heap size?

theapache64 avatar Jun 16 '23 05:06 theapache64

Hello! You can try to edit YAMP.cfg and change java-options arguments

  1. Open Applications folder in Finder
  2. Select Show Package Contents in context menu after clicking on YAMP
  3. Edit Contents/app/YAMP.cfg : change java-options=-Djpackage.app-version=23.01.17 to java-options=-DXms4096M -Djpackage.app-version=23.01.17 or another value.

I hope this helps!

image

Grigory-Rylov avatar Jun 16 '23 09:06 Grigory-Rylov

@Grigory-Rylov Still getting the same error :(

image

theapache64 avatar Jun 16 '23 11:06 theapache64

java -jar -Xms4096M -Xmx6144M android-methods-profiler-23.01.17.0.jar

worked

theapache64 avatar Jun 16 '23 11:06 theapache64

Could you please try to add to Contents/Info.plist this lines ?

  <key>JVMOptions</key>
  <array>
    <string>-Xmx6144M</string>
    <string>-Xms4096M</string>
  </array>

and launch YALI from Applications.

Unfortunately I have no large .trace file to test it.

Grigory-Rylov avatar Jun 16 '23 12:06 Grigory-Rylov

After modifying the Info.plist, files stopped appearing in the file browser

theapache64 avatar Sep 17 '23 17:09 theapache64