Open alexandergunnarson opened 2 years ago
I think what's happening here is:
We've seen a similar problem in our server when we were indeed out of memory due to other things running in the background. So I think the way forward for you is to either increase the memory on that server (we use 8gb in ours, but we have more data too I think), or to check if there's something else eating up the memory in that server.
Makes total sense and lines up with what I was seeing. There’s nothing else on the server so we’ll have to bump memory. Strange though, because not only are we not running nginx, but we don’t have much data yet. I suppose 2GB each for fluree and Athens is pretty paltry for Clojure.
To be honest is really surprises me that you're running into memory problems on a small graph.
Our team graph only showed those problems after several months of use, and because we were using several gigs of memory in other background processes in that machine.
Fluree itself needs about 1gb to run (but this can be adjusted I think) and the Athens server needs about 2gb (we've spent 0 effort optimising this yet).
Also surprised! Yeah we don't have any background processes other than those required to run Linux and Docker. I wonder if it's either 1) there's native memory used in addition to heap memory, or 2) because htop
says there's 3.8 GB of total memory, not 4GB. grep MemTotal /proc/meminfo
says 3989320 kB
which seems right. Perhaps we can try giving -Xmx
a buffer value of, say, 10%.
My server happened to crash; I tried the solutions listed but fluree keeps being unhealthy, and I didn't setup the backup yet. At this point it appears the backup utility can't connect to the fluree database and can't produce the backup. Is my data lost forever?
Problem Fluree crashes with OOM on 4GB AWS instance (t1a.medium) with smallish graph, and Athens (apparently) doesn't try to reconnect.
docker-compose
apparently doesn't try to bring it back up automatically.docker-compose restart
fixes the problem.Granted, I'm using
docker-compose up -d athens
to avoid usingnginx
, so it may have something to do with it, but doubtful.Screenshots/Demo
Athens Version v2.0.0-beta.12