Viacheslav Kabanovich created JBIDE-13864:
---------------------------------------------
Summary: Memory usage problem in PageContextFactory.CSSStyleSheetDescriptor
Key: JBIDE-13864
URL:
https://issues.jboss.org/browse/JBIDE-13864
Project: Tools (JBoss Tools)
Issue Type: Task
Components: common/jst/core
Reporter: Viacheslav Kabanovich
Assignee: Victor Rubezhny
Fix For: 4.1.0.Alpha2
Class PageContextFactory.CSSStyleSheetDescriptor keeps reference to IDOMNode which keeps
in memory the entire XML document and parser. The reference is used to obtain style sheet.
Style sheet is needed only when user opens editor, for visual editor, content assist,
open-on and style attribute editing. Instances of PageContextFactory are created for all
pages in workspace for validation and kept in memory until page is removed or modified. If
many pages reference stylesheets, then context will unnecessarily keep in memory all
documents and parsers which may cause critical memory overload.
I think, first we have to make sure if node references indeed help dramatically expedite
getting style sheets. If so, then we still may keep this references, but only for those
pages, for which style sheet was requested, and maybe limit the number of references. On
the other hand, if getting style sheets may be acceptably fast without keeping the
references, it is better to get rid of them.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira