JVM memory management & garbage collection book? [

2019-03-08 08:38发布

Could anyone advice a book (or any other source) that would thoroughly reveal internals of JVM memory management & garbage collection (optimization, work, circular references, pecularities, discussions for various JVM impls...)?

[What I've found so far are separate articles devoted to various aspects but no weighty tome :). Some good materials for Hotspot implementation are here. ]

Thanks a lot for any advice you give.

5条回答
Viruses.
2楼-- · 2019-03-08 09:26
Animai°情兽
3楼-- · 2019-03-08 09:34

I would suggest to go through the Java Virtual Machine specification.Following is the URL for the same :

http://java.sun.com/docs/books/jvms/second_edition/html/VMSpecTOC.doc.html

This gives you a good generic details about the java virtual machine.

查看更多
孤傲高冷的网名
4楼-- · 2019-03-08 09:34
干净又极端
5楼-- · 2019-03-08 09:40

If you look for a vendor-independent resource revealing and thoroughly describing all the various GC algorithms ever researched/designed, I recommend:

  • The Garbage Collection Handbook - Explains theory and implementation of the main GC research that was there since the first GC algorithm ever designed. References also related research articles where you can find all the nasty details. I really like that book, I think that THIS IS THE BIBLE of all the GC-related research.
查看更多
干净又极端
6楼-- · 2019-03-08 09:41

This is highly vendor dependent and not necessarily shared.

HotSpot is open source and demonstrates directly how it is done. Jikes RVM is a JVM written in Java which might be easier to dive into. JamVM is a tiny JVM written in C which - due to its size - might also be easier to dive into.

查看更多
登录 后发表回答