我正在尝试在 Google Cloud Run 上运行 Apache Tika 服务器。这些是遵循的步骤:
我使用命令 gcrane cp apache/tika:1.24.1-full us-east1-docker.pkg.dev/resume-ai-frontend/tikaserverrepo/tikaserver 将 Apache Tika 的 Docker 映像从 DockerHub 复制到 GCP Artifactory
我也能够将 Tika 的 docker 映像部署到 Cloudrun 上。
但是,当我尝试运行一些 Curl 命令时,我看到我遇到了 Heap Size 错误,如下所示。
> Default
2021-03-21T02:54:22.238029Z at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
Default
2021-03-21T02:54:22.238034Z at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
Default
2021-03-21T02:54:22.238040Z at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
Default
2021-03-21T02:54:22.238044Z at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
Default
2021-03-21T02:54:22.238049Z at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
Default
2021-03-21T02:54:22.238055Z at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
Default
2021-03-21T02:54:22.238059Z at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
Default
2021-03-21T02:54:22.238064Z at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
Default
2021-03-21T02:54:22.238069Z at java.base/java.lang.Thread.run(Thread.java:834)
Default
2021-03-21T02:54:22.238074ZCaused by: java.lang.OutOfMemoryError: Java heap space
Error
2021-03-21T02:54:22.239728ZPUT500359 B631 mscurl/7.64.0 https://apachetikaserver1241-h6hycic72q-ue.a.run.app/meta/content-type
GCP中报告的错误消息的详细信息如下:
google cloud shell 上的 curl 命令包括:
curl -T 'Aaddhar Paul.docx' https://apachetikaserver1241-h6hycic72q-ue.a.run.app/meta/content-type
我相信分配的容量也足够了
请告诉我如何改善 Tika 的堆大小?