whatever4711 / picapport

Your free photo server
GNU General Public License v3.0
17 stars 7 forks source link

object heap space error #7

Closed YasserAntonio closed 3 years ago

YasserAntonio commented 4 years ago

Hello

I'm trying to run on my raspberry 3 ( I tried with my 4 too) this image whatever4711/picapport:linux-arm32v6-8.3.00 but I keep having this error:

logs :

Starting picapport_image_center_1 ... done
Attaching to picapport_image_center_1
image_center_1  | Error occurred during initialization of VM
image_center_1  | Could not reserve enough space for 2097152KB object heap

here is my docker-compose file :

version: '3'

services:
  image_center:
    image: whatever4711/picapport:linux-arm32v6-8.3.00
    environment:
      - Xms=512m
      - Xmx=1g
      - PICAPPORT_LANG=fr
    volumes:
      - /home/pi/picapport/config:/opt/picapport/.picapport
      - /home/pi/photos:/srv/photos
    ports:
      - 8082:80

I tried different variation of the Xms and Xmx variables but I keep having the same issue.

Any idea on how to solve this ?

oldspace commented 3 years ago

I have the exact same issue on my RPi4 with 8GB of RAM. I have raised Xms and Xms up to 2049M but no change.

ghost commented 3 years ago

The env variables in the compose file need to be uppercase, XMX and XMS, see the Dockerfile.

With the lowercase spelling in the example compose file the container always uses the default values of 256m/2048m.

whatever4711 commented 3 years ago

I updated the Readme on the docker-compose file. It should be working now and I consider the issue closed.