After viewing this issue for some time on my note 2 (GT-N7100), Android 4.4.2, I would like to make my comment above the correct answer.

Sorted by size:

I used webrtc to track the allocation when using the Android camera, and it is clear that every time the camera is called and the video is displayed in GLSurfaceView in a new action, more than 2 MB of garbage remains that the GC never collects.
To compare, here is the same distribution that is tracked on the ASUS Memo Pad 2, Android 4.2.2:

Sorted by size:

In other words, on note 2, you can start watching live video about 20-30 times before the memory is full and the device works.
In other words: Samsung introduced this problem with the update last year and has not yet fixed it, and they do not react in any way. Samsung wants to force us to buy a new device? It looks like this.
-
And here is my original comment from 2014-12-11:
This is causing problems. This causes the device to receive much more memory than necessary, and a failure. We are developing an application with many images and videos, and due to the lack of GC, you can make Android reach the limit of 64 MB (Note 2) and crash, while in the memory of other devices the consumption is much lower and the memory is saved after use. For example, an ASUS Memo Pad with the same resolution of 12 MB, for which Samsung Note 2 takes up 24 MB. Samsung's device is much faster, although probably due to the lack of GC.
Oliver Hausler Apr 12 '15 at 21:29 2015-04-12 21:29
source share