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@gmail.com>
To: basex-talk@mailman.uni-konstanz.de
Subject: Re: [basex-talk] starting and closing HTTP server giving
errors
Message-ID: <d65972f1-a987-dfa3-7a16-bdb49547d66d@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/
On 07/03/2017 18:03, kalibuk@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
>
>
>
>