难道Android应用程序的内存限制适用于整个应用程序或应用程序的每个过程? [英] Does Android application memory limit apply to entire app or per process of app?

查看:162
本文介绍了难道Android应用程序的内存限制适用于整个应用程序或应用程序的每个过程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,打我的应用程序的内存限制。我的问题是,如果我打破我的应用程序转变成几道工序将在允许每个进程获得24MB的限制,或将所有过程加起来打了24MB的限制吗?

I am having an issue hitting the memory limit of my application. My question is if I break my application into a few processes will this allow each process to get a 24mb limit or will all processes add up to hit the 24mb limit?

推荐答案

如果Android的遵循Java的Oracle的堆空间的指导方针,它说:最大堆大小取决于最大地址空间每次的过程的。 调整Java堆

If Android follows Oracle's heap space guidelines for Java, it says: "Maximum heap size depends on maximum address space per process." Tuning The Java Heap

如果你能打破你的应用程序分为几个过程,您也许能获得超过24MB ..我唯一能看到不会让你这样做将是一个Android安全功能,以prevent恶意应用程序从forkbombing手机。

If you are able to break your application into a few process, you might be able to get more than 24MB.. The only thing I can see not letting you do this would be an Android security feature to prevent malicious application from forkbombing the phone..

下面是一个有关良好的编程习惯文章由马特·克拉克是高效与你的堆空间24MB ..的开发应用程序在Android的16MB内存限制

Here is an article by Matt Clark about good programming habits to be efficient with your 24MB of heap space.. Developing Apps Within Android's 16MB Memory Limit

希望这会有所帮助,祝你好运!

Hope this helps, good luck!

这篇关于难道Android应用程序的内存限制适用于整个应用程序或应用程序的每个过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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