Transform core out of memory after migrating from alfresco 4.2
We are currently in the process of migrating our old 4.2.f alfresco instance to the more recent release in commutiny version.
We have been sucessful migrating to 5.2 then using this great tutorial (https://www.youtube.com/watch?v=kHwq_f9PzYU) we have been able to migrate to Alfresco 7.0 and are currently performing some tests as this version is really different from our previous one.
The problem we are encountering is that the transform-core-aio docker is always crashing with an out of memory reason (visible in /var/log/syslog) with the default configuration in less than a minute.
As our test server have 32Gb of RAM we removed the mem_limit on all dockers to see if it's a temporary issue due to the migration of a big amount of data from our previous server ( ~ 400 Gb).
The fact is that the transform docker is using several Gb, and eventually crash when it's reaching 18 GB RAM in use approximately.
Re: Transform core out of memory after migrating from alfresco 4.2
When upgrading, all the content needs to be reindexed. That means that Transform Service (transform-core-aio component in Docker) is getting many parallel requests during this process. You need to control the load of this parallelism according to your system resources.
Define the number of parallel threads by adding these environment variables to you Transform Service:
Actually we tried these parameters already and with 2048m for mem_limit the docker is crashing almost every minute. But as you said this is probably due to the data migration and reindexation. I thought this was only needed for solr.
So we inscreased the mem_limit, applied the parameters you shared along with a restart:always policy and we will let the server live for few days to see if it's stabilize at some point.