Keycloak在Docker中的资源使用率很高

时间:2019-04-30 07:16:16

标签: docker keycloak

在Docker中运行时,Keycloak服务器即使不执行任何操作也会使用500MB内存。在Windows 10和Linux CentOS计算机上运行的Docker上,行为相同。我正在使用此docker compose文件:

version: '3'

volumes:
  postgres_data:
      driver: local

services:
  postgres:
      image: postgres
      volumes:
        - postgres_data:/var/lib/postgresql/data
      environment:
        POSTGRES_DB: keycloak
        POSTGRES_USER: keycloak
        POSTGRES_PASSWORD: password
  keycloak:
      image: jboss/keycloak
      environment:
        DB_VENDOR: POSTGRES
        DB_ADDR: postgres
        DB_DATABASE: keycloak
        DB_USER: keycloak
        DB_SCHEMA: public
        DB_PASSWORD: password
        KEYCLOAK_USER: admin
        KEYCLOAK_PASSWORD: Pa55w0rd
        # Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
        #JDBC_PARAMS: "ssl=true"
      ports:
        - 8080:8080
      depends_on:
        - postgres

来自Keycloak示例的Dockerfile:https://github.com/jboss-dockerfiles/keycloak/blob/master/docker-compose-examples/keycloak-postgres.yml Png of docker resource usage when running this DockerCompose

正常资源使用率很高吗?这个例子有问题吗?

0 个答案:

没有答案