ACS-2640 removing yourkit profile (#2189)

This commit is contained in:
bsayan2
2025-06-26 10:50:18 +05:30
committed by GitHub
parent 306f4c972f
commit 9fd99ec0bb
2 changed files with 0 additions and 33 deletions

View File

@@ -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**

View File

@@ -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"