/p6spy-mine

Ещё один пример для статьи на Хабре

Primary LanguageJava

Scroll down to see English version

Как непредвиденое взаимодействие валит приложение

Как положить приложение?

  1. Запустите FileCreator: это создаст файл, забитый случайными данными нужного объёма
  2. Запустите ReportRepositoryTest со следующими настройками ВМ: -Xmx1g -XX:+HeapDumpOnOutOfMemoryError
  3. Объяснение см. в статье на Хабре или попробуйте догадаться самостоятельно.

В качестве подсказки см. содержимое spy.log, который появится в корне проекта после запуска теста.

Чтобы исправить положение, откройте файл spy.properties и раскройте последнюю строку.


Unpredictable interaction crashing your app

How to crash the application?

  1. Run FileCreator: it creates a text file stuffed with random bytes
  2. Run ReportRepositoryTest with these VM options: -Xmx1g -XX:+HeapDumpOnOutOfMemoryError
  3. 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.