1 Reply Latest reply on May 25, 2013 10:25 PM by Singh1554

    Memory Leak Problem at Adobe LiveCycle Server 9.0

    Temur Mahir

      Hi All,

       

      We want to upgrade our system to 9.0. During the performance test we have found memory Leak problem at ALS 9.0. I explain the detailed problematic issue below. Is there any body who has any suggest?

       

       

      We have Adobe Livecycle ES2 9.0 SP2 installed on WAS 6.1. But also WAS on Windows Server 2008 R2. We call java web services from .Net Web service for generating PDFs.

       

      On Java side “com/adobe/internal/pdftoolkit/services/javascript/GibsonMemoryTracking” class is causing Memory Leak problem at server.

       

      Our .Net Codes. I copied below. First we generate PDF then we convert this pdf to static pdf.

       

      First We call the GeneratePDF function.

       

      public static bool GeneratePdf(Document document, byte[] pdfTemplate)

          {

              try

              {

                  //Create a FormDataIntegrationService object and set authentication values

                  FormDataIntegrationService formDataIntegrationClient = new FormDataIntegrationService();

                  formDataIntegrationClient.Credentials = new System.Net.NetworkCredential(Settings.ALCUserName, Settings.ALCPassword);

       

                  //Import XDP XML data into an XFA PDF document

                  ALCFormDataIntegrationService.BLOB inXMLData = new ALCFormDataIntegrationService.BLOB();

       

                  //Populate the BLOB object

                  inXMLData.binaryData = System.Text.Encoding.UTF8.GetBytes(document.XmlData);

       

                  //Create a BLOB that represents the input PDF form

                  ALCFormDataIntegrationService.BLOB inPDFForm = new ALCFormDataIntegrationService.BLOB();

       

                  inPDFForm.binaryData = pdfTemplate;

       

                  //Import data into the PDF form

                  ALCFormDataIntegrationService.BLOB results = formDataIntegrationClient.importData(inPDFForm, inXMLData);

       

                  document.PdfData = results.binaryData;

       

                  Utility.Log("GeneratePdf", "Pdf generated successfully.", LogLevel.Info);

       

                  return true;

              }

              catch (Exception ex)

              {

                  document.ReturnCode = "22";

                  document.ReturnMsg = "Exception on generating the pdf";

                  Utility.Log("GeneratePdf", "Exception: " + ex.Message, LogLevel.Error);

                  return false;

              }

          }

       

      Then We call the ConvertPDF function.

       

      public static bool ConvertPdf(Document document)

          {

              try

              {

                  //Create a OutputServiceService object

                  OutputServiceService outputClient = new OutputServiceService();

                  outputClient.Credentials = new System.Net.NetworkCredential(Settings.ALCUserName, Settings.ALCPassword);

       

                  //Create a BLOB object

                  ALCOutputService.BLOB inData = new ALCOutputService.BLOB();

       

                  //Populate the BLOB object

                  inData.binaryData = document.PdfData;

       

                  //Set rendering run-time options

                  RenderOptionsSpec renderOptions = new RenderOptionsSpec();

                  renderOptions.cacheEnabled = true;

       

                  //Create a non-interactive PDF document

                  ALCOutputService.BLOB results = outputClient.transformPDF(inData, TransformationFormat.PDF, PDFARevisionNumber.Revision_1, false, null, PDFAConformance.B, false);

       

                  document.PdfData = results.binaryData;         

       

                 

       

                  Utility.Log("ConvertPdf", "Pdf converted successfully.", LogLevel.Info);

                 

                  return true;

              }

              catch (Exception ex)

              {

                  document.ReturnCode = "22";

                  document.ReturnMsg = "Exception on converting dynamic pdf to static pdf";

                  Utility.Log("ConvertPdf", "Exception: " + ex.Message, LogLevel.Error);

                  return false;

              }

          }

       

       

      Our System Configuration:

      Expiry date: Never Version: 9.0.0.0,

      GM Patch Version: SP2

      Service Pack Version: unknown

       

      ADOBE® LIVECYCLE® PDF Generator ES29.0.0.0SP2
      ADOBE® LIVECYCLE® Reader Extensions ES29.0.0.0SP2
      ADOBE® LIVECYCLE® Output ES29.0.0.0SP2

       

      We changed some configuration which is suggested by Adobe. But this change does not solve our problem.

       

      Changed Configurations via ADMINUI

      ScreenHunter_76 May. 20 15.47.gif

       

      Memory Leak Problem which is viewed via wily tool:

      ScreenHunter_77 May. 20 15.49.gif