Hi,
I run several web applications using various CGI scripts to read and update BaseX databases via various XQUERIES. I use the "basexserver -S" command to start the server on a CentOS Server. Maybe this is not the very best idea.
I already split the data into various databases to avoid concurrent reading and writing. And I have a simple cron job running, that tests whether the BaseX server is still running and restarts it if it isn't running any more.
However, my users get (or rather create) a time out from time to time. If the basex server then shut's down, the cron job would restart it and everything is fine again. In the last weeks, however, I discovered that after such a time out the Basex server seems to still be running, but doesn't answer any xquery any more. So I have to kill the process by hand and restart it again.
Could you recommend a better solution to ensure smooth running of the Basex server even it sometimes a time out occurs?
Thanks in advance and best regards
Cerstin