| Summary: | Eclipse uses all heap space when trying to refresh a project with ExtJS-4.1.0-beta1 | ||
|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Timo A. Hummel <privat> |
| Component: | General | Assignee: | Project Inbox <jsdt.javascript-inbox> |
| Status: | CLOSED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> |
| Severity: | major | ||
| Priority: | P3 | CC: | jacek.pospychala, pawel.pogorzelski1, thatnitind |
| Version: | unspecified | Keywords: | helpwanted |
| Target Milestone: | Future | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Timo A. Hummel
In just a JavaScript project, it refreshes perfectly fine. Building's an issue, but that may an architectural limitation for us when dealing with these "-all" files. You're right, with a plain JavaScript project, it hangs when building. Any idea what the root cause is for that enormous amount of heap space used? I even can't cancel the build. Eclipse says "Building workspace (Cancel Requested)" in the progress view, but keeps wasting heap space until eclipse eventually reports "Out of Heap Space". It's an architectural thing, since standalone files have few mechanisms to reliably establish dependencies between themselves--hence the include path. Every "type" in the "-all" files also has properties contributed to it in other files, which are read in so that they're also known. In this case they happen to (probably) be the same properties, but that ends up being a lot of files read if there are a lot of types in this one file that are duplicated elsewhere. If you can turn off the building and stick to either the "-all" files or the others, it should work fine when building. Of course, if you actually *were* experiencing hanging just while refreshing, there's something else going on, possibly in the PDT as you originally suspected. Refreshing just triggers indexing for us, and that's strictly handled one file at a time, individually in and out of memory, faster than most would even notice. I can't reproduce this anymore with Eclipse 4.2. |