Skip to content

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

Notifications You must be signed in to change notification settings

stsypanov/p6spy-mine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages