Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Pdf to image cpu, memory and multithreading issues

$
0
0
Hello,

We want to use Aspose.Pdf for Java for pdf to image conversion and bought a Aspose.Java Total license.
However, we now noticed with the unlocked version that one conversion of a pdf in a single threaded environment takes already up to 5 seconds and takes 50-100MB of ram memory for a pdf of about 200kb.
More importantly even, when we execute the same test with 3 threads, the output of each subsequent page takes longer and longer, which is clearly a bug.

The sample program and pdf we used(3 times the same one, but as a different file) are in the attachment. Can you at the very least please fix the multithreading issue?

Output of the sample program with 3 threads:

Rendering of page 1 took: 6271ms for JPG (100)(484MB,381MB,102MB)

Rendering of page 1 took: 6271ms for JPG (100)(483MB,381MB,102MB)

Rendering of page 1 took: 6273ms for JPG (100)(483MB,379MB,104MB)

Rendering of page 1 took: 16265ms for JPG (200)(379MB,151MB,227MB)

Rendering of page 1 took: 16284ms for JPG (200)(381MB,178MB,203MB)

Rendering of page 1 took: 16340ms for JPG (200)(381MB,147MB,233MB)

Rendering of page 1 took: 45966ms for JPG (300)(151MB,106MB,45MB)

Rendering of page 1 took: 45979ms for JPG (300)(178MB,78MB,99MB)

Rendering of page 1 took: 46018ms for JPG (300)(147MB,86MB,61MB)

Rendering of page 2 took: 76853ms for JPG (100)(106MB,33MB,72MB)

Rendering of page 2 took: 76831ms for JPG (100)(78MB,23MB,54MB)

Rendering of page 2 took: 76824ms for JPG (100)(86MB,49MB,37MB)

Rendering of page 2 took: 138829ms for JPG (200)(49MB,101MB,-52MB)

Rendering of page 2 took: 138919ms for JPG (200)(23MB,101MB,-77MB)

Rendering of page 2 took: 138986ms for JPG (200)(33MB,74MB,-40MB)

Rendering of page 2 took: 189039ms for JPG (300)(101MB,61MB,40MB)

Rendering of page 2 took: 189044ms for JPG (300)(101MB,56MB,44MB)

Rendering of page 2 took: 189089ms for JPG (300)(74MB,62MB,12MB)

Rendering of page 3 took: 687764ms for JPG (100)(61MB,226MB,-165MB)

Rendering of page 3 took: 688082ms for JPG (100)(56MB,193MB,-136MB)

Rendering of page 3 took: 687998ms for JPG (100)(62MB,175MB,-113MB)


As you can see, one page render goes from 6271ms to 687998ms.


Viewing all articles
Browse latest Browse all 3131