Hi @Abdulsamet_Ileri this is because each connection we create allocates a 20MB buffer (same size buffer as used by KV engine). This was done to reduce CPU usage. If you have a really large number of connections or a low memory environment then this can be an issue.
Note that I’m unsure if this is strictly supported but you can alter this buffer size by using the connection string query string parameter of “kv_buffer_size”, the unit is bytes. e.g. couchbases://myaddress?kv_buffer_size=<somesizeofbytes>. Unfortunately I can’t really offer advice on what to set that value to (but it can’t be 0, 0 will just set it to the default value) so you may have to do some testing there.
I would also advise against running gocb with a version of gocbcore other than it specifies itself. Each release of gocb is only tested (and supported) against the specific version of gocbcore specified in the gocb go.mod file.