This is a tip not about Dynatrace, but about how many memory our programming languages use today.
One of the biggest surprises is how much memory even simple types use. Consider the following languages:
- JAVA (64 bits)
- A Boolean takes 16 bytes!
- An Integer also takes 16 bytes
- A double takes 24 bytes
- Link: The Size of Java Objects
- Python 3
- A float takes 24 bytes…
- A Boolean takes 28 bytes!
- An integer takes 28 bytes
- A string “1” takes 50 bytes!!!
- Link: Understand How Much Memory Your Python Objects Use | Envato Tuts+
Didn’t find a quick link for .Net, but it’s similar. Of course, C & Assembly are another story…
There are tricks around this, but as it goes, memory usage is surprisingly high in today’s environments…