Re[2]: [xep-support] XEP Genarating pdfs take long time with .Net interface.

From: Alexander Peshkov (peshkov@renderx.com)
Date: Mon May 24 2004 - 01:34:29 PDT

  • Next message: Douglas_Morrison@contractor.amat.com: "[xep-support] Using xep with xsl exported from Arbortext Styler"

    Hello Nav,

    I'm not an expert in ASP, but I knew that some of our clients
    successfully use COM wrapper in their ASP projects for a long time.
    Your problem still looks like a memory leak for me. Could it be that
    your function SaveBinaryDataTextStream do not free some resources? Are
    you using ASP.NET and latest version of XEP COM wrapper (1.5)?
    Could you post complete code of your example?

    Best regards,
    Alexander Peshkov mailto:peshkov@renderx.com
    RenderX

    KN> Hi Alexander,

    KN> Thanks for your reply. I suspected that this could be a problem with .Net.

    KN> So creted a simple asp page which creates pdf from xml and xsl.

    KN> When i tried to run it with WAS to load test it fails after few minutes. Initially it creates pdf for every three scond after 3 minutes it takes 15-20 secs and after a minute it throws the error.

    KN> I have the code and the error message too. Any help will be appreciated.

    KN> CODE : I did not include the code for function SaveBinaryDataTextStream

    KN> Dim XEP
    KN> Set xep = CreateObject("XEP.XEPFormatter")
    KN> xep.setOutputFormat ("PDF")
    KN> XEP.SetStyleSheetFile Server.MapPath("AssetReport.xsl")

    KN> dt = now()
    KN> objRet = XEP.TransformFile(Server.MapPath("AYA_input.xml"))
    KN> strFileName = Server.MapPath(".") & "\MLReport-" & formatdatetime(dt,1) & "-" & Replace(formatdatetime(dt,3), ":", "-") & ".pdf"

    KN> SaveBinaryDataTextStream strFileName,objRet

    KN> Response.write "Created PDF File : " & strFileName
    KN> set xep = nothing

    KN> ERROR:
    KN> Error Type:
    KN> method setStylesheetFile() in XEP.IXEPFormatter (0x80004005)
    KN> Can't set stylesheet
    KN> /xslfopetest/createXEPpdf.asp, line 5

    KN> Thanks

    KN> Nav

    KN> -----Original Message-----
    KN> From: Alexander Peshkov [mailto:peshkov@renderx.com]
    KN> Sent: Friday, May 21, 2004 4:33 AM
    KN> To: Krishnan, Navaneetha
    KN> Subject: Re: [xep-support] XEP Genarating pdfs take long time with .Net
    KN> interface.

    KN> Hello Nav,

    KN> As Nikolai has admitted in his recent post: http://xep.xattic.com/lists/xep-support/2045.html
    KN> performance of XEP.Net is lower than of its Java counterpart, because
    KN> of .Net version is a port of Java one it's efficiency is lower.
    KN> As for the problems with COM wrapper - judging on the symptoms you
    KN> describe it's a typical memory leak. We believe that our COM
    KN> wrapper does not have such leaks itself (it was thoroughly tested in
    KN> this respect) thus I suppose that the source of the problem may be in
    KN> your code or it maybe a case of .Net-COM inter-operability issue. It
    KN> definitely looks like XEP COM wrapper instances are not released by .Net.

    KN> Best regards,
    KN> Alexander Peshkov mailto:peshkov@renderx.com
    KN> RenderX

    KN>> Hi ,

    KN>> Generating PDF with the .Net library takes a long time compared to the Java version.

    KN>> If we use the COM library provided by XEP it is faster than the .Net version. But on a server it gets slower and slower and fails after a while saying cannot set stylesheet.

    KN>> Any alternate or workaround to this problem.

    KN>> Thanks in advance

    KN>> -Nav

    KN>> -------------------
    KN>> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    KN>> in the body of the message to majordomo@renderx.com from the address
    KN>> you are subscribed from.
    KN>> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html

    KN> -------------------
    KN> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    KN> in the body of the message to majordomo@renderx.com from the address
    KN> you are subscribed from.
    KN> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html

    KN> -------------------
    KN> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    KN> in the body of the message to majordomo@renderx.com from the address
    KN> you are subscribed from.
    KN> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Mon May 24 2004 - 01:46:25 PDT