From Java Code to Java Heap: Understanding the Memory Usage of Your Application

preview_player
Показать описание
When you write and run Java code, the JVM makes several allocations on your behalf, but do you have an understanding of how much that is? This session provides insight into the memory usage of Java code, covering the memory overhead of putting "int" into an integer object and the cost of object delegation and the memory efficiency of the different collection types. It also gives you an understanding of the off-Java (native) heap memory usage of some types of Java objects, such as threads and sockets. Most importantly, the session covers how to determine where there are inefficiencies in your application and how to choose the right collections to improve your Java code.
Copyright © 2013 Oracle and/or its affiliates. Oracle® is a registered trademark of Oracle and/or its affiliates. All rights reserved. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the "Materials"). The Materials are provided "as is" without any warranty of any kind, either express or implied, including without limitation warranties of merchantability, fitness for a particular purpose, and non-infringement.
Рекомендации по теме
Комментарии
Автор

Very interesting presentation. Good insights on memory usage of different collections. Thanks.

praveenmooli
Автор

I was delighted to light on this informative presentation

happylifepractioner
Автор

Wonderful presentation. Very informative and presented in a magnificent way. Thanks a lot for sharing this.

sanjaybharatiya
Автор

He is definitely my master !  , I learnt a lot from this lovely articulate presentation . Looking forward to get quick insights on subtle areas of programming 

srikanthpb
Автор

learned the actual things going on background..Thanks a lot....

ganeshsonar
Автор

Really good presentation. Can I embed it on my blog? For now, it is just linked, but I would like to have it embedded there if You don't mind. @Oracle Learning Library

jakubdubanski
Автор

This is very informative presentation. Thanks!

engineer_fouad
Автор

Learned some new details today. Great examples.

SebastianPeters
Автор

Could someone please help to clarify the over head figures for the Hashmap? It says 32 bytes per key value entry. Each Hashmap$Entry contains four items that are KeyHash and three other items of type object. So if each of these are 8 bytes then what he says about the entry overhead being 32 bytes is correct. But further down the slide he says overhead of Hashmap is 48 plus 36. But each entry has an overhead of 32 bytes. In essence it sould be 48 plus 32. So where do the additional 4 bytes come from when the slide says 48 plus 36? So I am slightly confused and appreciate it if anyone could shed some light on this issue. Many thanks

eshgholah
Автор

Wow !!! Thank you. Amazing interesting :)

foulsoft
Автор

Very informative video but I have to watch something else. It is the end of my shift at work and I am really tired!!

learn
join shbcf.ru