Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java heap size #95

Open
theapache64 opened this issue Jun 16, 2023 · 5 comments
Open

java heap size #95

theapache64 opened this issue Jun 16, 2023 · 5 comments

Comments

@theapache64
Copy link

image

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

@Grigory-Rylov
Copy link
Owner

Grigory-Rylov commented Jun 16, 2023

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

@theapache64
Copy link
Author

theapache64 commented Jun 16, 2023

@Grigory-Rylov Still getting the same error :(

image

@theapache64
Copy link
Author

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

worked

@Grigory-Rylov
Copy link
Owner

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.

@theapache64
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants