tracker issue : CF-3968983

select a category, or use search below
(searches all categories and all time range)

CFPDF Thumbnail Function Performance With Java 8 Incredibly Slow

| View in Tracker

Status/Resolution/Reason: To Track//ThirdParty

Reporter/Name(from Bugbase): Paul Mascari / Paul Mascari (Paul Mascari)

Created: 04/13/2015

Components: Document Management, PDF manipulation

Versions: 11.0

Failure Type: Performance Issue

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 1

Problem Description:
Attempting to make thumbnails with CFPDF (Action="thumbnail") on CF11 with Java 8 installed will often time out.  Even if a timeout error does not appear the process can take 1-2 minutes.  This seems especially true with PDFs containing large images.  The same CFPDF process with Java 7 installed takes only a few seconds.

Steps to Reproduce:

I have attached a sample PDF file.
Run the following CFPDF on two separate systems: one running CF11 with Java 7 and another with CF11 and Java 8.  Note time to process difference.

<cfpdf action="thumbnail" 

Actual Result:
CF11/Java 7: thumbnail produced within 10 seconds or less
CF11/Java 8: thumbnail produced after 1-2 minutes or sometimes crashes with system timeout error.

Expected Result:
Thumbnail produced within 10 seconds or less

Any Workarounds:
Downgrade all servers to Java 7

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3968983

External Customer Info:
External Company:  
External Customer Name: Paul
External Customer Email:  
External Test Config: My Hardware and Environment details:

Windows 2008 R2 64-Bit, IIS 7.  Quad-Core CPUs, 8GB RAM


  1. April 13, 2015 00:00:00: 1_Espoma0415-LawnReveal.pdf


I have found this same "crashing behavior" to happen when processing larger Excel files with CFSpreadsheet. Larger, meaning over 3MB. At this point we have to downgrade all servers to Java 1.7. This functionality is crucial to our apps and we can't have everything crashing all the time.
Comment by External U.
7889 | April 27, 2015 01:40:28 PM GMT
I am now seeing the same behavior even with Java 1.7. This is a HUGE problem as several of our apps depend on this functionality. When can we expect a fix? Ben Nadel has also happened on what looks like a related problem:
Comment by External U.
7890 | May 04, 2015 08:48:18 AM GMT
Seconded, as per Ben Nadel's article, we are also seeing similar processing issues.
Comment by External U.
7891 | May 04, 2015 01:21:11 PM GMT
So...what was happening as we waited for CFPDF to process was we were getting IIS "Server Unavailable" crashes. We were assuming it had to do with this bug. However, we started to see this IIS crash in numerous other places. Places where CFPDF was not in use but, perhaps, a process was taking a bit long to complete. It became such a problem we ask for help with our CF connector here: Desperate to stop connector crashes we dug up a very old 'isapi_redirect.dll' file from an old CF10 installation (dated 2013) and replaced the current CF11 Update 5 dll file. All problems seem to have cleared up. PDFs are now producing in acceptable time, including the one attached to this bug. Long running processes are not crashing the connector. So far so good, anyway. Keeping fingers crossed as we monitor the issue.... What's going on? What on earth is wrong with the newer CF11 connectors? I have no idea how a connector could be causing the CFPDF or image processing problems.
Comment by External U.
7892 | May 06, 2015 11:35:17 AM GMT
Please disregard my previous note. We found the crashes were being caused by a timeout setting on our cloud provider's load balancer. Once the timeout setting was increased the crashes have stopped. That being said...our processes are taking extra long every time we need to process a PDF due to this bug. That extra time was causing us to hit that timeout and get disconnected.
Comment by External U.
7893 | May 08, 2015 07:58:28 AM GMT
Verified with CF11 Update 5 with Java8. It takes 4-5 minutes for the thumbnail action. Verified with the attached pdf. @Rob : Are you still seeing this issue? Can we go ahead with a closure on this? Thanks
Comment by Poonam J.
7894 | June 22, 2015 11:06:46 PM GMT
Performance issue is fixed for next major version of ColdFusion. However execution of the sample code throws a Jpedal Exception for which we have logged a case . Jpedal case no:22519.
Comment by Suchika S.
7895 | September 25, 2015 01:33:51 AM GMT