Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/350.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/216.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Android-通过调试类从NativeHead获得的值错误?_Java_Android_Memory_Heap Memory - Fatal编程技术网

Java Android-通过调试类从NativeHead获得的值错误?

Java Android-通过调试类从NativeHead获得的值错误?,java,android,memory,heap-memory,Java,Android,Memory,Heap Memory,我尝试使用以下方法从OnCreate方法中的调试类获取一些信息: getNativeHeapAllocatedSize() - Returns the amount of allocated memory in the native heap. getNativeHeapFreeSize() - Returns the amount of free memory in the native heap. getNativeHeapSize() - Returns the size of the n

我尝试使用以下方法从OnCreate方法中的调试类获取一些信息:

getNativeHeapAllocatedSize() - Returns the amount of allocated memory in the native heap.
getNativeHeapFreeSize() - Returns the amount of free memory in the native heap.
getNativeHeapSize() - Returns the size of the native heap.
这就是我得到的:

HeapSize: 4.2mb 
UsedHeapSize: 4.19mb
RemainingHeapSize: 0.05mb
但是怎么做呢?我的应用程序只有4.2MB的nHeap,并且使用了99%的nHeap? 仅仅在OnCreate方法中

有人能解释一下原因吗

在安卓2.3上测试

谢谢