No video

Google I/O 2011: Memory management for Android Apps

  Рет қаралды 209,637

Google for Developers

Google for Developers

Күн бұрын

Patrick Dubroy
Android apps have more memory available to them than ever before, but are you sure you're using it wisely? This talk will cover the memory management changes in Gingerbread and Honeycomb (concurrent GC, heap-allocated bitmaps, "largeHeap" option) and explore tools and techniques for profiling the memory usage of Android apps.

Пікірлер: 55
@ridhishguhan
@ridhishguhan 10 жыл бұрын
There is something about the way he speaks that makes me want to listen and not fall off to sleep, unlike how I feel with some of the other speakers.
@arjundixit5913
@arjundixit5913 2 жыл бұрын
After 10 years of coding learned a new concept @26:10 from a 10 year old video!
@prak04slarti
@prak04slarti 13 жыл бұрын
Just fixed a huge memory leak thanks to this talk!!! Thank you so much Pat!!
@frankdrebin4309
@frankdrebin4309 11 жыл бұрын
Good presentation! He looks exhausted... Hunting memory leaks is tough job
@matthewharris3572
@matthewharris3572 10 жыл бұрын
This talk has gotten me out of a lot of jams. Great talk, really useful.
@Goalstate
@Goalstate 12 жыл бұрын
I keep coming back to this video; it's pretty much a defining presentation on the subject. Re: 5:20: while getMemoryClass() generally returns available heap for stock versions of Android, CyanogenMod in particular allows the user to adjust this limit, and changing it does not result in getMemoryClass() returning a different value. Runtime.getRuntime().maxMemory(), however, does.
@GeorgiPachov
@GeorgiPachov 12 жыл бұрын
Very, very clear talk. Just excellent.
@silentcod3r
@silentcod3r 11 жыл бұрын
It is fairly simple assuming you know a small bit about either command line and/or environment variables. In the Android SDK that you download, there is a program called hprof-conv.exe, either directly go to this directory through command prompt, and execute the command which he shows in the video, or add the directory path of the file to your system Environment variables so it can be executed anywhere within command prompt directories.
@gentoomaniac
@gentoomaniac 11 жыл бұрын
Great presentation! Helped me a lot understanding this topic.
@drive83
@drive83 13 жыл бұрын
Very clear and informative! Thank you very much!
@AchimStein-SEO
@AchimStein-SEO 11 жыл бұрын
Thank you so much! With your help I hunted down the little bugger I had ^^
@oliness
@oliness 12 жыл бұрын
Great talk and pretty helpful. Doesn't the voice of the guy who asked the questions around 51mins in really remind anyone else of Agent Smith from The Matrix?
@KentFenwick
@KentFenwick 13 жыл бұрын
Awesome talk Pat!
@PimmHogeling
@PimmHogeling 11 жыл бұрын
It's all about context. Listen to the lines before that one as well. The message is: you shouldn't explicitly start the garbage collector.
@MrS.-
@MrS.- 11 жыл бұрын
Great Talk! Found my leak in 20 mins (though I didn't call it "Leaky" :-)
@leagmain
@leagmain 7 жыл бұрын
I should see this before, god, I like this video!
@GanjaBro99
@GanjaBro99 10 жыл бұрын
I still don't understand how to manage memory leaks :(
@abdulmoiz3348
@abdulmoiz3348 2 жыл бұрын
Does this guy by default has 0.95x speed? :P BTW this talk is too much helpful and needs appreciation (Y)
@AayushAngel
@AayushAngel 12 жыл бұрын
hats off to u........
@ericcurtin1990
@ericcurtin1990 11 жыл бұрын
It's Juan Mata!
@GOUSETEIN
@GOUSETEIN 10 жыл бұрын
nice talk patrick and thank u very much
@danemack
@danemack 7 жыл бұрын
great talk
@bilthon
@bilthon 13 жыл бұрын
Well my adb logcat output doesn't show that much info. It just states how many objects/bytes it released. Not the current and max size of the heap. It looks like this: 06-23 13:05:19.072: DEBUG/dalvikvm(977): GC_FOR_MALLOC freed 3312 objects / 401064 bytes in 351ms
@MsJavaWolf
@MsJavaWolf 13 жыл бұрын
I need to convert it although I use the DDMS plugin. Maybe this will help some people who also get errors.
@kaihu7394
@kaihu7394 11 жыл бұрын
非常好的视频,太有用了
@TheProximator
@TheProximator 9 жыл бұрын
Nice, thanks
@codingwithsam4992
@codingwithsam4992 3 жыл бұрын
Should I watch it in 2021?
@maxmaxxen4638
@maxmaxxen4638 10 жыл бұрын
Why doesn't he exclude phantom and soft references also at 32:23. Would't this be smart when working on an App?
@uio86a
@uio86a 2 жыл бұрын
It's refreshed after using a movie or camera and going to another app, is there any solution?
@gauravsobti11
@gauravsobti11 10 жыл бұрын
I am a beginner and I don't properly understand how to manage memory. This video was very helpful but I want to study it properly from the start. Can anyone please share some good links or resources?
@timliu662
@timliu662 9 жыл бұрын
I'm looking at the code of a former developer who has left the company and he commonly practices the use of two system.gc(), back to back. What's up with that?
@sathees111278
@sathees111278 12 жыл бұрын
Awesome
@ljbpic256
@ljbpic256 11 жыл бұрын
awesome
@ArnoldRoxx
@ArnoldRoxx 12 жыл бұрын
Watch "aut" , this stuff is addictive! THUMBS UP
@nikolaosprodromidis2375
@nikolaosprodromidis2375 10 жыл бұрын
Excellent presentation, can we download the slides somewhere?
@ziogaschr
@ziogaschr 10 жыл бұрын
Θα το δω μέσα στην εβδομάδα. Αφου λες ότι αξίζει.
@jxc02dev10
@jxc02dev10 8 жыл бұрын
are the slides of this video available anywhere?
@edmundo2dot0
@edmundo2dot0 11 жыл бұрын
The guy says the hprof conversion process is "easy" yet doesnt give a thorough explanation as to how to it, Ive been trying to convert it for over a day with no luck
@kapilricky
@kapilricky 11 жыл бұрын
Awesome Video ;)
@walter0bz
@walter0bz 11 жыл бұрын
"with 256mb you're going to see longer garbage collection pause times" thats why we have C/C++
@AviPars
@AviPars 7 жыл бұрын
So funny to look at this now
@americanboy48
@americanboy48 12 жыл бұрын
cool
@Hackaprende
@Hackaprende 10 жыл бұрын
When I run my app I get this "E/JavaBinder﹕ !!! FAILED BINDER TRANSACTION !!!" but my app doesn't crashes, I have days analyzing the my app with Eclipse MAT, looking for holding references and bundle extras but I can't find what is the cause of the error, thee heap starts at 14253K and airses to 20000k but then stop there and the error appears, could someone help me with this please? more detailed information of the problem is here stackoverflow.com/questions/25513188/android-java-binder-failed-binder-transaction
@RhexGomez
@RhexGomez 9 жыл бұрын
Usually it happens with you passed heavy Objects like Bitmaps in Parcelable and Bundle, Parcelable become very exhausted that time.
@Hackaprende
@Hackaprende 9 жыл бұрын
Thanks for the answer, I don't know why but the problem was caused by a facebook profile image that I had in a settings fragment, I removed this image and the problem disappeared, the weird thing is that I just got the image with a Request.newMeRequest function and just showed it, I never passed it.
@RhexGomez
@RhexGomez 9 жыл бұрын
The reason you get that error because maybe the Image was to heavy and your memory is getting low. Their are several techniques you can use to lessen the Memory used by that picture.
@tir669C
@tir669C 12 жыл бұрын
At 0:29 I realized his nationality.
@InSpectorG4
@InSpectorG4 12 жыл бұрын
It's funny to see Google using Apple's (a director competitor's) products. Get on that Ubuntu goodness!
@kellogsnotavailable
@kellogsnotavailable 12 жыл бұрын
"So at the very top of the list we have the resources class [...] That's fine." No it isn't damn it! That is the reason for which I am here grrrr
@slydesplaylists
@slydesplaylists 11 жыл бұрын
timecloxxxxxxxx larger organisms the finite fictory partitions frak yeah
@MrAckers75
@MrAckers75 9 жыл бұрын
Lol you wanna try some memory management on lollipop its a disgrace
@TimothyKist
@TimothyKist 9 жыл бұрын
I hear a ***** here! 43:38
@DanielLew
@DanielLew 9 жыл бұрын
Wow, good ear. That is indeed me.
Google I/O 2011: Accelerated Android Rendering
48:58
Google for Developers
Рет қаралды 56 М.
Google I/O 2011: HTML5 versus Android: Apps or Web for Mobile Development?
1:01:35
Google for Developers
Рет қаралды 193 М.
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 22 МЛН
白天使选错惹黑天使生气。#天使 #小丑女
00:31
天使夫妇
Рет қаралды 14 МЛН
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 4,2 МЛН
Understanding Android memory usage (Google I/O '18)
39:05
Android Developers
Рет қаралды 66 М.
Google I/O 2009 - The Myth of the Genius Programmer
55:17
Google for Developers
Рет қаралды 1,1 МЛН
Google I/O 2011: Bringing C and C++ Games to Android
51:21
Google for Developers
Рет қаралды 65 М.
Enter The Arena: Simplifying Memory Management (2023)
1:47:50
Ryan Fleury
Рет қаралды 35 М.
Trash talk (Android Dev Summit '18)
39:54
Android Developers
Рет қаралды 8 М.
Network Security - Deep Dive Replay
3:08:19
Kevin Wallace Training, LLC
Рет қаралды 147 М.
Google I/O 2010 - Android REST client applications
59:42
Google for Developers
Рет қаралды 243 М.
Google I/O 2011: Android Protips: Advanced Topics for Expert Android App Developers
1:01:13
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 22 МЛН