removes verbose memory tracking, and adds jdk to include jcmd and tools (#3861)

* removes verbose memory tracking, and adds jdk to include jcmd and tools
* revert logging to debug, can be adjusted at runtime

Signed-off-by: Justin Florentine <justin+github@florentine.us>
pull/3865/head
Justin Florentine 3 years ago committed by GitHub
parent 9609d679c7
commit 950673c798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      docker/openjdk-11-debug/Dockerfile

@ -3,7 +3,7 @@ FROM ubuntu:20.04
ARG VERSION="dev" ARG VERSION="dev"
RUN apt-get update && \ RUN apt-get update && \
apt-get install --no-install-recommends -q --assume-yes curl=7* wget=1.20* jq=1.6* net-tools=1.60* openjdk-11-jre-headless=11* && \ apt-get install --no-install-recommends -q --assume-yes curl=7* wget=1.20* jq=1.6* net-tools=1.60* openjdk-11-jdk-headless=11* && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
adduser --disabled-password --gecos "" --home /opt/besu besu && \ adduser --disabled-password --gecos "" --home /opt/besu besu && \
@ -36,11 +36,10 @@ ENV BESU_PID_PATH "/tmp/pid"
ENV BESU_HOST_ALLOWLIST "*" ENV BESU_HOST_ALLOWLIST "*"
#debug options for maximum observability #debug options for maximum observability
ENV BESU_LOGGING "DEBUG" ENV BESU_LOGGING "INFO"
ENV BESU_RPC_HTTP_API "ETH,NET,TRACE,DEBUG,ADMIN,TXPOOL" ENV BESU_RPC_HTTP_API "ETH,NET,TRACE,DEBUG,ADMIN,TXPOOL"
ENV JDWP_OPTS "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005" ENV JDWP_OPTS "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
ENV NATIVE_MEMORY_OPTS "-XX:NativeMemoryTracking=detail -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMTStatistics" ENV JAVA_OPTS "${JDWP_OPTS} "
ENV JAVA_OPTS "${JDWP_OPTS} ${NATIVE_MEMORY_OPTS} "
ENV OTEL_RESOURCE_ATTRIBUTES="service.name=besu,service.version=$VERSION" ENV OTEL_RESOURCE_ATTRIBUTES="service.name=besu,service.version=$VERSION"

Loading…
Cancel
Save