Scroll down to see English version
Как положить приложение?
- Запустите
FileCreator
: это создаст файл, забитый случайными данными нужного объёма - Запустите
ReportRepositoryTest
со следующими настройками ВМ:-Xmx1g -XX:+HeapDumpOnOutOfMemoryError
- Объяснение см. в статье на Хабре или попробуйте догадаться самостоятельно.
В качестве подсказки см. содержимое spy.log
, который появится в корне проекта после запуска теста.
Чтобы исправить положение, откройте файл spy.properties
и раскройте последнюю строку.
How to crash the application?
- Run
FileCreator
: it creates a text file stuffed with random bytes - Run
ReportRepositoryTest
with these VM options:-Xmx1g -XX:+HeapDumpOnOutOfMemoryError
- See explanation in my article or detect it yourself.
For a clue see the contents of spy.log
which appears in project root when the test is run.
To fix this open spy.properties
and uncomment the last line.