Comments (24)
I'll have some time, tonight, to tinker with this again. Been away, fishing, conferences etc. I'll report back after testing it out a few days. Usually doesn't take it more than 2-3 days to go OOM, if I let it sit.
from docker-unifi-rpi.
Agreed. I'll give this a whirl.
from docker-unifi-rpi.
Does the Garbage Collection for UniFi work sufficiently well enough to handle the 500M of Memory?
from docker-unifi-rpi.
That's exactly what I was wondering. I'm not sure if we've been hitting swap or not.
from docker-unifi-rpi.
I also neglected to mention my current workaround for this issue... apologies.
Here's my docker run command:
sudo docker run -d --net='host' --restart=always -e TZ='America/Chicago' -e JAVA_OPTIONS='-Xmx500m' -v ~/unifi:/var/lib/unifi --name unifi ryansch/unifi-rpi:5.10.20-arm64v8
My current hardware, OS, and kernel config doesn't allow me to specify container memory --memory="500m"
or swap --memory-swap="2g"
in the docker run
command. So, this was the next best way to do it without a direct edit of the Dockerfile.
from docker-unifi-rpi.
FWIW having the high heap limit doesn't seem to cause a problem on my various RPi.
from docker-unifi-rpi.
FWIW having the high heap limit doesn't seem to cause a problem on my various RPi.
@halindrome, What OS and version are you running?
from docker-unifi-rpi.
I also haven't had a problem which is the biggest reason I've never made this change.
from docker-unifi-rpi.
UniFi Controller is still going OOM, even with the new settings specified. I'm having trouble understanding why others are not experiencing similar issues. So, it begs the question: What am I doing differently than everyone else not experiencing this issue? Is it OS? Must I abandon Ubuntu? Appreciate any feedback.
from docker-unifi-rpi.
I am actually hitting high memory on the stock compose configuration now (finally). So yes, this 1024 limit is a problem for me too. It just took a while for the memory utilization to get up there.
from docker-unifi-rpi.
Ok I'll take a crack at this.
from docker-unifi-rpi.
@0r0misElda @halindrome Please have a look at #43
You can pull ryansch/unifi-rpi:5.10.24.test
to test these changes.
from docker-unifi-rpi.
I'm finding that I can't start the container with only 512M of heap space for the JVM.
from docker-unifi-rpi.
Oops: I built tini for amd64 for all platforms.
from docker-unifi-rpi.
Fixed.
from docker-unifi-rpi.
I think it's working with 512MB heap space. Please test and report back.
from docker-unifi-rpi.
Been running for 70 hours now, without going OOM and crashing my Pi. I'll continue to monitor the situation and report back. I'd be curious to know if anyone else has tried this build.
EDIT: Forgot to include a screenshot for inquiring minds.
from docker-unifi-rpi.
@0r0misElda That's excellent! Did you set JAVA_OPTS or did you leave it at the default?
from docker-unifi-rpi.
@ryansch So, I spoke too soon. Sometime between my update yesterday, and just now, the Pi went OOM and I can't ssh into it, nor is it showing as available from the cloud.
I didn't make any modifications for the start of the container. So, to be clear, no -e JAVA_OPTIONS='-Xmx500m'
was used.
So, this seems to play like previous attempts. Anytime after the 48-72 hour mark, it can go OOM.
from docker-unifi-rpi.
I've merged #43 to make it easier to find good values for Xmx
.
from docker-unifi-rpi.
@0r0misElda Do you have anything else running on that box?
from docker-unifi-rpi.
@ryansch No, nothing else running on the box besides Docker and the UC container. I have the parts for my RPi 4 w/ 4GB RAM here now. I'm hoping to have it put together and in service soon. I think I'm just going to abandon the RPi3 for a UC. I appreciate the effort put forth trying to get past this issue.
from docker-unifi-rpi.
We've been running with the 512MB default for about a year. I'm going to go ahead and close this.
from docker-unifi-rpi.
from docker-unifi-rpi.
Related Issues (20)
- 64-bit versions don't work on Raspberry Pi 3B+ with 64-bit Raspbian HOT 24
- WARNING: An illegal reflective access operation has occurred HOT 17
- Unifi controller stopped working after upgrade to "bullseye" on my pi4 HOT 5
- 7.5.165 fails with a ClassNotFoundException HOT 1
- Warning of image platform and detected host platform mismatch after installing on Ubuntu Server 22.04 64 bit HOT 3
- is 8.0.7 stable ? HOT 3
- 8.0.24+ needs a new mongo HOT 10
- 8.0.7 after restart
- Port 8080 not available (RPI 4B) again!
- Managed to install docker+Unifi latest on Raspi 4B with 64bit bookworm.... some remarks on "Release file" error. HOT 1
- Remapping of port 8080 in docker setup HOT 1
- /boot
- Connection error. Please check your Network application process state. HOT 1
- Mongo 2.4.14 is suddenly crashing on arm32v7 HOT 2
- Mongo can't upgrade data files from 2.4 directly to 3.6. HOT 2
- Mongo Upgrade! HOT 7
- Unable to setup new network controller HOT 5
- High Disk IO Requests after MongoDB Upgrade HOT 9
- Failure to pull image of the stack: unify Pulling nog matching manifest for linux/arm/v7 . . HOT 11
- Clarify docker-compose setup HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-unifi-rpi.