This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Memory profiling shows that we have more than 50 org.apache.xerces.parsers.SAXParser instances allocated on heap while the app is running. They are useless and can be released. PropertyHandlers in o.n.c.windows.persistence hold them together with some configuration and bunch of other objects belonging to Xerces. If I get it right they are held because the system uses these handlers for saving of winsys state during the shutdown. I will attach a patch that saves the memory and creates new instances of PropertyHandler-s for saving. The better approach can be to split loading and saving. I have not measured impact on startup time. It should be pretty small as we will collect some object instead of promoting them. It should give us some tens of kB (43 instance of SAXParser, XML11Configuration, a lot of QNames, some string instances).
reassigning
Created attachment 16484 [details] patch for winsys module
Also char arrays containing whole file content for winsys files vanished with the patch.
applied the patch.
x