Warming up is normal in stop and go traffic. Your thermostat may be going bad, but you could also be low on coolant or have an air bubble trapped in the cooling system. Have you had your cooling system serviced lately or checked your coolant level to see if it's low?