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
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,