botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
71 stars 83 forks source link

Increasing resources usage over time (cpu,memory,network) #1650

Open fungiboletus opened 2 years ago

fungiboletus commented 2 years ago

Describe the bug It looks like the botpress server uses more and more resources over time. At first it looks like a memory leak but CPU usage, Memory usage, and network communications between the botpress server and the postgresql database usage look correlated. However, it doesn't seem to be correlated to user activity.

To Reproduce

Use the botpress admin UI for a few days and monitor the resource consumption.

Expected behaviour Stable CPU, memory, and network usage.

Screenshots

The drops are when the server is restarted (automatically by kubernetes).

image image

A few months later:

botpress-cpuleak

Environment (please complete the following information):

Additional context

It may be related to botpress/v12#745