File tree Expand file tree Collapse file tree
tika-server/docker-build/full Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Release 4.1.0 - unreleased
22
3+ * The tika-server full and tika-grpc Docker images set OMP_THREAD_LIMIT=1:
4+ the distro tesseract links OpenMP and runs up to 4 threads per OCR
5+ process, which oversubscribes the CPU under forked parse workers;
6+ single-threaded tesseract with process-level parallelism is the
7+ tesseract project's guidance for servers (TIKA-XXXX).
8+
39 * embedded-limits maxDepth counts embedding levels again instead of the
410 parsers a parse passes through; with AutoDetectParser over DefaultParser
511 every value above 1 used to stop one level early (TIKA-4857).
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ USER $UID_GID
5656
5757EXPOSE 9090
5858ENV TIKA_VERSION=$VERSION
59+ # tesseract links libgomp; one thread per OCR process - parallelism comes from the forked parse workers
60+ ENV OMP_THREAD_LIMIT=1
5961ENV TIKA_GRPC_MAX_INBOUND_MESSAGE_SIZE=$TIKA_GRPC_MAX_INBOUND_MESSAGE_SIZE
6062ENV TIKA_GRPC_MAX_OUTBOUND_MESSAGE_SIZE=$TIKA_GRPC_MAX_OUTBOUND_MESSAGE_SIZE
6163ENV TIKA_GRPC_NUM_THREADS=$TIKA_GRPC_NUM_THREADS
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ RUN set -eux \
7373 && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
7474ARG TIKA_VERSION
7575ENV TIKA_VERSION=$TIKA_VERSION
76+ # tesseract links libgomp; one thread per OCR process - parallelism comes from the forked parse workers
77+ ENV OMP_THREAD_LIMIT=1
7678
7779COPY --from=fetch_tika /opt/tika-server /opt/tika-server
7880# WORKDIR sets the CWD so tika-server's plugin-root fallback resolves
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ RUN set -eux \
4444 && apt-get clean -y \
4545 && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
4646ENV TIKA_VERSION=$TIKA_VERSION
47+ # tesseract links libgomp; one thread per OCR process - parallelism comes from the forked parse workers
48+ ENV OMP_THREAD_LIMIT=1
4749# Snapshot workflow tars the bin distribution into <context>/tika-server/, so
4850# this COPY lands the thin jar + lib/ + plugins/ at /opt/tika-server/, matching
4951# the release-variant Dockerfile.
You can’t perform that action at this time.
0 commit comments