Hi Vince, The table only stores XML names (prefixes, local names, element names, attribute names, entity names, etc...) and namespace URIs. This topic was discussed on the list back in March with some possible solutions. You may find this [1] thread helpful.
[1] http://marc.theaimsgroup.com/?t=111099151200003&r=1&w=2 Vincent Le Maout <[EMAIL PROTECTED]> wrote on 05/17/2005 11:41:42 AM: > Hi, > > I'm currently using a SAX parser in a server application embedded in > Tomcat. Requests are received > in an XML form. The parser is not destroyed between successive calls. > After roughly 200000 requests > (not exactly the same count each time) I get a MemoryError (unable to > allocate more I guess). > By using a memory profiler (jmp) I noticed that 400000 strings were > allocated and that most of them > reside in objects of type symbol table entry. > I took a look a source code : a table is used to avoid allocating > strings too often and mutiple times > (the so called symbol table). What does this table store ? tag and > attributes name ? Does it store data ? > I didn't see any method to remove data from this table so I guess > everything is removed when it is > destroyed but what if I never destroy my parser ? Is it possible that > the table "leaks" ? Is it normal that > several hundred thousand strings be allocated in this table ? > > Thanks in advance. > > Vince > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
