xtrime-ru / antizapret-vpn-docker

Docker container with antizapret-vpn for selfhosting.
MIT License
149 stars 23 forks source link

The server hangs when trying to connect #58

Closed nmisha closed 2 months ago

nmisha commented 2 months ago

When I try to connect to the server it hangs completely. Antizapret is running in a container. I tried enable DCO packages and without dco packages. No difference

nmisha commented 2 months ago

I think I found the problem. The kresd service takes away "all" the memory and loads the cpu. How much memory is needed to run the container?

nmisha commented 2 months ago

500 megabytes is not enough :(

xtrime-ru commented 2 months ago

Yes, kresd loads list of all blocked domains. It consumes around 300-400 Mb of RAM. Minimal requirements is 1Gb or RAM.

There is a new ENV variable, to skip download of lists:

 # EN: Do not update lists from the Internet
      # RU: Не обновлять списки из интернета
      - SKIP_UPDATE_FROM_ZAPRET=true

Use it and define domains manually in include.hosts.custom.txt. This will greatly reduce ram consumption