alstjrdl9511790
@alstjrdl9511790
Reviews Written
3
Average Rating
5.0
Posts
Q&A
pinned ํ์ธ๋ฒ
๋ง๋ถ์ด์๋ฉด, -Djdk.tracePinnedThreads์ open jdk 23 ์ดํ์์ ์ ๊ณตํ๋ JFR ์ด๋ฒคํธ๋ ์ฑ๊ฒฉ์ด ๋ค๋ฆ ๋๋ค. -Djdk.tracePinnedThreads๋ pinning์ด ์ผ์ด๋์ ๋ง์ stack trace๊ฐ ์ฐํ๋๋ค. ํ์ง๋ง jdk 21 ์ดํ์์ ์ ๊ณตํ๋ JFR ์ด๋ฒคํธ๋ ํํ ์ด๋ฒคํธ[1]์ ๋๋ค. pinning์ด ์ผ์ด๋ ๋ก์ง์ด ๋๋์ผ ์ด๋ฒคํธ๊ฐ ์ถ๋ ฅ๋ฉ๋๋ค. open jdk 24 ์ด์๋ถํฐ๋ -Djdk.tracePinnedThreads๋ฅผ JFR๋ก ์์ ํ ๋์ฒดํ ์ ์๋ค๊ณ ํด์ผ ๋ ๋ช ํํ ๊ฒ ๊ฐ์ต๋๋ค[2]. ๋ฌผ๋ก ์์ฑ์๋์ด ์ฌ๋ฆฌ์ ๊ฒ ์ฒ๋ผ -Djdk.tracePinnedThreads๋ฅผ ๊ถ์ฅํ์ง ์์ต๋๋ค[3]. ๋ค๋ง ์ด๋ฅผ ๋์ฒดํ ๊ธฐ๋ฅ์ด ํฌ๊ฒ ์๋ค์๐ [1]jdk.VirtualThreadPinned indicates that a virtual thread was parked while pinned, i.e., without releasing its platform thread (see above). This event is enabled by default, with a threshold of 20ms.https://openjdk.org/jeps/444[2]A jdk.VirtualThreadPinned event is recorded by JDK Flight Recorder (JFR) whenever a virtual thread blocks inside a synchronized method. This event has been useful to identify code that would benefit from being changed to make less use of synchronized methods and statements, to not block while inside such constructs, or to replace such constructs with java.util.concurrent locks.https://openjdk.org/jeps/491[3]As regards jdk.tracePinnedThreads. We want this system property to go away, it's just unfortunate that it seems to be widely used.https://github.com/openjdk/jdk/pull/17221#issuecomment-1874211812
- 0
- 3
- 356
Q&A
6๊ฐ 10๋ถ ์์ธ ๊ณผ์ ์ ๋ํด ์ง๋ฌธ ์์ต๋๋ค.
์ดํดํ์ต๋๋ค ใ ใ ์ธ๋ฑ์ค๋ฅผ ํ๋ฃจ ๋จ์๋ก ์์ฑํ๋ค๊ณ ์๊ฐ์ ๋ชปํ๋ค์! ๊ฐ์ฌํฉ๋๋ค!
- 0
- 2
- 316
Q&A
zuul ๊ฐ์์์ gradle๋ก ํ์๋ ๋ถ๋ค์ ์ํด ๊ณต์ ํฉ๋๋ค
๊ฐ์ฌํฉ๋๋ค ๋๋ถ์ ์ฝ๊ฒ ํ๋ค์ ใ ใ
- 8
- 1
- 1.3K




