Will PopupPanel.hide() clear the memory it used?

64 views
Skip to first unread message

tong123123

unread,
Sep 18, 2012, 6:30:47 AM9/18/12
to google-we...@googlegroups.com
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?




Joseph Lust

unread,
Sep 18, 2012, 9:13:18 AM9/18/12
to google-we...@googlegroups.com
java.lang.OutofMemoryError: Java heap space

Are you referring to an error while running in DevMode? You should not get a heap space error when running JS code in the client browser.

You said this is a weblogic error, so you likely have a leak not in your DevMode/GWT code, but in your backend code that is feeding this panel.



Sincerely,
Joseph

tong123123

unread,
Sep 18, 2012, 10:48:26 AM9/18/12
to google-we...@googlegroups.com
Not devMode, but in production mode.
Each time the user press filter button, a GWT-RPC is called, at first I think this is related to the popuppanel does not release memory.

Jens

unread,
Sep 18, 2012, 10:58:33 AM9/18/12
to google-we...@googlegroups.com
All code in your GWT app's client package will be run by the users web server and not your WebLogic app server.

If your WebLogic app server throws an OutOfMemory exception then you have an issue in your GWT-RPC method implementation and not in the PopupPanel.

-- J
Reply all
Reply to author
Forward
0 new messages