Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OutOfMemory

2 views
Skip to first unread message

Alex Mizrahi

unread,
Feb 13, 2008, 4:52:37 AM2/13/08
to
при создании мелких объектов в условиях нехватки памяти, JVM долго
"страдает" прежде чем выкинуть исключение OOM -- очень часто запускается
полная сборка мусора. хотелось бы чтобы когда память подходит к концу, оно
не страдало фигнёй пытаясь выжать последние крохи, а сразу кидало
OutOfMemory exception.

единственное что мне пока что удалось найти относится к Throughput Collector
(-XX:+UseParallelGC):

5.2.3 Out-of-Memory Exceptions

The throughput collector will throw an out-of-memory exception if too much
time is being spent doing garbage collection. For example, if the JVM is
spending more than 98% of the total time doing garbage collection and is
recovering less than 2% of the heap, it will throw an out-of-memory
expection. The implementation of this feature has changed in 1.5. The policy
is the same but there may be slight differences in behavior due to the new
implementation.

но сам по себе мне паралельный сборщик без надобности, да и не факт что он
будет работать как надо. есть ли ещё какие-нибудь возможности для настройки?


0 new messages