Can a distributed compilation get rid of this issue? Does somebody use a 
distributed  compilation for development?


http://code.google.com/p/google-web-toolkit/wiki/DistributedBuilds
http://code.google.com/p/gwt-distcc/
https://github.com/markovuksanovic/gwt-distributed-compiler

David

On Wednesday, June 12, 2013 11:22:12 AM UTC-4, Ranjith Chungath wrote:
>
> Thanks for the reply..
>  
> Is there any other option other than increasing -XX:MaxPermSize.?
>  
> Is there a compiler option that can do the memory optimization?
>  
> ~Ranjith
>  
>
> On Tuesday, June 11, 2013 11:05:44 PM UTC+5:30, Ranjith Chungath wrote:
>
>> While analyzing with Eclipse Memory Analyzer(MAT), it was found that 
>> around 860MB of memory is taken by HashMap.Entry and HashMap.Entry[]. There 
>> are 1.3 million instances of HashMap.Entry objects created. See image below.
>>
>>
>> <https://lh4.googleusercontent.com/-01hS32-3jco/UbdeLrLCNmI/AAAAAAAAABo/O5V7ZTHj6-k/s1600/1.png>
>>
>>
>>
>>
>>
>>
>>
>>
>> These HashMap Entries typically have keys as 
>> (com.google.gwt.dev.jjs.ast.JMethod, com.google.gwt.dev.jjs.ast.JField, 
>> com.google.gwt.dev.jjs.ast.JParameter etc.) and the value is typically an 
>> instance of java.lang.Object.
>>
>>
>> <https://lh4.googleusercontent.com/-AHAWKJmod2s/UbdeQ8YZ8gI/AAAAAAAAABw/saqozlgWQm8/s1600/2.png>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> These maps are referenced from the PermutationWorker Thread.
>>
>>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>> Why are so many instances on HashMap Entries created ? Is this a an 
>> existing bug or do we need to specify any flag during the GWT compile to 
>> get around this 
>> problem?<https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>> Thanks,<https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>> Ranjith<https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>> <https://lh6.googleusercontent.com/-293uEuYJK70/UbdeZDyyiUI/AAAAAAAAAB4/o86kVs5XPC4/s1600/3.png>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to