Hello,
we've recently upgraded to latest version of
Aspose.Pdf component (10.0) to try to solve this out of memory issues when splitting PDFs into TIFFs, but
we're still seeing these issues (Since version 8). Please see the call stack below:
Our code does the following:
//License stuff omitted
Aspose.Pdf.Document f = new Aspose.Pdf.Document(pdfPath);
Resolution resolution = new Resolution(Convert.ToInt32(Business.System.ConfigurationManager.GetSystemConfig(ConfigKey.AsposeTIFFResolution).Value));
TiffSettings tiffSettings = new TiffSettings();
tiffSettings.Compression = CompressionType.None;
tiffSettings.Depth = ColorDepth.Format4bpp;
tiffSettings.SkipBlankPages = false;
TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);
if (f.Pages.Count > 0)
{
int numpages = f.Pages.Count;
for (int i = 1; i <= numpages; i++)
{
tiffDevice.Process(f, i, i, destinationFolderPath + @"\" + Path.GetFileNameWithoutExtension(pdfPath) + "_" + (i + 1) + ".tiff");
}
}
f.Dispose();
f = null;
After a day or so of running or so in high traffic environment it seems like there is a memory leak since it accumulates and eventually starts throwing out of memory errors. Cycling IIS fixes it, but it's happening on 6 of our production servers and creates outages for users and we can't be cycling IIS during business hours and we keep doing it 4-5 times a day.
Please advise as to next course of action