zgc

The Java ZGC garbage collector USES a lot of memory

情到浓时终转凉″ 提交于 2020-12-30 17:17:49
问题 I built a simple application using Springboot.The ZGC garbage collector I use when deploying to a Linux server USES a lot of memory..I tried to limit the maximum heap memory to 500MB with Xmx500m, but the JAVA program still used more than 1GB. When I used the G1 collector, it only used 350MB.I don't know why, is this a BUG of JDK11?Or do I have a problem with my boot parameters? ####Runtime environment operating system : CentOS Linux release 7.8.2003 JDK version : jdk11 springboot version :

The Java ZGC garbage collector USES a lot of memory

雨燕双飞 提交于 2020-12-30 17:12:47
问题 I built a simple application using Springboot.The ZGC garbage collector I use when deploying to a Linux server USES a lot of memory..I tried to limit the maximum heap memory to 500MB with Xmx500m, but the JAVA program still used more than 1GB. When I used the G1 collector, it only used 350MB.I don't know why, is this a BUG of JDK11?Or do I have a problem with my boot parameters? ####Runtime environment operating system : CentOS Linux release 7.8.2003 JDK version : jdk11 springboot version :

Undestanding a detail about the colour bits in the ZGC algorithm

早过忘川 提交于 2020-01-16 12:04:56
问题 I'm trying to understand how ZGC works in detail. Let's consider a simple Java example: var v = new Object[]{ new Object() }; Let's call a : the array object o : the object referenced by v[0] r : the reference to a s : the reference to o The image below shows the artefacts graphically: Let's assume that the first gc cycle starts and a , o are relocated. Let's further assume that the app doesn't access the objects. gc cycle 1: a) Marking phase: at the end of the marking phase the marked0 bit

Undestanding a detail about the colour bits in the ZGC algorithm

你说的曾经没有我的故事 提交于 2020-01-16 12:00:12
问题 I'm trying to understand how ZGC works in detail. Let's consider a simple Java example: var v = new Object[]{ new Object() }; Let's call a : the array object o : the object referenced by v[0] r : the reference to a s : the reference to o The image below shows the artefacts graphically: Let's assume that the first gc cycle starts and a , o are relocated. Let's further assume that the app doesn't access the objects. gc cycle 1: a) Marking phase: at the end of the marking phase the marked0 bit

Undestanding a detail about the colour bits in the ZGC algorithm

我的未来我决定 提交于 2020-01-16 12:00:10
问题 I'm trying to understand how ZGC works in detail. Let's consider a simple Java example: var v = new Object[]{ new Object() }; Let's call a : the array object o : the object referenced by v[0] r : the reference to a s : the reference to o The image below shows the artefacts graphically: Let's assume that the first gc cycle starts and a , o are relocated. Let's further assume that the app doesn't access the objects. gc cycle 1: a) Marking phase: at the end of the marking phase the marked0 bit

Safepoint+stats log with None vmop operation in output JDK12

人走茶凉 提交于 2019-12-11 08:33:52
问题 I am running application on the JDK12 with the -Xlog:safepoint+stats=debug:file=safepoint.log vm parameter to log the safepoint actions and running with ZGC. I have the problem to understand the log output: [1408.417s][debug][safepoint,stats] vmop [ threads: total initially_running wait_to_block ][ time: spin block sync cleanup vmop ] page_trap_count [1412.164s][debug][safepoint,stats] 1412.162: ZOperation [ 376 0 7 ][ 0 0 0 0 1 ] 7 [1413.164s][debug][safepoint,stats] 1413.164: None [ 376 0 0