In the end this turned out to be caused by a method that didn't have the synchronized keyword and therefore was not handling the calls from multiple threads correctly. This has been addressed and the problem resolved.
-----Original Message----- From: Christian GrĂ¼n [mailto:christian.gruen@gmail.com] Sent: Tuesday, February 02, 2016 8:11 AM To: Bondeson, Carl Carl.Bondeson@ct.gov Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] Multithread lock
Is the SocksSocketImpl just the socket management API that BaseX uses to communicate between client and server?
Yes. BaseX uses plain and simple Java sockets for client/server communication. Find out more here:
https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/ba...
Maybe you could do some general research on the limits of Java socket connections (it may also relate to your OS and Java version).
One other piece of information. There are 2 applications using BaseX on this system. They are using 7.6, while I am using 7.9. I am using alternate ports for the server and events.
Feedback on the latest version of BaseX is always welcome, as 7.6 is pretty old now.