We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Document.save performance issue based off image sizes

I have a docx which has about 950KB image. Document.save takes lot of time to process this docx. If I have a docx which has about 10 KB or so, it takes very less time to process. On an average difference between these two processes would be 600 to 800 ms (difference itself). Can you provide a workaround for faster processing of docx s which has huge image sizes?

I see the thread in blocked state. This is very consistent. Regardless of thread in blocked state during save process, time taken is huge based off image sizes on a docx.

“http-nio-8181-exec-2@6486” daemon prio=5 tid=0x1d nid=NA waiting for monitor entry
java.lang.Thread.State: BLOCKED
waiting for http-nio-8181-exec-3@9185 to release lock on <0x19a1> (a org.apache.catalina.loader.WebappClassLoader)
at com.aspose.words.zzAK.zzQ(Unknown Source:73)
at com.aspose.words.zzAK.zzZ(Unknown Source:38)
at com.aspose.words.zzCO.zzZ(Unknown Source:136)
at com.aspose.words.zzCO.zzZ(Unknown Source:124)
at com.aspose.words.zzZP6.zzX(Unknown Source:159)
at com.aspose.words.zzZP6.zzZ(Unknown Source:67)
at com.aspose.words.zzZP6.zzY(Unknown Source:38)
at com.aspose.words.zzZ23.zzZbP(Unknown Source:87)
at com.aspose.words.zzZ22.getWidth(Unknown Source:206)
at com.aspose.words.zzZ24.zzs1(Unknown Source:56)
at com.aspose.words.zzZ2Y.getWidth(Unknown Source:123)
at com.aspose.words.zzZOH.zzZGu(Unknown Source:81)
at com.aspose.words.zzZOH.zzT(Unknown Source:42)
at com.aspose.words.zzZOO.zzW(Unknown Source:34)
at com.aspose.words.zzZON.zzU(Unknown Source:116)
at com.aspose.words.zzZON.zzX(Unknown Source:39)
at com.aspose.words.zzWG.zzZ(Unknown Source:28)
at com.aspose.words.zzZ3D.zzZed(Unknown Source:494)
at com.aspose.words.zzZ3D.zzZ(Unknown Source:62)
at com.aspose.words.zzYB.zzV(Unknown Source:46)
at com.aspose.words.zzZ90.zzJ(Unknown Source:76)
at com.aspose.words.zzWG.zzZ(Unknown Source:36)
at com.aspose.words.zzZ3D.zzZed(Unknown Source:494)
at com.aspose.words.zzZ3D.zzZ(Unknown Source:62)
at com.aspose.words.zzXI.zztu(Unknown Source:194)
at com.aspose.words.zzXI.zzX(Unknown Source:39)
at com.aspose.words.zzZCC.zzJ(Unknown Source:147)
at com.aspose.words.zzZCC.zzZrA(Unknown Source:93)
at com.aspose.words.zzZCC.zzS(Unknown Source:43)
at com.aspose.words.zzZBU.zzx(Unknown Source:31)
at com.aspose.words.zzZ1H.zzS4(Unknown Source:102)
at com.aspose.words.zz9O.zzXO(Unknown Source:319)
at com.aspose.words.zz9P.zz3z(Unknown Source:223)
at com.aspose.words.zzZPP.zzZ(Unknown Source:56)
at com.aspose.words.Document.updatePageLayout(Unknown Source:1788)
at com.aspose.words.Document.zzXQ(Unknown Source:1694)
at com.aspose.words.Document.zz4l(Unknown Source:1715)
at com.aspose.words.Document.getPageCount(Unknown Source:1747)
at com.aspose.words.zz19.zzY(Unknown Source:95)
at com.aspose.words.zz19.zzZ(Unknown Source:39)
at com.aspose.words.Document.zzZ(Unknown Source:1620)
at com.aspose.words.Document.zzZ(Unknown Source:889)
at com.aspose.words.Document.save(Unknown Source:868)

Any updates on this?

Hi Sharon,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.

  • Please attach your input Word document.
  • Please share to which file format you want to save your output document.
  • Please share your environment detail e.g Operating system, JDK version etc

As soon as you get these pieces of information to
us we’ll start our investigation into your issue.