8 Replies Latest reply on Mar 18, 2010 1:04 PM by rmorgan

    images to pdf gc overhead exceeded

    rmorgan Level 1

      I have an application that collects uploaded images. This part works fine. I need to also be able to take all those images and send them to a pdf file but the page does not load and gives a GC java overhead limit exceeded, after several minutes. What can I do to help this? I have gone in and increased the Maximum JVM Heap Size from the default of 512mb to 2048mb but still does not seem to help, although it does seem like it takes longer to time out or it gives a pdf corrupted error message.

       

      This is CF8 on RH5

       

      Here is the code I am using, pretty simple but not sure if there is a better way.

       

      <cfquery name="getall" datasource="#dsn#">
      Select imagepath
      from tradition
      </cfquery>

       

      <body >
      <cfdocument format="pdf" pagetype="letter">
      <cfoutput query="getall">#getall.imagepath#<br /><br /><br />
      <img src="../uploads/#getall.imagepath#">
      <cfdocumentitem type="pagebreak"></cfdocumentitem>
      </cfoutput></cfdocument>
      </body>
      </html>