LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 08-05-2015, 03:52 PM   #1
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Rep: Reputation: 56
memory leak on Android phone


is it possible to determine whether or not a specific app, user or system, is either leaking memory or not letting go? I'm currently rooted and am using CoolTool to stats, where one of them is free memory. After a fresh cold reboot, my free memory floats just a little over 300MB. Usually when I use an app that number drops below 300MB and always climbs back above after I close the app. Not exactly sure what it is yet, but sometimes that number keeps decreasing and decreasing until the phone is unusable. I'll kill all the running apps and that brings all the memory back temporarily. Less than two minutes later it would drop all the way back down to below 285MB free. Something is definitely grabbing the memory and not being caring by releasing. If I reboot, everything is back to normal. Any suggestions?
 
Old 08-05-2015, 07:34 PM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Are you using the Android OS? Maybe your question would be better answered here: http://www.androidquestions.org/forum.php

Aside from that, I think you need to tell us what app you are running when said memory leak occurs. Also it would be helpful to know what OS is on this device and what version of this OS you are running.
 
Old 08-06-2015, 10:34 AM   #3
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Original Poster
Rep: Reputation: 56
I'll give that site a try as well. To answer your questions, the most apparent time when the memory leak occurs is after using Google Maps or Endomondo. I'm not sure if it's the app themselves or if it's the Android OS and GPS as both those apps use GPS heavily. I've even used Google Maps after a fresh reboot to navigate me while driving for about an hour. After the navigation the device was sluggish with free RAM under 250MB. Force stopping Google Maps didn't bring the RAM back to normal or the system... Same with Endomondo as I used it yesterday to track my bike ride... had to reboot to get the system to a usable state.

The OS I'm using is 4.4.2 stock Touchwiz for a Samsung Galaxy S5.
 
Old 08-06-2015, 11:36 AM   #4
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Just to clarify, Touchwiz is the GUI, Kitkat 4.4.2 is the Android version. I had to look it up because I had never heard of Touchwiz being an Android version.
Quote:
The OS I'm using is 4.4.2 stock Touchwiz for a Samsung Galaxy S5.
To the best of my knowledge, you would have to install the Eclipse Android development environment and use the Eclicpse Memory Analyzer on each application while it runs in a virtual Android device on your computer.

This is the way that I would do it. I am not really sure though if you will be able to test if the issue is related to the Touchwiz GUI or if it is related to the garbage collector that handles the opening and closing of apps in Kitkat 4.4.2. I am not really sure if Touchwiz can be installed in the development environment, since it looks like it is provided by Samsung, not Google.

I may be mistaken about this, and maybe someone more knowledgeable can verify this.

Here is an interesting discussion on the topic of android memory leaks.
 
Old 08-06-2015, 08:48 PM   #5
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Original Poster
Rep: Reputation: 56
Sorry, I should have been more specific... I've become too accustomed to Touchwiz being so meshed into the OS itself that I tend to forget they're separate. Anyway, I'll look into the Eclipse Memory Analyzer, however if I have to use it on every app on my device it might be quicker/easier to wipe and start fresh... unfortunately that's a mess in and of itself. One thing I notice on why the device gets so sluggish is that when the memory falls below 250MB, it begins swapping like crazy as evident by the kswapd0 process eating up CPU and causing insane amounts of I/O.

I'd like to exclude Touchwiz as being a culprit, since my friends with this device don't seem to have this issue =(
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 6 Ways to Free Up Your Android Phone Memory LXer Syndicated Linux News 0 05-07-2013 08:01 PM
[SOLVED] Memory leak: How risky not to free allocated memory. kaz2100 Linux - General 1 12-24-2008 12:00 AM
Inactive memory issue, Freebsd (memory leak?) JasperB *BSD 7 08-12-2008 03:19 AM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 09:39 AM
Memory Leak? eLinux Linux - General 2 09-20-2003 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 02:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration