Меню сайта |
|
Форма входа |
|
Категории раздела |
|
Поиск |
|
Статистика |
Онлайн всего: 1 Гостей: 1 Пользователей: 0 |
|
Приветствую Вас, Гость · RSS |
30.01.2025, 18:09 |
|
Управление использованием памяти
If you are certain your webapps need a lot less than half a gig memory,
you can start Tomcat with a smaller maximum heap by setting the
environment variable CATALINA_OPTS to "-Xmx256m" in catalina.sh to give
it a maximum heap of 256MB. If your app sometimes needs more memory but
you want it to shrink down its heap more quickly, set it to
"-XX:MaxHeapFreeRatio=20 -XX:MinHeapFreeRatio=10" - this will give back
memory to the OS if more than 20% of the heap is free after garbage
collection, and expand the heap if less than 10% is free. But this may
reduce performance by making Java spend a lot of time allocating memory
from the OS and freeing it again soon after.
|
Категория: Java | Добавил: basil (26.10.2012)
|
Просмотров: 448 | Комментарии: 3
| Рейтинг: 0.0/0 |
|
|