今天用了一下android的traceview
./traceview calc.trace
结果无法启动java虚拟机,报错如下:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
于是修改traceview扩大java VM的 heap size
vi traceview
找到if [ `uname` = "Linux" ]; then
增加
javaOpts="-Xms64m -Xmx256m"
结果可以启动了。
阅读(987) | 评论(0) | 转发(0) |