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.
publicstaticbool GeneratePdf(Document document, byte[] pdfTemplate)
{
try
{
//Create a FormDataIntegrationService object and set authentication values
FormDataIntegrationService formDataIntegrationClient = newFormDataIntegrationService();
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);
returntrue;
}
catch (Exception ex)
{
document.ReturnCode = "22";
document.ReturnMsg = "Exception on generating the pdf";
Utility.Log("GeneratePdf", "Exception: " + ex.Message, LogLevel.Error);
returnfalse;
}
}
Then We call the ConvertPDF function.
publicstaticbool ConvertPdf(Document document)
{
try
{
//Create a OutputServiceService object
OutputServiceService outputClient = newOutputServiceService();
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 = newRenderOptionsSpec();
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);
returntrue;
}
catch (Exception ex)
{
document.ReturnCode = "22";
document.ReturnMsg = "Exception on converting dynamic pdf to static pdf";
Utility.Log("ConvertPdf", "Exception: " + ex.Message, LogLevel.Error);
returnfalse;
}
}
Our System Configuration:
Expiry date: NeverVersion: 9.0.0.0,
GMPatch Version: SP2
Service Pack Version: unknown
ADOBE® LIVECYCLE® PDF Generator ES2 | 9.0.0.0 | SP2 |
ADOBE® LIVECYCLE® Reader Extensions ES2 | 9.0.0.0 | SP2 |
ADOBE® LIVECYCLE® Output ES2 | 9.0.0.0 | SP2 |
We changed some configuration which is suggested by Adobe. But this change does not solve our problem.
Changed Configurations via ADMINUI
Memory Leak Problem which is viewed via wily tool: