mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-09-18 17:56:52 +08:00
reduce buffer size
This commit is contained in:
@@ -34,7 +34,7 @@ const (
|
||||
|
||||
var (
|
||||
mqpp = NewMysqlQueryPiecePool()
|
||||
localSliceBufferPool = NewSliceBufferPool("json cache", 1*1024*1024)
|
||||
localSliceBufferPool = NewSliceBufferPool("json cache", 256*1024)
|
||||
)
|
||||
|
||||
var commonBaseQueryPiece = &BaseQueryPiece{}
|
||||
|
@@ -93,10 +93,9 @@ const (
|
||||
|
||||
|
||||
// Identifier length limitations.
|
||||
// See https://dev.mysql.com/doc/refman/5.7/en/identifiers.html
|
||||
const (
|
||||
// MaxMysqlPacketLen is the max packet payload length.
|
||||
MaxMysqlPacketLen = 512 * 1024
|
||||
MaxMysqlPacketLen = 128 * 1024
|
||||
)
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user