Note that there are some explanatory texts on larger screens.

plurals
  1. POGWT memory leak link to request builder( generated by GWTP Action Server Call )
    primarykey
    data
    text
    <p>Found in GWT Release:</p> <p>GWT - 2.4.0</p> <p>Encountered on OS / Browser :</p> <p>Windows 7 with IE9</p> <p>Detailed description (please be as specific as possible):</p> <p>Out Of Heap exception occurred after left GWT App to run overnight, Diagnosis with MemoryAnalyzer, found that upon crash there are 1.6 million instance of com.google.gwt.http.client.RequestBuilder , each size exactly at 1208 bytes.</p> <p>Further checking reveal to me that those request are GWT Action call to server to poll current server health status. poll trigger by com.google.gwt.user.client.Timer every 1 sec</p> <p>Shortest code snippet which demonstrates issue:</p> <pre><code>@Inject public MainPresenter(final EventBus eventBus, final MyView view, final MyProxy proxy, PlaceManager placeManager, final DispatchAsync dispatcher) { super(eventBus, view, proxy); this.placeManager = placeManager; this.dispatcher = dispatcher; getView().setUiHandlers(this); setupSeverHealthQuerier(dispatcher); } private void setupSeverHealthQuerier(final DispatchAsync dispatcher) { int delayInSec = UserPreference.HealthCheckInterval; serverHealthChecker = new Timer() { @Override public void run() { dispatcher.execute(new GetServerHealth(ServerName.ReplayServerGTU), new AsyncCallback&lt;GetServerHealthResult&gt;() { @Override public void onFailure(Throwable caught) { caught.printStackTrace(); } @Override public void onSuccess(GetServerHealthResult result) { getView().setServerHealthPic(result.getHealth()); } }); } }; serverHealthChecker.scheduleRepeating(delayInSec * 1000); } </code></pre> <p>Here is the Heap Report:</p> <p><a href="http://i.stack.imgur.com/C2qJy.png" rel="nofollow">http://i.stack.imgur.com/C2qJy.png</a></p> <ul> <li>thanks for the 10 reputation-to-post-image rule</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload