Re: More WOLips questions: HTML formatting, memory leaks?

Mike Schrag <[email protected]> Thu, 19 Jun 2008 09:34:38 -0400
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
> When I format a components HTML file (following this: http://wiki.objectstyle.org/confluence/display/WOL/Refactor+-+Format+HTML+Feature) 
>  my HTML-Code is pretty crippled afterwards with
> 	- spaces before and after the "=" symbol in attributes (i.e.  
> <webobject name = "TextField9" /> instead of <webobject  
> name="TextField9" />)
> 	- empty tags being shortened (i.e. <td /> instead of <td></td>)
> 	- and some funny effects where I'm not 100% sure that it was  
> Eclipse messing things up (e.g. <br ></br>)
You didn't include what version of WOLips you're running but you're  
definitely not on the latest stable.  I don't know what you mean about  
your HTML being "crippled."  None of these actually sound like a  
problem (just style preferences).  The only one that's a little weird  
(but not wrong) is <br></br>, which I just tested, and it become <br/>  
in the new build.  The spaces around the equals is a preference --  
Prefs=>WOLips=>HTML Editor=>XML

> Does WOLips use it's own HTML formatter? Is there any way I can  
> exchange the HTML formatter being used?
It uses its own, and you cannot exchange it for another.

> Then I strongly thing that my setup has a serious memory leak. When  
> I run a wo app out of Eclipse which works fine in production with  
> only 32MB RAM, I always get out of memory exceptions after a very  
> short time (e.g. 20 requests) even when I double the amount of ram  
> for the app. Does anyone else experience similar behavior?
Eclipse isn't really involved in the memory management of your  
application -- it runs in a completely separate VM.  If you're running  
in debug mode (which you should be), that will definitely take up more  
ram.  When you say you are doubling the amount of ram for the app,  
where and how are you exactly specifying that?

ms