Hi,
I'm trying to analyze performance of Android application using Arm Performance Adviser tool. I have a capture file generated from Streamline, then in terminal navigating to directory where package extracted and run 'pa capture.apc' command but have an error:
" Improperly specified VM option 'MaxRAMPercentage=75.0'
Pa:
Failed to create the Java Virtual Machine. "
Also I have the same error for pa --help command.
Could you please advise how to resolve this issue.
Thanks,
Dmitry
Hi Dmitry,
Which version of Mobile Studio do you have installed, and on which host OS?
The workaround is to edit the pa.ini in the Performance Advisor install directory, and replace the "-XX:MaxRAMPercentage=75.0" with e.g. "-Xmx8g" replacing "8g" with something just under the max RAM on your system (8g = 8GB).
HTH, Pete
Hi Peter,
Thanks for your feedback!
I'm using Arm Mobile Studio 2021.0, Android 9 on a device.
Cannot find pa.ini in PA install directory maybe I'm missing something?
What's your host OS? Windows?The ini file path should be:C:\Program Files\Arm\Arm Mobile Studio 2021.0\performance_advisor\pa.ini
Kind regards,Pete
Sorry, misread that. My host OS is macOS Catalina 10.15.7
We've tested here on macOS BigSur 11.2.3, and it works for us here, so our best guess is that you have a local Java install which is overriding the packaged Java we ship, although we're not sure why. To find the ini file on macOS, right click on Performance Advisor.app > Show Package Contents and then go to the Eclipse folder to see the .ini file. Alternatively you can run PA with the -vm command line pointing to the packaged JDK.
Replacing XX:MaxRAMPercentage=75.0" with "-Xmx8g" in pa.ini file helped to solve this issue.
Thanks a lot for your help!
Best,