Skip to content

🐛 Bug Report: Appwrite freezes randomly on function execution #4626

@netapy

Description

@netapy

👟 Reproduction steps

I have an Appwrite server on decent hardware (2 core CPU and 4 gigs of RAM).
There are many collections in my database and I use functions to retrieve and edit data before sending it to the client — functions are called very often.

I still haven’t figured out why/when exactly but at some point the server doesn’t serve functions, I can requests accumulating on the functions logs :
(this get_feed function only queries data, compacts it and send it back to the client)
IMG_0416

At first the backend interface is still responsive but at some point other functions freeze and i’m unable to load pages or query anything.

The appwrite doctor doesn’t show any issues :
IMG_0417

Thanks

👍 Expected behavior

It should not crash as the functions don’t require a lot of memory, and runs without any issues during my stress tests.

👎 Actual Behavior

Appwrite freezes for a while and then comes back after 15-20 minutes.

🎲 Appwrite version

Version 1.0.x

💻 Operating system

Linux

🧱 Your Environment

Only pure Appwrite is running on the server.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingproduct / functionsFixes and upgrades for the Appwrite Functions.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions