what is the consequence of setting enableQueryTimeouts to FALSE? MySQL Connector-J has a property enableQueryTimeouts which is TRUE by default. However, in the documentation it is mentioned as : 


  When enabled, query timeouts set via Statement.setQueryTimeout() use a shared java.util.Timer instance for scheduling. Even if the timeout doesn't expire before the query is processed, there will be memory used by the TimerTask for the given timeout which won't be reclaimed until the time the timeout would have expired if it hadn't been cancelled by the driver. High-load environments might want to consider disabling this functionality


So, I want to disable enableQueryTimeouts to gain high performance. However, if I disable enableQueryTimeouts, then 


How a query will timeout?
Will there any consequences ?


Please help
Consequences: if there is a slow query(s) your system will be too slow, hang, or even go out of memory.

if QueryTimeout is disabled  from MySQL or the connector it will stay until its finished (how to enable it from MySQL SET GLOBAL MAX_STATEMENT_TIME=XXX;  -- where XXX=number