Changed default term buffers to be even smaller

This commit is contained in:
nathan 2020-09-02 16:18:03 +02:00
parent 07b8b1002a
commit b5342cd2f8

View File

@ -268,12 +268,12 @@ internal constructor(val type: Class<*>, internal val config: Configuration) : A
if (mDrivercontext.ipcTermBufferLength() != io.aeron.driver.Configuration.ipcTermBufferLength()) {
// default 64 megs each is HUGE
mDrivercontext.ipcTermBufferLength(16 * 1024 * 1024)
mDrivercontext.ipcTermBufferLength(8 * 1024 * 1024)
}
if (mDrivercontext.publicationTermBufferLength() != io.aeron.driver.Configuration.termBufferLength()) {
// default 16 megs each is HUGE (we run out of space in production w/ lots of clients)
mDrivercontext.publicationTermBufferLength(4 * 1024 * 1024)
mDrivercontext.publicationTermBufferLength(2 * 1024 * 1024)
}
mediaDriverContext = mDrivercontext