Memory footprint of a Java process by Andrei Pangin

Ғылым және технология

Does JVM option '-Xmx4g' mean that the process will consume up to 4 GB RAM? Certainly not. What else can take virtual memory and how much of it?
The question becomes especially important when running Java in a shared environment or in a container with limited resources. Excessive memory consumption may occur everywhere: from the application code and the libraries to the Java virtual machine and the operating system. While Java memory leaks are usually easy to discover from a heap dump, native memory leaks can be quite confusing.
During this session we will discuss what structures contribute to the JVM footprint. We will study the real cases of native memory leaks and explore the tools useful in memory allocation analysis.
Andrei Pangin leads the development of Odnoklassniki social network, specializing in high performance Java servers. He previously worked on HotSpot JVM, which became his favorite topic and area of expertise. Andrei is also known as top #JVM answerer on Stack Overflow and the author of Async-profiler.

Пікірлер: 24

  • @SirWolf2018
    @SirWolf20184 жыл бұрын

    This is so useful, I can't thank you enough!

  • @FernandoRacca
    @FernandoRacca3 жыл бұрын

    that's what a deep dive looks like. EXCELLENT presentation

  • @amez44
    @amez442 жыл бұрын

    This is one of the best presentations I’ve seen, great work, thank you very much

  • @leozilla
    @leozilla Жыл бұрын

    The best video about java memory consuption I have seen so far! Thanks a lot for preparing this great talk!

  • @sgerardpandian
    @sgerardpandian3 жыл бұрын

    We had been facing issues in production instance of Oracle Service Bus and Weblogic server. Omg this post cleared up so many misconceptions and doubts that we have been going through in our troubleshootings. I really cant thank you enough, this might look simple but it is such deep stuff that application server admins rarely have exposure to. Kudos sir!

  • @YousufZiaTheOneAndOnly
    @YousufZiaTheOneAndOnly2 жыл бұрын

    Incredible! Loved this talk!

  • @sameersarmah1446
    @sameersarmah14463 жыл бұрын

    Immensely informative session. After watching one would be able to perform in-depth analysis of different sections of native memory. Grateful for such awesome session.

  • @ravipasumarthy8732
    @ravipasumarthy87322 жыл бұрын

    This is one of the excellent talks

  • @cheriviralakiran
    @cheriviralakiran7 ай бұрын

    This is very good coverage in one hour

  • @kevinwsewell
    @kevinwsewell2 жыл бұрын

    Thank you soooo much for this video, it was a life saver!!!

  • @dhawaljoshi
    @dhawaljoshi Жыл бұрын

    Extremely informative, thanks!

  • @Natalicha1234
    @Natalicha12344 жыл бұрын

    Круто, спасибо!

  • @marcellolorenzi8401
    @marcellolorenzi8401 Жыл бұрын

    Amazing presentation! Well done!

  • @marceloortizdesantana9952
    @marceloortizdesantana99523 жыл бұрын

    Thanks! Help a lot!!!

  • @Capibara1
    @Capibara12 жыл бұрын

    Great talk!

  • @thunkwaltz5571
    @thunkwaltz55712 жыл бұрын

    Wonderful presentation with great insights, thanks a lot. Regarding adaptive policy, I was reading at some place that in case of Parallel GC, enabling adaptive policy change heap generation sizes dynamically to meet latency and throughput Goals. Can you comment on that?

  • @desigooglycom
    @desigooglycom2 ай бұрын

    Hi Andrei our application on Kubernetes is consuming lot of page cache, the page cache continues to grow and ultimately container hits memory limit, what should we do?

  • @berndeckenfels
    @berndeckenfels Жыл бұрын

    Another big footprint (at least for large heaps without large pages is OS Pagetables. This only shows up in Linux slab info (fortunately it’s very linear to application page count).

  • @Gabriel-sc3mg
    @Gabriel-sc3mg2 ай бұрын

    i'm facing a huge problem of memory increasing and it does not seen to be the heap i'll use this material to try to find ou what could be. thank you very much

  • @manikantareddy7595
    @manikantareddy759511 ай бұрын

    anyone help please, where can I get the presentation slides from ?

  • @pratikadhau5885
    @pratikadhau58854 жыл бұрын

    I too second @SirWolf2018

  • @manoelhc
    @manoelhc Жыл бұрын

    Why memory is rocket science in Java?

  • @cosmowanda6460

    @cosmowanda6460

    2 ай бұрын

    Anything memory related sounds like rocket science if you skipped your operating systems course.

  • @chromosome24
    @chromosome243 жыл бұрын

    pshh! Just download more memory.

Келесі