Version used: 20.11.0. (Due to technical issues we cannot upgrade to latest version of Aspose)
Am using 3 word documents(.doc) 25MB, 40MB and 58MB files to convert to pdf and merge to a parent PDF file. We have our service hosted in Azure app service with 8GB capacity and we are facing frequent out of memory issues. The memory capacity of the app service was increased to 14 gb/840 acu plan but still the problem persists. The plan was upgraded to use Isolated instance but we couldn’t get rid of the problem. However, the out of memory problem is not observed in VMs. Below is the analysis data. From the data it is very clear that, though app service has enough memory, aspose is throwing out of memory exception. Please help us here.
app service plan 840 acu/14gb
Parallel Requests Memory Consumption in % CPU % Result
1 12% 18 All calls Successful
2 18 25 All calls Successful
5 35 upto 93 all failed memory exception
isolated ASP 420acu/7gb
Parallel Requests Memory Consumption in % CPU % Result
1 25 27 success
2 35 95 success
5 50 98 failed out of memory
here is the exception captured.
at System.IO.MemoryStream.set_Capacity (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.IO.MemoryStream.EnsureCapacity (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at System.IO.MemoryStream.Write (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
…
…
at Aspose.Words.Document.[1] (Aspose.Words, Version=20.11.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
at Aspose.Words.Document.[1] (Aspose.Words, Version=20.11.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
at Aspose.Words.Document.Save (Aspose.Words, Version=20.11.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
at Aspose.Words.Document.Save (Aspose.Words, Version=20.11.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56)
at AsposeMemoryAnalysisWeb.WordToPdfConverter.ConvertToPdf (AsponseMemoryAnalyzeWeb, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)