Closed gamerson closed 9 years ago
It seems that DOMUtils.getStructuredModelContentTypeId(IFile) is doing too much just to determine the content type. A call to a more lightweight API should be able to return the same information but not use such a heavyweight API call. Will seen pull request soon.
See released Liferay IDE issue https://issues.liferay.com/browse/IDE-1817
The issue is that when someone has the Liferay portal source open there are several extremely large XML files in the source tree, namely javadocs-all.xml which is 23Mb.
XML Search when it is indexing xml files and trying to determine if it should include them in the search it is running VM out of memory causes a GC panic.
We did a profile and found the method that is exhausting the memory, here is the trace from yourkit profiler.