Hello, I’m new to Frappe and I tried building a site to test things out. However, I came across a problem where the Swap usage keeps increasing, leading to slow site loading time, and eventually gateway timeouts.
I built the site using production mode, then switched to developer mode.
This is my current memory usage (output from free -m
and htop
)
The esbuild seems to take up a lot of memory and it keeps increasing over time.
The weird thing is, I had another server before with the same specs and built a site (the difference is I never turned on production mode or any settings related to it), the processes seen from htop
is very similar but I never had the high swap usage problem before.
My temporary solution right now is to restart the server and the bench every time the memory usage is getting too high to the point where it heavily slows down the site (and eventually 504 gateway timeout).
I tried to find and pinpoint the root problem/cause, but I failed to find anything so far. I’ve searched the forum and the documentation, but I also couldn’t find anything that solves my problem.
I would really appreciate any help from anyone that can help me formulate ideas on how to find the problem and fix it as I’m very new to this, I’m willing to provide anything (screenshots etc.) if that helps. Thank you
I’m using Python 3.11, Debian 12, frappe 14.54.0 version-14, and erpnext 14.46.5 version-14