forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com> Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
20 lines
2.0 KiB
HTML
20 lines
2.0 KiB
HTML
<a name="cce_faq_00152"></a><a name="cce_faq_00152"></a>
|
|
|
|
<h1 class="topictitle1">What Can I Do If an Error Is Reported When a Deployed Container Is Started After the JVM Startup Heap Memory Parameter Is Specified for ENTRYPOINT in Dockerfile?</h1>
|
|
<div id="body1541076961897"><div class="section" id="cce_faq_00152__section787751765414"><h4 class="sectiontitle">Symptom</h4><p id="cce_faq_00152__p4115233543">After the JVM startup heap memory parameter is specified for ENTRYPOINT in the Dockerfile, an error message "invalid initial heap size" is displayed during the deployed container's startup, as shown in the following figure:</p>
|
|
<p id="cce_faq_00152__p1850239105818"><span><img id="cce_faq_00152__image12141334192314" src="en-us_image_0000001667523484.png"></span></p>
|
|
</div>
|
|
<div class="section" id="cce_faq_00152__section1975171513580"><h4 class="sectiontitle">Answer</h4><p id="cce_faq_00152__p107301428145818">Check the ENTRYPOINT settings. The following settings are incorrect:</p>
|
|
<pre class="screen" id="cce_faq_00152__screen174661827125910">ENTRYPOINT ["java","-Xms2g -Xmx2g","-jar","xxx.jar"]</pre>
|
|
<p id="cce_faq_00152__p87057341599">You can use either of the following methods to solve the problem:</p>
|
|
<ul id="cce_faq_00152__ul095316399486"><li id="cce_faq_00152__li109531639114810"><strong id="cce_faq_00152__b84691742472">(Recommended)</strong> Write the container startup command in <strong id="cce_faq_00152__b1791948447">Workloads > Container Settings > Lifecycle > Startup Command</strong>, then the container can be started properly.</li><li id="cce_faq_00152__li9953143919486">Change the format of the <strong id="cce_faq_00152__b1946036114712">ENTRYPOINT</strong> startup command to the following:<pre class="screen" id="cce_faq_00152__screen023914171611">ENTRYPOINT exec java -Xmx2g -Xms2g -jar xxxx.jar</pre>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_faq_00095.html">Container Configuration</a></div>
|
|
</div>
|
|
</div>
|
|
|