<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Set JVM for alfresco_acs  in the docker-compose.yml in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/set-jvm-for-alfresco-acs-in-the-docker-compose-yml/m-p/138119#M37038</link>
    <description>&lt;P&gt;I am trying to up the memory usage for my alfesco_acs.&amp;nbsp; &amp;nbsp;I started with the standard SDK install and have been adding my own stuff.&amp;nbsp; I have researched docker_compose and seen may ways to set the JDK memory but none seem to work on my alfresco setup.&amp;nbsp; I have a 32G Ubuntu, and I want to give the bulk of that to alfresco when it's running.&amp;nbsp; I adjusted the docker container like this:&lt;/P&gt;&lt;PRE&gt;  alfresco-acs:
    image: alfresco-content-services-alfresco:development
    deploy:
      resources:
        limits:
          memory: 28000M
        reservations:
          memory: 12000M&lt;/PRE&gt;&lt;P&gt;and I am trying to set the JAVA_OPTS lie this:&lt;/P&gt;&lt;PRE&gt;    environment:
      JVM_OPTS: "%JAVA_OPTS% -Xmx25g -Xms12g -XX:MaxPermSize=1024m"
      JAVA_TOOL_OPTIONS: "${keystore.settings}"
      CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8888;"
 &lt;/PRE&gt;&lt;P&gt;but to no avail.&amp;nbsp; I keep getting this when I do the ./run.sh build_start&lt;/P&gt;&lt;PRE&gt;alfresco-acs_1    | Usage: java [options] &amp;lt;mainclass&amp;gt; [args...]
alfresco-acs_1    |            (to execute a class)
alfresco-acs_1    |    or  java [options] -jar &amp;lt;jarfile&amp;gt; [args...]
alfresco-acs_1    |            (to execute a jar file)
alfre_OPTSsco-acs_1    |    or  java [options] -m &amp;lt;module&amp;gt;[/&amp;lt;mainclass&amp;gt;] [args...]
alfresco-acs_1    |        java [options] --module &amp;lt;module&amp;gt;[/&amp;lt;mainclass&amp;gt;] [args...]
alfresco-acs_1    |            (to execute the main class in a module)
alfresco-acs_1    |    or  java [options] &amp;lt;sourcefile&amp;gt; [args]
alfresco-acs_1    |            (to execute a single source-file program)&lt;/PRE&gt;&lt;P&gt;And of course it fails to come up.&amp;nbsp; I have tried setting options in the CATALINA_OPTS&amp;nbsp; but all my attempts fail.&lt;/P&gt;&lt;P&gt;How do I do this?&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 19:57:32 GMT</pubDate>
    <dc:creator>mangar</dc:creator>
    <dc:date>2021-06-18T19:57:32Z</dc:date>
    <item>
      <title>Set JVM for alfresco_acs  in the docker-compose.yml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-jvm-for-alfresco-acs-in-the-docker-compose-yml/m-p/138119#M37038</link>
      <description>&lt;P&gt;I am trying to up the memory usage for my alfesco_acs.&amp;nbsp; &amp;nbsp;I started with the standard SDK install and have been adding my own stuff.&amp;nbsp; I have researched docker_compose and seen may ways to set the JDK memory but none seem to work on my alfresco setup.&amp;nbsp; I have a 32G Ubuntu, and I want to give the bulk of that to alfresco when it's running.&amp;nbsp; I adjusted the docker container like this:&lt;/P&gt;&lt;PRE&gt;  alfresco-acs:
    image: alfresco-content-services-alfresco:development
    deploy:
      resources:
        limits:
          memory: 28000M
        reservations:
          memory: 12000M&lt;/PRE&gt;&lt;P&gt;and I am trying to set the JAVA_OPTS lie this:&lt;/P&gt;&lt;PRE&gt;    environment:
      JVM_OPTS: "%JAVA_OPTS% -Xmx25g -Xms12g -XX:MaxPermSize=1024m"
      JAVA_TOOL_OPTIONS: "${keystore.settings}"
      CATALINA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8888;"
 &lt;/PRE&gt;&lt;P&gt;but to no avail.&amp;nbsp; I keep getting this when I do the ./run.sh build_start&lt;/P&gt;&lt;PRE&gt;alfresco-acs_1    | Usage: java [options] &amp;lt;mainclass&amp;gt; [args...]
alfresco-acs_1    |            (to execute a class)
alfresco-acs_1    |    or  java [options] -jar &amp;lt;jarfile&amp;gt; [args...]
alfresco-acs_1    |            (to execute a jar file)
alfre_OPTSsco-acs_1    |    or  java [options] -m &amp;lt;module&amp;gt;[/&amp;lt;mainclass&amp;gt;] [args...]
alfresco-acs_1    |        java [options] --module &amp;lt;module&amp;gt;[/&amp;lt;mainclass&amp;gt;] [args...]
alfresco-acs_1    |            (to execute the main class in a module)
alfresco-acs_1    |    or  java [options] &amp;lt;sourcefile&amp;gt; [args]
alfresco-acs_1    |            (to execute a single source-file program)&lt;/PRE&gt;&lt;P&gt;And of course it fails to come up.&amp;nbsp; I have tried setting options in the CATALINA_OPTS&amp;nbsp; but all my attempts fail.&lt;/P&gt;&lt;P&gt;How do I do this?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 19:57:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-jvm-for-alfresco-acs-in-the-docker-compose-yml/m-p/138119#M37038</guid>
      <dc:creator>mangar</dc:creator>
      <dc:date>2021-06-18T19:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set JVM for alfresco_acs  in the docker-compose.yml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-jvm-for-alfresco-acs-in-the-docker-compose-yml/m-p/138120#M37039</link>
      <description>&lt;PRE&gt;%JAVA_OPTS%&lt;/PRE&gt;
&lt;P&gt;is a Windows style variable placeholder which does not work in Linux-based Docker images. The &lt;A href="https://github.com/Alfresco/acs-deployment/blob/master/docker-compose/docker-compose.yml#L51" target="_self" rel="nofollow noopener noreferrer"&gt;default Alfresco images also expect you to set JAVA_OPTS directly&lt;/A&gt; instead of via the JVM_OPTS, without including any placeholder.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 09:16:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-jvm-for-alfresco-acs-in-the-docker-compose-yml/m-p/138120#M37039</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-06-21T09:16:20Z</dc:date>
    </item>
  </channel>
</rss>

