0

すべてのウィジェットが 1 つのページにロードされ、ページのロード中に約 20 回の rpc 呼び出しが行われるテスト GWT アプリケーション (2.0.4) をロードしようとしています。

サーバー: JBoss 5 で、JConsole を使用してヒープ メモリを監視しています。

負荷テスト中に、最小数のユーザーでもヒープ メモリが最大に増加することがわかりました。ただし、gc がトリガーされると、メモリが再利用されます。

少数のユーザーであっても、サーバー上の GWT アプリケーションのメモリ使用率 (ヒープメモリ) が非常に高い理由を誰か説明できますか?

Hibernate + Spring フレームワークを使用しています。

4

1 に答える 1

1

1) It would help to reduce the number of GWT RPC calls on application screen launch by combining the data they fetch. Multiple RPC calls on load tend to block up lot of resource on browser and on server.

2) Analyze whether you need all the data your RPC calls are fetching first up.

3) The heap space usage varies depending on server side technology you are using Hibernate, Dozer, Gilead, lazy/cache loading etc.

4) Code Splitting and Fragment Merge help you reduce your app javascript which you load first up.

I am guessing you are using Dozer to copy hibernate entities to DTO/beans of client side. Try playing around with hibernate C3P0 connection pool settings.

于 2012-11-22T08:39:56.163 に答える