Long time behavior of some nonlinear dispersive equations