GithubHelp home page GithubHelp logo

Comments (24)

0r0misElda avatar 0r0misElda commented on June 27, 2024 1

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.

ryansch avatar ryansch commented on June 27, 2024

Agreed. I'll give this a whirl.

from docker-unifi-rpi.

0r0misElda avatar 0r0misElda commented on June 27, 2024

Does the Garbage Collection for UniFi work sufficiently well enough to handle the 500M of Memory?

from docker-unifi-rpi.

ryansch avatar ryansch commented on June 27, 2024

That's exactly what I was wondering. I'm not sure if we've been hitting swap or not.

from docker-unifi-rpi.

0r0misElda avatar 0r0misElda commented on June 27, 2024

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.

halindrome avatar halindrome commented on June 27, 2024

FWIW having the high heap limit doesn't seem to cause a problem on my various RPi.

from docker-unifi-rpi.

0r0misElda avatar 0r0misElda commented on June 27, 2024

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.

ryansch avatar ryansch commented on June 27, 2024

I also haven't had a problem which is the biggest reason I've never made this change.

from docker-unifi-rpi.

0r0misElda avatar 0r0misElda commented on June 27, 2024

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.

halindrome avatar halindrome commented on June 27, 2024

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.

ryansch avatar ryansch commented on June 27, 2024

Ok I'll take a crack at this.

from docker-unifi-rpi.

ryansch avatar ryansch commented on June 27, 2024

@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.

ryansch avatar ryansch commented on June 27, 2024

I'm finding that I can't start the container with only 512M of heap space for the JVM.

from docker-unifi-rpi.

ryansch avatar ryansch commented on June 27, 2024

Oops: I built tini for amd64 for all platforms.

from docker-unifi-rpi.

ryansch avatar ryansch commented on June 27, 2024

Fixed.

from docker-unifi-rpi.

ryansch avatar ryansch commented on June 27, 2024

I think it's working with 512MB heap space. Please test and report back.

from docker-unifi-rpi.

0r0misElda avatar 0r0misElda commented on June 27, 2024

2019-06-24_12-48-29
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.

ryansch avatar ryansch commented on June 27, 2024

@0r0misElda That's excellent! Did you set JAVA_OPTS or did you leave it at the default?

from docker-unifi-rpi.

0r0misElda avatar 0r0misElda commented on June 27, 2024

@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.

ryansch avatar ryansch commented on June 27, 2024

I've merged #43 to make it easier to find good values for Xmx.

from docker-unifi-rpi.

ryansch avatar ryansch commented on June 27, 2024

@0r0misElda Do you have anything else running on that box?

from docker-unifi-rpi.

0r0misElda avatar 0r0misElda commented on June 27, 2024

@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.

ryansch avatar ryansch commented on June 27, 2024

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.

halindrome avatar halindrome commented on June 27, 2024

from docker-unifi-rpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.