From 9fd99ec0bb64d0419350f6586f2353cfa4f144b9 Mon Sep 17 00:00:00 2001 From: bsayan2 Date: Thu, 26 Jun 2025 10:50:18 +0530 Subject: [PATCH] ACS-2640 removing yourkit profile (#2189) --- search-services/README.md | 15 --------------- .../packaging/src/docker/Dockerfile | 18 ------------------ 2 files changed, 33 deletions(-) diff --git a/search-services/README.md b/search-services/README.md index 84f3f9dfa..79dd1502c 100644 --- a/search-services/README.md +++ b/search-services/README.md @@ -361,18 +361,7 @@ SOLR Web Console will be available at: You will have to provide the `X-Alfresco-Search-Secret` header in the request, specifying as its value the same value that was used for the `-Dalfresco.secureComms.secret` property. -**Enabling YourKit Java Profiler** -This Docker Image includes [YourKit Java Profiler](https://www.yourkit.com/java/profiler/) server service. In order to enable this service, so the SOLR JVM can be inspected with the YourKit local program, additional configuration is required to set the YourKit `agentpath`. Mapping the exposed profiling port (10001 by default) is also required. - -Sample Docker command line invocation - -```bash -$ docker run -p 8983:8983 -p 10001:10001 \ --e SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive \ --e SOLR_OPTS="-agentpath:/usr/local/YourKit-JavaProfiler-2019.8/bin/linux-x86-64/libyjpagent.so=port=10001,listen=all" \ -searchservices:develop -``` Sample Docker Compose service settings @@ -392,15 +381,11 @@ solr6: #Create the default alfresco and archive cores SOLR_CREATE_ALFRESCO_DEFAULTS: "alfresco,archive" SOLR_JAVA_MEM: "-Xms2g -Xmx2g" - SOLR_OPTS: " - -agentpath:/usr/local/YourKit-JavaProfiler-2019.8/bin/linux-x86-64/libyjpagent.so=port=10001,listen=all - " JAVA_TOOL_OPTIONS: " -Dalfresco.secureComms.secret=my_super_secret_secret " ports: - 8083:8983 #Browser port - - 10001:10001 #YourKit port ``` **Public Docker repository** diff --git a/search-services/packaging/src/docker/Dockerfile b/search-services/packaging/src/docker/Dockerfile index 11bac0826..9e937481f 100644 --- a/search-services/packaging/src/docker/Dockerfile +++ b/search-services/packaging/src/docker/Dockerfile @@ -15,9 +15,6 @@ ENV SOLR_SOLR_MODEL_DIR=${SOLR_SOLR_MODEL_DIR:-$DIST_DIR/data/alfrescoModels} ARG USERNAME=solr ARG USERID=33007 -# YourKit Java Profiler -ARG JAVA_PROFILER=YourKit-JavaProfiler-2019.8-b142-docker - COPY "$SOLR_ZIP" . RUN set -x \ @@ -55,20 +52,5 @@ VOLUME $DIST_DIR/keystores # SOLR Service Port EXPOSE 8983 -# YourKit - Requires additional setting for the agent in JVM to be used -# For Docker Compose solr6 service, add the following lines: -# SOLR_OPTS: " -# -agentpath:/usr/local/YourKit-JavaProfiler-2019.8/bin/linux-x86-64/libyjpagent.so=port=10001,listen=all -# " -# ports: -# - 10001:10001 -RUN wget https://archive.yourkit.com/yjp/2019.8/${JAVA_PROFILER}.zip -P /tmp/ && \ - unzip /tmp/${JAVA_PROFILER}.zip -d /usr/local && \ - rm /tmp/${JAVA_PROFILER}.zip && \ - cp /usr/local/YourKit-JavaProfiler*/license-redist.txt /licenses/3rd-party/YourKit-license-redist.txt - -# YourKit Profiling Port -EXPOSE 10001 - USER ${USERNAME} CMD $DIST_DIR/solr/bin/search_config_setup.sh "$DIST_DIR/solr/bin/solr start -f"