Recent Posts

vbochenin's Avatar'

Reducing heap allocations with JMH

What an issue I’ve tried to solve My task was to investigate why a typed enumeration was taking up 13MB per instance in a customer environment. The typed enumeration is a domain object that allows users to configure the enumeration type for custom fields. The use case is reproducible once the enumeration has about 1k elements. So I can assume the following possible causes a memory leak ...

What an issue I’ve tried to solve My task was to investigate why a typed enumeration was taking up 13MB per instance in a customer environment. The typed enumeration is a domain object that allows users to configure the enumeration type for custom fields. The use case is reproducible once the enu...

vbochenin's Avatar'

How to create limited-size directory

What an issue I’ve got Today I’ve got a task to test (and fix) how the application behaves during a backup when it does not have a space on the device. As a result, there shouldn’t be any new files when the backup fails with a “no space left” error. How did I investigate the issue So far, I see the following options for reproducing the problem: to have huge application data to back up, ei...

What an issue I’ve got Today I’ve got a task to test (and fix) how the application behaves during a backup when it does not have a space on the device. As a result, there shouldn’t be any new files when the backup fails with a “no space left” error. How did I investigate the issue So far, I se...