You could maybe solve this issue by getting more RAM, but the less we know, the less we can tell...
What model, how much RAM, what CPU, how much HDD space have you got?
Have you looked at the Activity Monitor (All Processes, sort by CPU and sort by Physical Memory)?
How many and what applications are open during the beach-ball incidents (the coloured ball)?