Out Of Main Memory error while creating BaseX DB

Wednesday, 23 October 2013 · 2 messages
EM
elangovan MuthuSwamy23 Oct 2013 14:01 #
Hi All, I am using BaseX to evaluate Xpaths (Xqueries) for larger size of XML files. I have created BaseX database initially using *CreateDB*.execute(ctx) API. And every time when I need to evaluate Xpath I open database using Open("database name") API and get a context. Using this context I evaluate the xpath. Once I complete my evaluation I close the context using Close.execute(ctx) API. My application is running without any issues. If the server runs for few weeks, I have observed "Out Of Main memory error" while updating the BaseX database. Could any one please help me in this issue. Is there any possibility of memory leak in BaseX in my work flow? Note: I am using same CreateDB(...) API to update / overwrite the existing Database. XML file Size may vary from 3Mb to 10 Mb.
-- Regards, Elango.
CG
Christian Grün23 Oct 2013 14:21 #
Hi Elangovan,
Quoted text · elangovan MuthuSwamy · 2 lines
> I am using BaseX to evaluate Xpaths (Xqueries) for larger size of XML files. > I have created BaseX database initially using CreateDB.execute(ctx) API.
What do you mean with "CreateDB.execute(ctx) API"? Could you provide us with a minimized example? Best, Christian
Quoted text · elangovan MuthuSwamy · 27 lines
> > And every time when I need to evaluate Xpath I open database using > Open("database name") API and get a context. Using this context I evaluate > the xpath. Once I complete my evaluation I close the context using > Close.execute(ctx) API. > > My application is running without any issues. If the server runs for few > weeks, I have observed "Out Of Main memory error" while updating the BaseX > database. > > Could any one please help me in this issue. Is there any possibility of > memory leak in BaseX in my work flow? > > Note: I am using same CreateDB(...) API to update / overwrite the existing > Database. > > XML file Size may vary from 3Mb to 10 Mb. > > -- > Regards, > Elango. > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >

⚡Generated with XQuery