----- Original Message ----- From: "Kees Jan Koster" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, October 06, 2008 9:22 PM
Subject: Re: Using tomcat to hold many open connections.


Dear Uprooter,

I'm looking for a server that has to hold many (web services) remote clients
for controlling them.
I want to do things like sending power off command to a bunch of machines
remotely.

Building a botnet? :-)

The clients are usually windows machines behind firewalls  NAT or web
proxies that only allow HTTP (this is why I thought of webservices)

The regular request-response fashion that servlet follows is not suitable
here since the initiator of the operation is the server.
What can I do in order to solve this and still use web services?

If you have the resources, you can just block in the servlet on your server. It's pretty expensive since Tomcat uses a thread per request I believe. Java threads are expensive (256kB each?), so that adds up quickly. You could spend some time tuning your thread stacks, though. Depending on your actual number of clients, you should be able to get this to work with a few GB of RAM.

But then, 20K client polling once an hour might be cheaper. You may want to find a way to stagger the requests though.

--
Kees Jan

Yes Kees exactly... this is why I say "engineer it"... these guys find a hammer, and then everything look like a nail... ha ha Without more details we cant engineer it... but I do think, web services are not the right tool, at most an addendum, not the core... and that there are two distinct processes at work, web side and machine side... they interface but cant be combined... to do this right, you got to be a good general coder...

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to