That’s what I figured—that it should start quickly and be immediately available, so if it’s not something must be wrong.

 

At the moment I’m just firing up basehttp using the built-in script, so no on-startup commands or job services (yet).

 

My guess is that I have a corrupt database or something but I thought there might also be some “recover from a bad shutdown” process that happens. Our validation reports are in a single database and each doc is around 40MB.

 

I dropped my validation report database and then BaseX was able to start as expected. Fortunately, we keep those reports in a git repo so there’s no loss if a database goes bad (and I’m not yet bothering to back up my databases).

 

I’m working now on setting up parallel servers so I can have one do the data processing while the other serves pages.

 

If I understand the docs around file locks and so on, it is safe to have databases shared between servers for read and as long as writes are done from the data processing server the page-serving server should be good.

 

Cheers,

 

E.

 

_____________________________________________

Eliot Kimber

Sr Staff Content Engineer

O: 512 554 9368

M: 512 554 9368

servicenow.com

LinkedIn | Twitter | YouTube | Facebook

 

From: Christian Grün <christian.gruen@gmail.com>
Date: Wednesday, February 9, 2022 at 10:07 AM
To: Eliot Kimber <eliot.kimber@servicenow.com>
Cc: basex-talk@mailman.uni-konstanz.de <basex-talk@mailman.uni-konstanz.de>
Subject: Re: [basex-talk] BaseX Doing Lots of Work on Startup: How to Diagnose?

[External Email]


Usually, BaseX should be available immediately after startup.
How do you start BaseX? Have you enabled any services [1] that will
run at startup time, or similar?

[1] https://urldefense.com/v3/__https://docs.basex.org/wiki/Jobs_Module*Services__;Iw!!N4vogdjhuJM!VpBP92sH35aW9BDbyKfSH-axiIdYsZ3I42LHOxHd_5n0VBj5dfOHONVGUdOkov-NpMhTXg$


On Wed, Feb 9, 2022 at 1:45 PM Eliot Kimber <eliot.kimber@servicenow.com> wrote:
>
> I now have my server loaded with lots of data and I’m seeing that when the server starts it is taking 100% of a processor for 10s of minutes or more.
>
>
>
> I expect some initial startup cost of course as BaseX prepares whatever it needs to satisfy queries but this feels like something is not right.
>
>
>
> I don’t see anything obvious in the logs but I suspect I’m not looking in the right place or don’t have appropriate logging options turned on.
>
>
>
> Any tips on what I can look for to see what might be causing this startup issue?
>
>
>
> Thanks,
>
>
>
> E.
>
>
>
> _____________________________________________
>
> Eliot Kimber
>
> Sr Staff Content Engineer
>
> O: 512 554 9368
>
> M: 512 554 9368
>
> servicenow.com
>
> LinkedIn | Twitter | YouTube | Facebook