J

JOL Java Object Layout

JetBrains

d848ca38-90d6-4adc-86df-9bf931fd8908 · v—

Java Object Layout (JOL) is a tool to analyze in memory object layout schemes in JVMs. It allows you to make an estimate how much memory the object takes. This allows to make the simplest but most efficient performance improvements. Just check your DTOs if they fit into 64 bytes of processor's cache line. For example, in HotSpot VM on 64x processor an empty string "" takes 40 bytes i.e. 24 bytes for

Profiling
Open in store ↗ id: 10953
Downloads
49K
49 110
Rating
4.1 ★
7 ratings
Category
JetBrains Marketplace
Collected
2026-11-04
weekly snapshot

Rating distribution

4.1 ★ 7 ratings
5★ 85.7%
4★ 14.3%

Reviews 6

★★★★★ Дмитрий Курлянов 2024-05-22

Works. comfortable.

★★★★★ Benny Huo 2022-10-08

This is really AMAZING!

★★★★★ Petr Bouda 2019-06-28

Amazing! Is there any reason why the default for `Class have too big memory footprint` is 64 bytes. I mean JVM memory reason. Or it's a just good practice? Thanks

★★★★★ 493101885 2023-03-04

I prefer like org.openjdk.jol <dependency> <!-- JOL 可以查看 Java 对象的内部布局,也可以查看对象占用的空间 --> <!-- 错误:Process finished with exit code 137 (interrupted by signal 9: SIGKILL) 解决:切换非 Oracle JDK --> <groupId>org.openjdk.jol</groupId> <artifactId>jol-core</artifactId> <version>0.16</version> <!-- <scope>provided</scope> --> </dependency>

★★★★★ Sergey Ponomarev 2018-09-28

Hi Bohond Yes, I'll try to make a support of other languages https://github.com/stokito/IdeaJol/issues/17 Also this can be quite easy to contribute so any PR is welcome.

★★★★★ Bohong Gaozhang 2018-09-28

Can you make it support kotlin class as well.

Similar in “Profiling”