[SalesForce] Apex CPU time limit exceeded

I just got this error when trying to deploy new components to Prod. It's happening on Apex test classes that already exist in Prod, not new ones in my change set. I understand that this error relates to a new governor limit that was introduced in the Winter '14 release. What's the best approach for me to go about addressing this in order to commit my change set?

Best Answer

The Maximum CPU time on the salesforce servers - 10,000 milliseconds (Synchronous limit) 60,000 milliseconds(Asynchronous limit).

You may have to go in and edit and refine some of your code, This may be a good place to start.

http://wiki.developerforce.com/page/Apex_Code_Best_Practices

also

How to code more efficient to avoid "Apex CPU time limit exceeded"?

I'm retracting what I said earlier about a query in a for loop..

"Operations that don’t consume application server CPU time aren’t counted toward CPU time. For example, the portion of execution time spent in the database for DML, SOQL, and SOSL isn’t counted, nor is waiting time for Apex callouts."