2000 Nissan Frontier

Truck idles to 2500 rpms and then to 1500 rpms continiously. What is causing this?