| Summary: | OutOfMemoryError during "Scanning for Tasks" | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | luc peuvrier <lc.pvrr> |
| Component: | wst.sse | Assignee: | Nitin Dahyabhai <thatnitind> |
| Status: | RESOLVED FIXED | QA Contact: | Nick Sandonato <nsand.dev> |
| Severity: | normal | ||
| Priority: | P3 | CC: | nsand.dev, thatnitind |
| Version: | unspecified | Keywords: | performance, plan |
| Target Milestone: | 3.6 M4 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
luc peuvrier
Do you have any excessively large XML, HTML, JSP, CSS, or DTD files in your workspace? The failure point shown occurs just trying to read the file contents into a standard Document implementation, which either means a very, very large file, or something else used up most of your heap memory and we just happened to be the one that pushed it over. How much heap space was allocated? (In reply to comment #1) > Do you have any excessively large XML, HTML, JSP, CSS, or DTD files in your > workspace? The failure point shown occurs just trying to read the file > contents into a standard Document implementation, which either means a very, > very large file, or something else used up most of your heap memory and we just > happened to be the one that pushed it over. How much heap space was allocated? Ho yes, I have two file of 4G5 on a folder ! eclipse setting in eclipse.ini: -Xms200m -Xmx1024m Fixed. XML and HTML files are now scanned using a variant of our low-level tokenizer. Memory usage will be more in line with the lengths of the comments in the files rather than the total file sizes. Tested with a 1.8GB file containing 52 tasks, total memory never exceeded 100MB. We're capped at reporting in the first 2^31 bytes, though, since markers can't store Long numbers. |