go-pdk icon indicating copy to clipboard operation
go-pdk copied to clipboard

Apparently the data set into shared context is not being freed

Open lays147 opened this issue 9 months ago • 2 comments

I have a plugin that sets a string to the Shared Context of Kong to be used in other plugins. We noted that the memory consumption of the container increases during the workday. Apparently, the unused data is not being freed.

Based on the docs, it says that the data only exists during the existence of the request, so in my interpretation, when the request is over, the memory used would be freed, however, this does not seem the case.

I've already disabled the plugin during one day, and the memory consumption stabilizes.

image

Any idea how to handle this issue?

lays147 avatar May 08 '24 20:05 lays147