Memory leak in Aspose.Words?

We tried to test memory usage and we see that memory usage is growing up when I convert DOCX to PDF couple times.
Is this a memory leak or are we doing something wrong?

Here is how we tested:
When the file converted first time then htop show memory usage - 385MB
After couple conversion memory usage is - 420-450MB
After that the memory usage is growing up very slowly.

After 1000 conversion the htop show the memory usage - 500-508MB

We tested with this versions of aspose-words: 16.12.0, 17.5, 17.7. The result is the same for all this versions.

Here is simple script that I used for testing:

package com.sme;

import java.util.concurrent.TimeUnit;
import com.aspose.words.Document;

public class Doc2PDF
{
    public static void main(String[] args) throws Exception {
        String inputFile = "/home/user1/TestAspose/word_document.docx";
        String outputFile = "/home/user1/TestAspose/word_document.pdf";
            
        Document doc = null;
        for (int j = 0; j < 1000; j++) {
            doc = new Document(inputFile);

            // Save the document in PDF format.
            doc.save(outputFile);
            doc = null;
                
            System.gc();
                
            System.out.println("Total memory: " + Runtime.getRuntime().totalMemory());
        }

        TimeUnit.SECONDS.sleep(30);
    }
}

Here is output of this script :

Total memory: 285212672
Total memory: 301465600
Total memory: 296222720
Total memory: 293076992
Total memory: 288882688
Total memory: 286261248
Total memory: 285736960
Total memory: 283639808
Total memory: 282066944
Total memory: 230686720
Total memory: 281018368
Total memory: 231735296
Total memory: 282591232
Total memory: 232259584
Total memory: 282066944
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 283115520
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232
Total memory: 286261248
Total memory: 283115520
Total memory: 281542656
Total memory: 232259584
Total memory: 282591232

Any ideas?

@JANorman,

Thanks for your inquiry. Could you please attach your input Word document here for testing? We will investigate the issue on our side and provide you more information.

Hi @tahir.manzoor

Here is the sample word document:
https://storagemadeeasy.com/files/a72e45bb18ebfb51dace1b627869abc0.docx

@JANorman,

Thanks for sharing the document. Please note that when the document is closed, all the DOM data is purged from memory during the next garbage collector cycle. The memory may not be released until you close the application.

Setting SaveOptions.MemoryOptimization option to true can significantly decrease memory consumption while saving large documents at the cost of slower saving time.

A post was split to a new topic: Memory leakage in Aspose.Words