<?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 Re: Transform service - unlimited database connections in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/transform-service-unlimited-database-connections/m-p/124444#M34008</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I'm using this configuration to limit the number of threads in Transform Service:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/templates/7.3/docker-compose.yml#L126" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/templates/7.3/docker-compose.yml#L126&lt;/A&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you starting up each component on seperate host? If any of the applications using "&lt;SPAN&gt;-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80" are on same host then we will need to reduce the numbers Otherwise heapsizes will become more than the actual memory on the host. Does adding a mem_limit takes care of this issue and caps the memory limit for each application?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 22:58:44 GMT</pubDate>
    <dc:creator>VS</dc:creator>
    <dc:date>2023-01-12T22:58:44Z</dc:date>
    <item>
      <title>Transform service - unlimited database connections</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/transform-service-unlimited-database-connections/m-p/124441#M34005</link>
      <description>&lt;P&gt;Recently Alfresco Transofrm Service run out of memory (&lt;STRONG&gt;OutOfMemoryError&lt;/STRONG&gt;, mXm parameter was too small) but it initiated &lt;STRONG&gt;lots&lt;/STRONG&gt; (casually there are ~40connections, here it jumped in minutes to &amp;gt;200) &lt;STRONG&gt;of database connections&lt;/STRONG&gt; (with "idle-transaction" state) which after a while resulted in not working database which resuled in not working Alfresco Repository and Share.&lt;/P&gt;&lt;P&gt;Is it a bug? What can i do to limit database connections? In the the Alfresco repository there is a &lt;EM&gt;db.pool.max&lt;/EM&gt; parameter, is there something similar in ats?&lt;/P&gt;&lt;P&gt;In the logs I noticed something about "unlimited reties".&lt;/P&gt;&lt;P&gt;I'm running Alfresco Community Edition 7.2 with&amp;nbsp;&lt;STRONG&gt;alfresco-transform-core-aio-boot-2.5.7.jar&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 15:10:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/transform-service-unlimited-database-connections/m-p/124441#M34005</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2022-11-28T15:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Transform service - unlimited database connections</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/transform-service-unlimited-database-connections/m-p/124442#M34006</link>
      <description>&lt;P&gt;I'm using this configuration to limit the number of threads in Transform Service:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/templates/7.3/docker-compose.yml#L126" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/templates/7.3/docker-compose.yml#L126&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 15:20:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/transform-service-unlimited-database-connections/m-p/124442#M34006</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2022-11-28T15:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Transform service - unlimited database connections</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/transform-service-unlimited-database-connections/m-p/124443#M34007</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp; Thank you, I added "-Dserver.tomcat.threads.max=12 -Dserver.tomcat.threads.min=4" to&amp;nbsp;JAVA_OPTS, the time will tell if it helped.&lt;/P&gt;&lt;P&gt;To set up ATS I relied on &lt;A href="https://github.com/Alfresco/alfresco-ansible-deployment/blob/master/roles/transformers/templates/ats-ate-aio.sh.j2" target="_self" rel="nofollow noopener noreferrer"&gt;alfresco-ansible-deployment&lt;/A&gt;, It might be wise to update that config too.&lt;/P&gt;&lt;P&gt;I faced this issue 3 times (even after allocating over 3GB RAM to ats), each time the last processed file was &lt;STRONG&gt;xlsx&lt;/STRONG&gt;, and ats run out of memory on the "Scheduled task". Maybe there is a bug somewhere?&lt;/P&gt;&lt;P&gt;ats log file:&lt;/P&gt;&lt;PRE&gt;2022-11-27 10:30:04.018  INFO 1234 --- [nio-8090-exec-6] org.alfresco.transformer.AIOController   : GET Transform Config version: 2
2022-11-27 10:30:04.018  INFO 1234 --- [nio-8090-exec-4] org.alfresco.transformer.AIOController   : GET Transform Config version: 2
2022-11-27 10:32:26.962 DEBUG 1234 --- [nio-8090-exec-2] o.a.transform.router.TransformerDebug    : e180              xlsx txt   42.4 MB TikaAuto
2022-11-27 10:32:26.962 DEBUG 1234 --- [nio-8090-exec-2] o.a.transform.router.TransformerDebug    : e180                targetExtension="txt"
2022-11-27 10:32:26.962 DEBUG 1234 --- [nio-8090-exec-2] o.a.transform.router.TransformerDebug    : e180                sourceEncoding="UTF-8"
2022-11-27 10:32:26.962 DEBUG 1234 --- [nio-8090-exec-2] o.a.transform.router.TransformerDebug    : e180                sourceMimetype="application/vnd.openxmlformats-officedocument.spread...sheet"
2022-11-27 10:32:26.962 DEBUG 1234 --- [nio-8090-exec-2] o.a.transform.router.TransformerDebug    : e180                sourceExtension="xlsx"
2022-11-27 10:32:26.962 DEBUG 1234 --- [nio-8090-exec-2] o.a.transform.router.TransformerDebug    : e180                targetMimetype="text/plain"
2022-11-27 10:34:38.378  INFO 1234 --- [ntContainer#0-1] o.apache.activemq.util.ThreadPoolUtils   : Waited 2.353 seconds for ExecutorService: java.util.concurrent.ThreadPoolExecutor@7a61b8a9[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 57247] to terminate...
2022-11-27 10:35:45.677  INFO 1234 --- [ActiveMQ Task-1] o.a.a.t.failover.FailoverTransport       : Successfully connected to tcp://127.0.0.1:61616
2022-11-27 10:37:09.579  INFO 1234 --- [ActiveMQ Task-1] o.a.a.t.failover.FailoverTransport       : Successfully connected to tcp://127.0.0.1:61616
2022-11-27 10:39:22.679 ERROR 1234 --- [ ReadCheckTimer] o.a.activemq.thread.SchedulerTimerTask   : Scheduled task error

java.lang.OutOfMemoryError: Java heap space

2022-11-27 10:42:05.107  WARN 1234 --- [ntContainer#0-1] o.s.j.l.DefaultMessageListenerContainer  : Setup of JMS message listener invoker failed for destination 'org.alfresco.transform.engine.aio.acs' - trying to recover. Cause: Could not create JMS transaction; nested exception is java.lang.OutOfMemoryError: Java heap space
2022-11-27 10:42:05.109 DEBUG 1234 --- [nio-8090-exec-2] o.a.transform.router.TransformerDebug    : e180              Java heap space
2022-11-27 10:42:05.117  INFO 1234 --- [ActiveMQ Task-1] o.a.a.t.failover.FailoverTransport       : Successfully connected to tcp://127.0.0.1:61616
2022-11-27 10:42:05.120  INFO 1234 --- [ActiveMQ Task-1] o.a.a.t.failover.FailoverTransport       : Successfully connected to tcp://127.0.0.1:61616
2022-11-27 10:42:05.161 ERROR 1234 --- [nio-8090-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.OutOfMemoryError: Java heap space] with root cause

java.lang.OutOfMemoryError: Java heap space

2022-11-27 10:42:06.149  INFO 1234 --- [ActiveMQ Task-1] o.a.a.t.failover.FailoverTransport       : Successfully connected to tcp://127.0.0.1:61616
2022-11-27 10:42:07.163  INFO 1234 --- [ActiveMQ Task-1] o.a.a.t.failover.FailoverTransport       : Successfully connected to tcp://127.0.0.1:61616&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:46:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/transform-service-unlimited-database-connections/m-p/124443#M34007</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2022-11-29T10:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transform service - unlimited database connections</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/transform-service-unlimited-database-connections/m-p/124444#M34008</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I'm using this configuration to limit the number of threads in Transform Service:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/templates/7.3/docker-compose.yml#L126" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/templates/7.3/docker-compose.yml#L126&lt;/A&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you starting up each component on seperate host? If any of the applications using "&lt;SPAN&gt;-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80" are on same host then we will need to reduce the numbers Otherwise heapsizes will become more than the actual memory on the host. Does adding a mem_limit takes care of this issue and caps the memory limit for each application?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 22:58:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/transform-service-unlimited-database-connections/m-p/124444#M34008</guid>
      <dc:creator>VS</dc:creator>
      <dc:date>2023-01-12T22:58:44Z</dc:date>
    </item>
  </channel>
</rss>

