Here are some tips to prevent memory leaks when you restart your webapp.