Java using much more memory than heap size (or size correctly Docker memory limit)

前端 未结 5 1028
刺人心
刺人心 2020-11-22 00:52

For my application, the memory used by the Java process is much more than the heap size.

The system where the containers are running starts to have memory problem be

5条回答
  •  星月不相逢
    2020-11-22 01:27

    How to size correctly the Docker memory limit? Check the application by monitoring it for some-time. To restrict container's memory try using -m, --memory bytes option for docker run command - or something equivalant if you are running it otherwise like

    docker run -d --name my-container --memory 500m 
    

    can't answer other questions.

提交回复
热议问题