I display the search result using PopupPanel, the PopupPanel has a button "filter" which allow user to refine the criteria and show the result (PopupPanel) again.I found that after several this operation (hide(), then new the PopupPanel again, center() it), the weblogic will throws
"java.lang.OutofMemoryError: Java heap space"
I already set the Xms and Xmx of weblogic to 1024M for my local machine.
the relevant code is posted as follow:
filter.addClickHandler(new CloseClickHandler(){
@Override
public void onClick(ClickEvent event) {
super.onClick(event);
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand(){
@Override
public void execute() {
((SearchLogsPanel)callingPanel).btnSearch.click();
}
});
}
});
in the attached code,
super.onClick(event);
will close the PopupPanel, then in the scheduler execute() method, the btnSearch.click() will new the PopupPanel again and
then center(show) it.
I suspect PopupPanel.hide() will not clear the memory and so after several these operation,
many PopupPanel is accumulated and so used up the weblogic
memory, is this true?