Netbeans Clamshell emulator out of memory

走远了吗. 提交于 2019-12-11 18:28:47

问题


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?

thanks!


回答1:


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.

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.



来源:https://stackoverflow.com/questions/2560181/netbeans-clamshell-emulator-out-of-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!