You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Enis Soztutar (JIRA)" <ji...@apache.org> on 2016/11/05 01:38:58 UTC
[jira] [Created] (HBASE-17033) LogRoller makes a lot of allocations
unnecessarily
Enis Soztutar created HBASE-17033:
-------------------------------------
Summary: LogRoller makes a lot of allocations unnecessarily
Key: HBASE-17033
URL: https://issues.apache.org/jira/browse/HBASE-17033
Project: HBase
Issue Type: Bug
Reporter: Enis Soztutar
Assignee: Enis Soztutar
I was looking at the other allocations for HBASE-17017. Seems that log roller thread allocates 200MB for ~7% of the TLAB space. This is a lot of allocations.
I think the reason is this:
{code}
while (true) {
if (this.safePointAttainedLatch.await(1, TimeUnit.NANOSECONDS)) {
break;
}
if (syncFuture.isThrowable()) {
throw new FailedSyncBeforeLogCloseException(syncFuture.getThrowable());
}
}
{code}
This busy wait is causing a lot allocations because the thread is added to the waiting list.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)