Author | Topic: Number of available threads | |
---|---|---|
Sander Elias | Number of available threads on Mon, 16 Mar 2015 15:47:56 +0100 Hi all, I have this test (attached) program to check how many threads I can run using xbase. I know that the exact outcome is highly dependant on the system it is run on. However, if I run this program with 1.9 I'll get around 1400 threads on my computer, and after that, the program just doesn't add anymore threads (not expected, but a welcome outcome) If I run the same program with 2.0 I can run only around 500 threads, after witch the program exists with an xppFatal. Does anybody know what the reason behind this reduction in available threads is? And is there a way around? The background. I'm building web applications, and some might have multiple connections/web sockets open to the server. As Xbase needs an thread for every connection/socket I need to know how much I can handle. 500 threads is really low! if I have 100 concurrent clients with 5 connections each I'm there already! Regards Sander Regards Sander Elias ------------------------------------------------------------- xbHCL (http://www.xbHCL.com) the xbase HTML command layer PBIH (http://pbih.eu) Polar Bear International Hosting ------------------------------------------------------------- also a member off the XXP (http://www.xxp.nl) tr.prg tr.XPJ | |
Nestor G. Torres | Re: Number of available threads on Tue, 17 Mar 2015 17:52:33 +0200 Interesting Question. I hope you get a response on this ones since I would also like to know. Kind regards, Nestor On 2015/03/16 04:47 PM, "Sander Elias" wrote: > Hi all, > > I have this test (attached) program to check how many threads I can run using xbase. I know that the exact outcome is highly dependant on the system it is run on. > However, if I run this program with 1.9 I'll get around 1400 threads on my computer, and after that, the program just doesn't add anymore threads (not expected, but a welcome outcome) > If I run the same program with 2.0 I can run only around 500 threads, after witch the program exists with an xppFatal. > > Does anybody know what the reason behind this reduction in available threads is? And is there a way around? > > The background. I'm building web applications, and some might have multiple connections/web sockets open to the server. As Xbase needs an thread for every connection/socket I need to know how much I can handle. > 500 threads is really low! if I have 100 concurrent clients with 5 connections each I'm there already! > > Regards > Sander > Regards > Sander Elias > > ------------------------------------------------------------- > xbHCL (http://www.xbHCL.com) the xbase HTML command layer > PBIH (http://pbih.eu) Polar Bear International Hosting > ------------------------------------------------------------- > also a member off the XXP (http://www.xxp.nl) > |