0

我为 s60 设备开发了一个 J2ME 应用程序。我使用 sun wireless toolkit 的内存监视器来监控我的应用程序执行期间消耗的内存大小。我发现消耗的内存大小达到 126 KB。我想知道 J2ME 应用程序消耗的标准内存大小是多少?换句话说,执行 J2ME 应用程序所消耗的最佳或可接受的内存大小是多少。为了根据标准比较和评估我的应用程序的内存消耗。

4

1 回答 1

0

I do not think there are any standards concerning memory consumption. Memory consumption depends on the nature of the app and amount of data it works with. There are too major concerns regarding memory - running of out it and/or too much GC activity (too frequent and/or taking too much time).

Given the fact that heap size is typically at least 1 MB on non-smartphones, and on S60 heap size is limited only by free memory, then with your 126 kB (top consumption as you say) you are more than fine and quite far from OutOfMemoryError :), and I guess there is also low GC activity because only a small part of heap is used and thus there is little pressure to run gc...

于 2013-09-06T09:33:58.600 回答