starting and closing HTTP server giving errors

Tuesday, 7 March 2017 · 4 messages · last reply 8 Mar 2017
K
kalibuk7 Mar 2017 18:03 #
Hallo, I'm trying to get strating and stopping of BaseX HTTP server automated. Whats wrong with starting: Once trying to run in command line "basexhttp.bat -S" I get "Connection failed (port: 8984)." But server is running (!?) and I can create socket to comunicate with. Whats wrong with stopping: Once trying to run in command line "basexhttpstop.bat" I get it hanged and need to terminate job or on another attempt I get back "Connection failed (port: 8985)." And I cannot communicate with server so it seems that it really got stopped. It's tricky to automate that if I get errors on every attempt to start/stop it. Could you advice? Third error what I ocasionally can get back after trying to run server is: "Error occurred during initialization of VM Could not reserve enough space for 1433600KB object heap" Behaviour is same for 8.6.0 and 8.6.1. I have just updated Java RT to latest. Regards, Jan, Brno
ML
Marco Lettere7 Mar 2017 18:09 #
Hi Jan, we've tracked down a very nasty issue with the stop script last week. The deadlock in the basexhttpstop should be fixed in the latest release [1]. The connection failure in the start script is strange because during startup of the HTTP server nobody should be trying to connect to its port. Maybe you could share your automation scripts? Regards, Marco. [1] http://files.basex.org/releases/latest/
Quoted text · kalibuk at centrum.cz · 43 lines
On 07/03/2017 18:03, kalibuk at centrum.cz wrote: > > Hallo, > > I'm trying to get strating and stopping of BaseX HTTP server automated. > > Whats wrong with starting: > > Once trying to run in command line "basexhttp.bat -S" > > I get "Connection failed (port: 8984)." > > But server is running (!?) and I can create socket to comunicate with. > > Whats wrong with stopping: > > Once trying to run in command line "basexhttpstop.bat" > > I get it hanged and need to terminate job or on another attempt I get > back "Connection failed (port: 8985)." > > And I cannot communicate with server so it seems that it really got > stopped. > > It's tricky to automate that if I get errors on every attempt to > start/stop it. Could you advice? > > Third error what I ocasionally can get back after trying to run server is: > > "Error occurred during initialization of VM > > Could not reserve enough space for 1433600KB object heap" > > Behaviour is same for 8.6.0 and 8.6.1. I have just updated Java RT to > latest. > > Regards, > > Jan, Brno > > > >
K
kalibuk8 Mar 2017 13:18 #
Hi Marco, thanks for reply I tried your latest release (8.6.2.x) and it seems helped to get HTTP server stopped ok. Otherwise starting the server is still giving me the error. Automation is out of way as it may be reproduced manually in command line see: c:\>basexhttp.bat -S Connection failed (port: 8984). c:\>basexhttpstop.bat HTTP Server was stopped (port: 8984). c:\> Any idea why it hands back connection failed message while I can ping it like this while running? C:\windows\system32>netstat -anb | find "8984" TCP 0.0.0.0:8984 0.0.0.0:0 LISTENING TCP [::]:8984 [::]:0 LISTENING Thanks, Jan -------------------------------------------------------------------------------------------------------------------------------------------- Hallo, I'm trying to get strating and stopping of BaseX HTTP server automated. ? Whats wrong with starting: Once trying to run in command line "basexhttp.bat -S" I get "Connection failed (port: 8984)." But server is running (!?) and I can create socket to comunicate with. ? Whats wrong with stopping: Once trying to run in command line "basexhttpstop.bat" I get it hanged and need to terminate job or on another attempt I get back "Connection failed (port: 8985)." And I cannot communicate with server so it seems that it really got stopped. ? It's tricky to automate that if I get errors on every attempt to start/stop it. Could you advice? ? Third error what I ocasionally can get back after trying to run server is: "Error occurred during initialization of VM Could not reserve enough space for 1433600KB object heap" ? Behaviour is same for 8.6.0 and 8.6.1. I have just updated Java RT to latest. ? Regards,? Jan, Brno ? ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20170307/16ecc05b/attachment-0001.html> ------------------------------ Message: 2 Date: Tue, 7 Mar 2017 18:09:36 +0100 From: Marco Lettere <m.lettere at gmail.com> To: basex-talk at mailman.uni-konstanz.de Subject: Re: [basex-talk] starting and closing HTTP server giving errors Message-ID: <d65972f1-a987-dfa3-7a16-bdb49547d66d at gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Hi Jan, we've tracked down a very nasty issue with the stop script last week. The deadlock in the basexhttpstop should be fixed in the latest release [1]. The connection failure in the start script is strange because during startup of the HTTP server nobody should be trying to connect to its port. Maybe you could share your automation scripts? Regards, Marco. [1] http://files.basex.org/releases/latest/
Quoted text · kalibuk at centrum.cz · 43 lines
On 07/03/2017 18:03, kalibuk at centrum.cz wrote: > > Hallo, > > I'm trying to get strating and stopping of BaseX HTTP server automated. > > Whats wrong with starting: > > Once trying to run in command line "basexhttp.bat -S" > > I get "Connection failed (port: 8984)." > > But server is running (!?) and I can create socket to comunicate with. > > Whats wrong with stopping: > > Once trying to run in command line "basexhttpstop.bat" > > I get it hanged and need to terminate job or on another attempt I get > back "Connection failed (port: 8985)." > > And I cannot communicate with server so it seems that it really got > stopped. > > It's tricky to automate that if I get errors on every attempt to > start/stop it. Could you advice? > > Third error what I ocasionally can get back after trying to run server is: > > "Error occurred during initialization of VM > > Could not reserve enough space for 1433600KB object heap" > > Behaviour is same for 8.6.0 and 8.6.1. I have just updated Java RT to > latest. > > Regards, > > Jan, Brno > > > >
ML
Marco Lettere8 Mar 2017 13:40 #
Quoted text · kalibuk · 1 line
Il 08 mar 2017 1:19 PM, <kalibuk at centrum.cz> ha scritto:
Hi Marco, thanks for reply I tried your latest release (8.6.2.x) Ti much credit I do not deserve. I'm only a member of the list not of the great BaseX staff. 😀 and it seems helped to get HTTP server stopped ok. Otherwise starting the server is still giving me the error. Automation is out of way as it may be reproduced manually in command line see: c:\>basexhttp.bat -S Connection failed (port: 8984). Does the same happen if you run without the -S switch? c:\>basexhttpstop.bat HTTP Server was stopped (port: 8984). c:\> Any idea why it hands back connection failed message while I can ping it like this while running? C:\windows\system32>netstat -anb | find "8984" TCP 0.0.0.0:8984 0.0.0.0:0 LISTENING TCP [::]:8984 [::]:0 LISTENING Thanks, Jan ------------------------------------------------------------ ------------------------------------------------------------ -------------------- Hallo, I'm trying to get strating and stopping of BaseX HTTP server automated. ? Whats wrong with starting: Once trying to run in command line "basexhttp.bat -S" I get "Connection failed (port: 8984)." But server is running (!?) and I can create socket to comunicate with. ? Whats wrong with stopping: Once trying to run in command line "basexhttpstop.bat" I get it hanged and need to terminate job or on another attempt I get back "Connection failed (port: 8985)." And I cannot communicate with server so it seems that it really got stopped. ? It's tricky to automate that if I get errors on every attempt to start/stop it. Could you advice? ? Third error what I ocasionally can get back after trying to run server is: "Error occurred during initialization of VM Could not reserve enough space for 1433600KB object heap" ? Behaviour is same for 8.6.0 and 8.6.1. I have just updated Java RT to latest. ? Regards,? Jan, Brno ? ? ?

⚡Generated with XQuery