First, I forgot to add-xmx1024m (max)-xms1024m (min)-xmn... when the hosted mode is running. In the early stage of the project, we always encounter such an out of memory problem. However, after a certain scale, even if this parameter is modified, even if the hardware supporting facilities of the machine are improved, it is still an unbearable development experience.
Second, in the development process, the source contains a lot of modules, and the hosted mode will try to load them. You can allocate multiple modules during the development process, and delete unnecessary modules during local development *. GWT. the XML file only retains the inherited and current development module *. GWT. XML file. Other configuration files are retained only in the version library, which greatly improves the running speed of the host during development and greatly reduces the memory usage of the host. (The principle remains to be further explored ?.)
Third, delete unnecessary modules in host mode.