000034923 - Exporting RSA Archer Reports fails because an Exception of type 'System.OutOfMemoryException' was thrown

Document created by RSA Customer Support Employee on Mar 10, 2017Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000034923
Applies ToRSA Product Set: Archer
RSA Version/Condition: 5.5.3.4
IssueWhile attempting to export reports, the export fails with the following error logged into the w3wp log file:

<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
  <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    <Source Name="Archer.NET" />
    <Execution ProcessName="w3wp" ProcessID="12364" ThreadID="72" />
    <AssemblyVersion>5.5.30400.1008</AssemblyVersion>
  </System>
  <ApplicationData>
    <TraceData>
      <DataItem>
        <TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord">
          <TraceIdentifier>Archer.NET</TraceIdentifier>
          <Description>Exception of type 'System.OutOfMemoryException' was thrown.</Description>
          <AppDomain>
          </AppDomain>
          <Exception>
            <ExceptionType>System.OutOfMemoryException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=(removed)</ExceptionType>
            <Message>Exception of type 'System.OutOfMemoryException' was thrown.</Message>
            <Source>mscorlib</Source>
            <StackTrace>
   at System.Collections.Generic.Dictionary`2.Resize(Int32 newSize, Boolean forceNewHashCodes)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at DevExpress.XtraPrinting.Export.Pdf.PdfHashtable.GetRectangle(Single x, Single y, Single width, Single height)
   at DevExpress.XtraPrinting.Export.Pdf.PdfContents.Rectangle(Single x, Single y, Single width, Single height)
   at DevExpress.XtraPrinting.Export.Pdf.PdfGraphics.FillRectangle(Brush brush, RectangleF bounds)
   at DevExpress.XtraPrinting.Native.PSBrickPaint.DrawWarningRect(IGraphics gr, RectangleF r)
   at DevExpress.XtraPrinting.BrickExporters.BrickBaseExporter.DrawWarningRect(IGraphics gr, RectangleF r, String message)
   at DevExpress.XtraPrinting.BrickExporters.CompositeBrickExporter.DrawInnerBricks(IGraphics gr, RectangleF rect)
   at DevExpress.XtraPrinting.BrickExporters.CompositeBrickExporter.&lt;&gt;c__DisplayClass1.&lt;Draw&gt;b__0()
   at DevExpress.XtraPrinting.BrickExporters.BrickBaseExporter.ExecuteClippedAction(IGraphics gr, RectangleF clipBounds, Action0 action)
   at DevExpress.XtraPrinting.BrickExporters.CompositeBrickExporter.Draw(IGraphics gr, RectangleF rect, RectangleF parentRect)
   at DevExpress.XtraPrinting.BrickExporters.PageExporter.DrawPage(IGraphics gr, PointF location)
   at DevExpress.XtraPrinting.Export.Pdf.PdfDocumentBuilder.CreateDocument(Stream stream, Document document, PdfExportOptions pdfOptions)
   at DevExpress.XtraPrinting.PrintingSystemBase.ExportToPdf(Stream stream, PdfExportOptions options)
   at ArcherTech.PrintExport.PrintExportService.RenderRecordData(SessionContext sessionContext, PrintExportCriteria printExportCriteria, Boolean printLayout, Stream output)
   at ArcherTech.Web.Modules.Foundation.Views.PrintExportPresenter.ExportRecord(SessionContext sessionContext, PrintExportCriteria printExportCriteria)</StackTrace>
          </Exception>
        </TraceRecord>
      </DataItem>
    </TraceData>
  </ApplicationData>
</E2ETraceEvent>


 
CauseThis is caused by the web server having insufficient RAM.
Resolution
  1. Please see the "Sizing & Performance" guide on the Archer Community ( https://community.rsa.com )  to determine the recommended amount of RAM for the web server based on the expected workload.
  2. Add additional RAM (hardware) to the web servers to meet expected work load.
WorkaroundAs a temporary workaround, additional Virtual Memory can be added to the web servers following the steps below. However, this may reduce the overall performance of the web servers:
  1. Start ->
  2. System ->
  3. Advanced Settings ->
  4. Advanced Tab ->
  5. Performance Settings ->
  6. Advanced Tab ->
  7. Virtual Memory ->
  8. Increase virtual memory / swap file so that the Web Server can page out some of the working memory to disk.

Attachments

    Outcomes