Recent Posts

vbochenin's Avatar'

Running JMH benchmark from Eclipse

What issue I’m trying to solve A few months ago, we started to use JMH in our project to test and find performance issues. The tool provides multiple modes and profilers, and we found this useful for our purposes. Intellij IDEA, which I’m using, has a useful Intellij IDEA plugin for Java Microbenchmark Harness. The plugin’s functionality is similar to JUnit Plugin. It simplifies benchmarks d...

What issue I’m trying to solve A few months ago, we started to use JMH in our project to test and find performance issues. The tool provides multiple modes and profilers, and we found this useful for our purposes. Intellij IDEA, which I’m using, has a useful Intellij IDEA plugin for Java Micro...

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...