Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hw04-GC #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Hw04-GC #4

wants to merge 3 commits into from

Conversation

nazarov-src
Copy link
Owner

Garbage collectors

Выводы:
1. Наилучший сборщик для данной задачи - G1. При его использовании больше всего количество операций с хранилищем и
время жизни программы до OOM. При этом наименьшее время потрачено на сборки.
2. Serial и CMS примерно одинаковы по параметрам
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не соглашусь... Serial довольно быстро отработал на фоне остальных. Это тоже полезный навык

// printMetrics("ADD", storage.size(), getTimeSpent());

for (int i = 0; i < MAX_SIZE; i++) {
storage.add(new String(new char[255]));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spring не лучший выбор для теста. У него несколько специфические отношения с памятью. Лучше взять Integer


// printMetrics("REMOVE", storage.size(), getTimeSpent());

int eraseAmount = storage.size()/10;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10% под сборку не интересно. Так сборщику работы немного. Давайте хоть половину удалять

@@ -0,0 +1,15 @@
Тестовое окружение: JDK 9, MacOS 10.13.6, Corei5 1.6 GHz, 8Gb RAM
VM Options: -Xms256m -Xmx256m
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Памяти совсем мало... Так не интересно. Давайте хоть гиг дадим, а то Parrallel просто негде развернуться

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants