I have started getting this error recently:
The request has exceeded the allowable time limit Tag: CFQUERY
It seems to be whenever the Bing bot visited my site. I get system notifications in the span of 5 minutes about the error. So I will get like 7 to 10 in a row. The error all point to the one query:
<CFQUERY DATASOURCE="#datasource#" USERNAME="#username#" PASSWORD="#password#" NAME="queryname" CACHEDWITHIN="#CreateTimeSpan(0,0,2,0)#">
SELECT products.field1, products.field2, products.field3, products.field4, products.field5, products.field6, products.field7, products.field8, products.field9, products.field10, products.field11, company.field1, company.field2, company.field3, company.field4, company.field5, company.field6, company.field7
FROM products JOIN company
ON products.field1 = company.field1
WHERE products.field12 = <cfqueryparam value = "#catd#" cfsqltype = "cf_sql_integer" maxLength = "2">
ORDER by products.field13 DESC
</CFQUERY>
It basically select all the products in a category and get the associated company information with it and paginate them. The results returned for each category ranges from 2K to 30K records. There are up to 30 categories.
The errors that came in looks like this:
The request has exceeded the allowable time limit Tag: CFQUERY <br>The error occurred on line 152.
Query: cat=18&page=1803
The request has exceeded the allowable time limit Tag: CFQUERY <br>The error occurred on line 152.
Query: cat=2&page=211
The request has exceeded the allowable time limit Tag: CFQUERY <br>The error occurred on line 152.
Query: cat=7&page=691
The request has exceeded the allowable time limit Tag: CFQUERY <br>The error occurred on line 152.
Query: cat=6&page=451
The request has exceeded the allowable time limit Tag: CFQUERY <br>The error occurred on line 152.
Query: cat=14&page=417
This indicates that the Bing bot is hitting many sections of the site at the same time on different categories and pages.
Two weeks ago I got
The request has exceeded the allowable time limit Tag: CFQUERY
and
GC overhead limit exceeded null
So I increased the JVM memory from 1024 to 2048. But it may have only temporary fix the problem. Now two weeks later, the "exceeded the allowable time limit" error has come back.
Could this problem caused by the Bing bot, or is it something to do with my code, server memory or CF set up?
Thanks in advance.