Netbeans Clamshell仿真器内存不足 [英] Netbeans Clamshell emulator out of memory

查看:84
本文介绍了Netbeans Clamshell仿真器内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用适用于Netbeans的翻盖式手机仿真器.我最近测试了一个简单的蓝牙应用程序,并得到了"Out of Memory erorr".可以增加模拟器可以使用的内存量吗?

I have been working with the clamshell mobile phone emulator for netbeans. I recently have tested a simple bluetooth application and got an Out of Memory erorr. Is it possible to up the amount of memory the emulator can use?

谢谢!

推荐答案

我不知道Clamshell手机模拟器,尽管如果它是Java程序,则堆的最大大小可能太小,因此该程序内存不足.

I do not know Clamshell mobile phone emulator, though if it is Java program it may be possible that the maximum size of the heap is too small and hence the program is running out of memory.

您可以将-Xmx512m作为附加选项传递给Java,以将最大堆大小设置为512mb. (可以使用更高的值:-Xmx768m-Xmx1024m,...).

You can pass -Xmx512m as an extra option to Java to set the maximum heap size to 512mb. (higher values are possible: -Xmx768m, -Xmx1024m, ...).

因此,剩下的唯一事情就是找到启动仿真器的位置.只需将参数添加到启动脚本或配置文件中即可(如果有的话).

So, the only thing left is to find place where your emulator is started. Just add the parameter to the starting script or to the configuration file if there is one.

这篇关于Netbeans Clamshell仿真器内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆