Update QuerySearch.java

update heap usage