Charlie is exactly correct, it is strongly recommended that you find the cause before you start creating work arounds, and his suggestions are pretty much the first place you want to start, but in case you are trying to isolate the problem and do not want to reboot to reinit your swap file simply type "swapoff" and then "swapon".