What are the minimum requirements to run RestComm? [closed]

◇◆丶佛笑我妖孽 提交于 2020-01-07 03:03:20

问题


I'm trying to run restcomm via docker on a core i5 @ 2.30GHz machine with 4GB RAM. OS is Ubuntu 14 server edition, so there is no overhead of GUI.

When the container is started the memory is fully utilized, the cpu load goes insane and the container doesn't respond in an orderly fashion.

I know the details I'm providing are very vague but I couldn't find what are the minimum requirements in any documentation and can't figure out why memory and cpu are overloaded.


回答1:


To add on what @atsakiridis mentioned. You can reduce the number of ports exposed so it consume less memory. Using the following command should consume less memory as we open only 50 ports for the media :

docker run  -i --name=restcomm-myInstance -v /var/log/restcomm/:/var/log/restcomm/ -e STATIC_ADDRESS="192.168.0.44" -e MEDIASERVER_LOWEST_PORT="65500" -e MEDIASERVER_HIGHEST_PORT="65535" -e ENVCONFURL="https://raw.githubusercontent.com/RestComm/Restcomm-Docker/master/scripts/restcomm_env_locally.sh" -p 80:80 -p 443:443 -p 9990:9990 -p 5060:5060 -p 5061:5061 -p 5062:5062 -p 5063:5063 -p 5060:5060/udp -p 65500-65535:65500-65535/udp restcomm/restcomm:latest



回答2:


It's been sometime since your question, but it seems the :latest docker image starts 2 java processes (as agafox pointed out in RestComm/RestComm-Docker#109 ).

One of the 2 processes uses -Xms=2048 and the other -Xms=1048 (yes, this is not a typo... at least, not my typo... :) ), meaning the container would need at least ~3GB ram to run.

Even if your system has enough memory, please ensure docker is allowed to use this memory. (My default was 2GB).



来源:https://stackoverflow.com/questions/35291519/what-are-the-minimum-requirements-to-run-restcomm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!