[xgws-user] Question on a possible xsul server without multi-threading,

Aleksander Slominski aslom_at_cs.indiana.edu
Mon, 20 Feb 2006 01:28:45 -0500


Shanmuga.MUHUNTHAN_at_fr.thalesgroup.com wrote:

>Hi everybody,
>
>I wonder whether it is possible to have a xsul server without multi-threading (thread for each request).
>  
>
>Xsul server creates a new thread each time a request is received (XService) but is it possible by any meaner to not create a new thread ?
>
>  
>
hi Shan,

yes but it will require writing some code to use your thread management 
- you either provide completely new endpoint transport or extend xsul 
mini http server and override how connections are handled (in fire 
connection method)

>My problem is the following:
>I can have 500 to 1000 requsts (response is sent asynchronously) per seconde server side.
>Each request can take 2 to 3 seconde processing.
>In this situation, I can have memory leak and thread overflow.
>  
>
java can handle 1000 threads or more OK however devil is in details ... 
if you need better scalability i would use one of standard HTTP load 
balancing techniques (after measuring throughput and doing load stress 
testing)

>Perhaps msgBox can resolve my problem but can I use msgbox server side ?
>  
>
see my next email about MB and WSD.

thanks,

alek

-- 
The best way to predict the future is to invent it - Alan Kay