util to report java object's memory