Back

Possible memory leak in Appwrite container

  • 4
  • Self Hosted
Guille
17 Oct, 2023, 14:39

Does your appwrite instance available on public? I mean, are you getting real traffic? or is just you at this moment?

Did you migrate from a previous version?

TL;DR
Possible memory leak in Appwrite container. User reports possible memory leak in the Appwrite container. They mention seeing GET requests on /view and suspect it may be a caching issue. They ask for code snippets related to getting images and mention frequent requests for both images and videos from a storage bucket. The user also mentions that their iOS client is no longer performing requests, but the Android version is still working. They provide an update that they performed a clean install on a separate server but are still experiencing the memory leak. They confirm running migration commands and state that the dashboard shows real traffic. Solution: It is suggested to check the code for any
ftp27
17 Oct, 2023, 15:38

Yes. This is a real traffic. About 15-20 requests per minute according traefik stats. Yes. I've done a few migration on it

D5
17 Oct, 2023, 16:03

And according dashboard stats?

D5
17 Oct, 2023, 16:04

Are you sure you ran migration command after the corresponding upgrades?

ftp27
17 Oct, 2023, 18:18

Neh. It shows 565k request for the past 24 hours.

ftp27
17 Oct, 2023, 18:20

I'm sure

ftp27
24 Oct, 2023, 19:48

Hello again. I performed a clean install on a separate DO Droplet yesterday and copied all the data I had from the previous server. It appears that there is still a leak.

ftp27
24 Oct, 2023, 19:49

New version is 1.4.5

D5
24 Oct, 2023, 19:55

Are you using realtime feature?

ftp27
24 Oct, 2023, 19:56

No as far as I know but I'll check it for sure

D5
24 Oct, 2023, 19:56

Also, the requests contains images?

ftp27
24 Oct, 2023, 19:59

Frequently. And videos as well. Request them from a storage bucket

D5
24 Oct, 2023, 19:59

That makes sense

D5
24 Oct, 2023, 19:59

How are you getting them?

D5
24 Oct, 2023, 19:59

With the preview endpoint?

ftp27
24 Oct, 2023, 20:00

Download/View requests. Mostly View

D5
24 Oct, 2023, 20:00

Could you please share a fragment of the code you're using to get the images?

D5
24 Oct, 2023, 20:01

I think this is a caching issue πŸ€”

ftp27
24 Oct, 2023, 20:02

My iOS client is not performing requests anymore, but guys who made Android version of my app is still in business. I'll be back with snippets later

ftp27
25 Oct, 2023, 10:58

It has been used for images and videos as well

ftp27
25 Oct, 2023, 11:54

I've turned on access.log from traefik and see GET requests on /view. I'll try to find out who does it

D5
25 Oct, 2023, 21:03

That should not use cache from what I understand πŸ‘€

Torsten Dittmann
25 Oct, 2023, 21:20

So this is the appwrite container itself right?

ftp27
26 Oct, 2023, 00:21

Yes

Drake
5 Dec, 2023, 17:34

Is this still happening? Do you know if it was happening before 1.4.4?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more