add java memory notes