equal
deleted
inserted
replaced
335 |
335 |
336 if (committed != commit) { |
336 if (committed != commit) { |
337 // Failed, or partly failed, to increase capacity. Adjust current |
337 // Failed, or partly failed, to increase capacity. Adjust current |
338 // max capacity to avoid further attempts to increase capacity. |
338 // max capacity to avoid further attempts to increase capacity. |
339 log_error(gc)("Forced to lower max Java heap size from " |
339 log_error(gc)("Forced to lower max Java heap size from " |
340 SIZE_FORMAT "M(%.0lf%%) to " SIZE_FORMAT "M(%.0lf%%)", |
340 SIZE_FORMAT "M(%.0f%%) to " SIZE_FORMAT "M(%.0f%%)", |
341 _current_max_capacity / M, percent_of(_current_max_capacity, _max_capacity), |
341 _current_max_capacity / M, percent_of(_current_max_capacity, _max_capacity), |
342 _capacity / M, percent_of(_capacity, _max_capacity)); |
342 _capacity / M, percent_of(_capacity, _max_capacity)); |
343 |
343 |
344 _current_max_capacity = _capacity; |
344 _current_max_capacity = _capacity; |
345 } |
345 } |
570 assert(requested == flushed, "Failed to flush"); |
570 assert(requested == flushed, "Failed to flush"); |
571 |
571 |
572 const size_t cached_after = _cache.available(); |
572 const size_t cached_after = _cache.available(); |
573 const size_t cached_before = cached_after + flushed; |
573 const size_t cached_before = cached_after + flushed; |
574 |
574 |
575 log_info(gc, heap)("Page Cache: " SIZE_FORMAT "M(%.0lf%%)->" SIZE_FORMAT "M(%.0lf%%), " |
575 log_info(gc, heap)("Page Cache: " SIZE_FORMAT "M(%.0f%%)->" SIZE_FORMAT "M(%.0f%%), " |
576 "Flushed: " SIZE_FORMAT "M", |
576 "Flushed: " SIZE_FORMAT "M", |
577 cached_before / M, percent_of(cached_before, max_capacity()), |
577 cached_before / M, percent_of(cached_before, max_capacity()), |
578 cached_after / M, percent_of(cached_after, max_capacity()), |
578 cached_after / M, percent_of(cached_after, max_capacity()), |
579 flushed / M); |
579 flushed / M); |
580 |
580 |
658 capacity_after = _capacity; |
658 capacity_after = _capacity; |
659 capacity_before = capacity_after + uncommitted; |
659 capacity_before = capacity_after + uncommitted; |
660 } |
660 } |
661 |
661 |
662 if (uncommitted > 0) { |
662 if (uncommitted > 0) { |
663 log_info(gc, heap)("Capacity: " SIZE_FORMAT "M(%.0lf%%)->" SIZE_FORMAT "M(%.0lf%%), " |
663 log_info(gc, heap)("Capacity: " SIZE_FORMAT "M(%.0f%%)->" SIZE_FORMAT "M(%.0f%%), " |
664 "Uncommitted: " SIZE_FORMAT "M", |
664 "Uncommitted: " SIZE_FORMAT "M", |
665 capacity_before / M, percent_of(capacity_before, max_capacity()), |
665 capacity_before / M, percent_of(capacity_before, max_capacity()), |
666 capacity_after / M, percent_of(capacity_after, max_capacity()), |
666 capacity_after / M, percent_of(capacity_after, max_capacity()), |
667 uncommitted / M); |
667 uncommitted / M); |
668 |
668 |