[
http://jira.jboss.com/jira/browse/JBIDE-1896?page=comments#action_12402592 ]
Snjezana Peco commented on JBIDE-1896:
--------------------------------------
You can reproduce this issue in the following way:
- create some JSF project
- add the attached edit.xhtml file to the WebContent/layout directory
- add the attached test.xhtml file to the WebContent directory
- try to add <h:form></h:form> around line 290, after <h:commandLink>
Editing is slow.
I have found two ways to speed up this editing:
1) In the VpeDefineContainerTemplate class, a file that is defined in <ui:define>,
is opened for reading and closed every time it is accessed. A similar issue is described
in
http://jira.jboss.com/jira/browse/JBIDE-1105#action_12394448, issue 3.
The attached patch fixes this issue as well and contains the memory leak patch from the
previous comment (
http://jira.jboss.com/jira/browse/JBIDE-1896#action_12401691).
This speeds up editing the file about 3 times.
2) The <h:form> tag contains a lot of children.This node (or some other node that
contains a lot of children) can be splited into
sections using the <div> tag. Attached is the testdiv.xhtml file to illustrate this
case. Editing is very fast with no delay.
Users can split a node into sections manually (Andy, you can try this within JBoss Tools
2.0.0/JBDS 1.0).
We can also automatically split big nodes into sections.
I suppose that there is the same issue in the VpeCreatorUtil.getFacetType() method that
calls the getModelForRead/releaseFromRead methods.
I will try to find a test case.
JBDS1.0 Massive Memory Leak using JBoss Tool HTML Editor on .XHTML
files
------------------------------------------------------------------------
Key: JBIDE-1896
URL:
http://jira.jboss.com/jira/browse/JBIDE-1896
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Visual Page Editor
Affects Versions: 2.0.0.GA
Environment: * Windows XP Professional
* Fresh installation of JBDS 1.0, no additional plugins/features updates etc.
* Working from a freshly seam-gen generated project
Reporter: Andy Conn
Assigned To: Max Andersen
Priority: Critical
Fix For: 2.1
Attachments: display.xhtml, edit.xhtml, JBDS259.zip, menu.xhtml,
NewPartDetail.xhtml, template.xhtml
Please refer to the disucssion @
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134003#...
Original Post:
There seems to be a major memory leak making the JBoss HTML Editor completely unusable.
Mem usage in Task Manager shows as follows:
* 111,448 On a fresh open of Jboss Dev Studio
* 189,144 Opening an .xhtml file (in visual/source mode) using in the "Jboss HTML
Editor"
* 197,932 Removed a blank line from the source & saved
* 207,180 Inserted a blank line in source & saved
* 211,168 Inserted a space in source & saved
* 357,392 Inserted & Deleted a blank line in source: repeat 20x (no saves in
between)
Clearly there is some dramatic memory problem here.
Note:
1) The problem does not seem to occur when mode is set to "Source"
2) The memory is not released even if the HTML Editor is closed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira