Legacy Knowledge Base
Published Jun. 30, 2025

Unable to start sidecar elasticsearch after upgrading JDK 8 to JDK 11

Written By

Pooja Bhambani

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • Following error appeared in the console after upgrading JDK 8 to JDK 11:
    [Sidecar:617] Sidecar Elasticsearch process is aborted
    java.util.concurrent.ExecutionException: com.liferay.petra.process.TerminationProcessException: Subprocess terminated with exit code 1
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
    at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
    at com.liferay.portal.search.elasticsearch7.internal.sidecar.Sidecar$RestartFutureListener.complete(Sidecar.java:613) [bundleFile:?]
    at com.liferay.petra.concurrent.DefaultNoticeableFuture$OnceFutureListener.complete(DefaultNoticeableFuture.java:102) [com.liferay.petra.concurrent.jar:?]
    at com.liferay.petra.concurrent.DefaultNoticeableFuture.done(DefaultNoticeableFuture.java:76) [com.liferay.petra.concurrent.jar:?]
    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381) [?:?]
    at java.util.concurrent.FutureTask.setException(FutureTask.java:250) [?:?]
    at com.liferay.petra.concurrent.DefaultNoticeableFuture.setException(DefaultNoticeableFuture.java:70) [com.liferay.petra.concurrent.jar:?]
    at java.util.concurrent.FutureTask.run(FutureTask.java:269) [?:?]
    at java.lang.Thread.run(Thread.java:829) [?:?]
    Caused by: com.liferay.petra.process.TerminationProcessException: Subprocess terminated with exit code 1
    at com.liferay.petra.process.local.LocalProcessExecutor$SubprocessReactor.call(LocalProcessExecutor.java:300) ~[com.liferay.petra.process.jar:?]
    at com.liferay.petra.process.local.LocalProcessExecutor$SubprocessReactor.call(LocalProcessExecutor.java:152) ~[com.liferay.petra.process.jar:?]
    at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
    … 1 more

Environment

  • 2023 Q4.0

Resolution

  • In order to mitigate this issue, remove the following parameters inside sidecarJVMOptions in com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration.configfile:
    sidecarJVMOptions=[\
    "-Xloggc:/apps/jboss/logs/es-sidecar-gc.log",\
    "-XX:+PrintGCDetails",\
    "-XX:+PrintGCDateStamps",\
    "-XX:+PrintGCTimeStamps",\
    "-XX:+UseGCLogFileRotation",\
    "-XX:NumberOfGCLogFiles\=5",\
    "-XX:GCLogFileSize\=3M"\
    ]

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base