尝试部署一个Android应用程序了,当内存不足 - Eclipse的崩溃,越来越堆例外 [英] Eclipse crashing, getting heap exceptions - Out of Memory when trying to deploy an Android applicaiton

查看:137
本文介绍了尝试部署一个Android应用程序了,当内存不足 - Eclipse的崩溃,越来越堆例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android项目中应用时的崩溃。在同一个工作区做工精细的其他项目。我增加了对AVD的RAM的使用,我使用1 GB。我不认为有内存泄漏,因为它似乎其他人的电脑上工作。

I have one Android project that crashes when it is deployed. Other projects in the same workspace work fine. I increased the RAM usage on the AVD that I'm using to 1 GB. I don't think there is a memory leak because it seems to work on other peoples computer.

我想使用的内存设置,但启动项目之前崩溃,我不能达到logcat的文件。

I'd like to use the Memory Profiler, but the project crashes before launching, and I can't reach the Logcat files.

现在,我使用Eclipse,有没有办法对我来说,用ANT或命令行,在那里我可以执行它一步一步并找到坠机发生启动它?

Right now I'm using eclipse, is there a way for me to launch it using ANT or the command line, where I can execute it step by step and find where the crash is happening?

任何帮助将大大AP preciated。

Any help would be greatly appreciated.

感谢您,

大卫

推荐答案

大卫

尝试增加例如从eclipse.ini文件VM参数Eclipse的默认情况下它会喜欢的堆大小

Try to increase heap size of the eclipse in vm arguments from eclipse.ini file for example by default it will like

  -vmargs
  -Dosgi.requiredJavaVersion=1.5
  -Xms40m
  -Xmx512m

您可以更改像

  -vmargs 
  -Dosgi.requiredJavaVersion=1.5
  -Xms512m
  -Xmx1024m
  -XX:PermSize=256M
  -XX:MaxPermSize=512M

这篇关于尝试部署一个Android应用程序了,当内存不足 - Eclipse的崩溃,越来越堆例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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