Hi @vuquochuy ,
A memory issue could be because of a number of reasons. If an Excel file is created because of information from entities, I would assume that more entities => more data => more memory usage. A general first approach would be to check whether the code was written such that it wastes memory unnecessarily. This could be done by profiling memory, like mentioned in this post:
Every app has a set computational resources, which include disk space and memory (RAM). This is generally set to the default values provided. These can be adjusted through a request sent to us.