CFIMAP running very slowly since Java Update
We have a scheduled task that scrubs an inbox regularly and has been running like clockwork since January 2022. This sunday our IT team updated the JDK to 11.0.6 and it started timing out. I've cut the task down to the bare bones and is it still taking multiple minutes to load a single email. I wanted to know if anyone else is experiencing anything like this.
Our CF version: 2018.0.14.330003
The pared down code for the scheduled task:
<cfparam name="url.folder" default="inbox"/>
<cfparam name="url.maxrows" default="10"/>
<cfparam name="url.startRow" default="1"/>
<cftry>
<cfset local.email_username = [USER_NAME] />
<cfset local.email_password = [USER_PASS] />
<cfimap
action="open"
server="imap.gmail.com"
port="993"
username="#local.email_username#"
password="#local.email_password#"
secure="yes"
connection = "test.cf.gmail" />
<!--- get all messages from IMAP server --->
<cfimap
action="getAll"
maxrows="#url.maxrows#"
startRow="#url.startRow#"
name="emails"
folder="#url.folder#"
connection="test.cf.gmail" />
<cfdump var="#emails#" />
<cfcatch>
<cfdump var="#cfcatch#" />
</cfcatch>
</cftry>
<cftry>
<!--- close the connection --->
<cfimap
action="close"
connection="test.cf.gmail" />
<cfcatch>
<cfdump var="#cfcatch#" />
</cfcatch>
</cftry>
