[
https://issues.jboss.org/browse/TEIID-2404?page=com.atlassian.jira.plugin...
]
Ramesh Reddy commented on TEIID-2404:
-------------------------------------
Changed to below, but does not look like runtime.totalMemory is reliable.
{code:java}
private long calculateMaxReserveKB() {
if (getMaxReservedKb() < 0) {
long memoryInGB = Runtime.getRuntime().totalMemory()/(1024*1024);
return new Double(((1024-300) * 0.5) + ((memoryInGB-1) * 1024 *
0.75)).longValue();
}
return getMaxReservedKb();
}
public long getTotalMemoryInUseKB() {
return bufferMgr.getActiveBatchBytes()/1024 + calculateMaxReserveKB() -
bufferMgr.getMaxReserveKB();
}
public long getMemoryInUseByActivePlansKB() {
return ((calculateMaxReserveKB()*1024) - bufferMgr.getReserveBatchBytes())/1024;
}
{code}
Expose buffermanager monitoring properties
------------------------------------------
Key: TEIID-2404
URL:
https://issues.jboss.org/browse/TEIID-2404
Project: Teiid
Issue Type: Feature Request
Components: Server
Affects Versions: 8.3
Reporter: Steven Hawkins
Assignee: Ramesh Reddy
Fix For: 8.3
We should expose:
BufferServiceImpl.getUserBufferSpace - the number of megs currently used by the
buffermanager disk storage.
A rough total of the memory buffer space used can be added, which would be from the
BufferFrontedCacheStore concurrent bits set X block size.
Also the BufferManagerImpl could report the total estimate of objects held in memory.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira