You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alex Samad - Yieldbroker <Al...@yieldbroker.com> on 2012/09/13 03:17:56 UTC

Q) ajp connector

Hi

I have a design question. I have an application that uses long lived connections back to the server so



App -> IIS -> AJP Connector -> Jboss/Tomcat
Or 
App -> Apache -> AJP Connector -> Jboss/Tomcat

So I know that IIS / Apache can handle lots of connections without pairing it 1 thread to 1 connection.  And JBoss/Tomcat can handle multiple connection per thread.

But can the AJP connector handle multiple connections per thread.

My recent problem with IIS + AJP... IIS limited the number of threads that the AJP connector could create, to roughly 265 once it was reached when another request was made it was blocked... So it looked like a 1 connection 1 thread bottle neck.

Is this by design ... is this a IIS thing or would I see the same issue with Apache/AJP


Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Q) ajp connector

Posted by "verlag.preisser@t-online.de" <ve...@t-online.de>.
Hi Alex,

-----Original-Nachricht-----
> Von: Alex Samad - Yieldbroker <Al...@yieldbroker.com>
> An: Tomcat Users List <us...@tomcat.apache.org>
> Betreff: RE: Q) ajp connector
> Datum: Thu, 13 Sep 2012 05:52:55 +0200

> So would that then be
> 
> Client -> websocket -> IIS ->  is this still done as AJP or websocket 
> ->jboss/tomcat 
> 
> Is jboss tomcat ready to handle websockets ?
> 

Tomcat supports Websockets since 7.0.27, but I think it is not possible to use Websockets over AJP because of the design of the AJP protocol (it doesn't allow concurrent reading and writing). For IIS, it should support Websockets since IIS 8.0 (Win Server 2012), but I didn't have time to try it out.
So you probably would need your clients to connect directly to Tomcat for using Websockets.

I'm currently working on an idea of a SPDY/3 Connector for IIS (as a possible replacement over the AJP conenctor), which is written in C# (using .Net 4.0). SPDY allowes for multiple streams on one TCP connection, so you would only need one open Connection to backend, and it should also allow to tansport Websocket connections (but that connector implementation does not yet have support for it).

If you want to take a look at it, you can find the thread of the dev-list here: http://markmail.org/message/q335rbpoylymr77q

Note that Tomcat seems to not yet have support for SPDY/3, but only SPDY/2, so unfortunately it is currently not possible to test the connector with Tomcat - but it should work with Jetty.

Regards,
Konstantin Preißer



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Q) ajp connector

Posted by Alex Samad - Yieldbroker <Al...@yieldbroker.com>.
So would that then be

Client -> websocket -> IIS ->  is this still done as AJP or websocket  ->jboss/tomcat


Is jboss tomcat ready to handle websockets ?

Alex

> -----Original Message-----
> From: Christopher Schultz [mailto:chris@christopherschultz.net]
> Sent: Thursday, 13 September 2012 12:51 PM
> To: Tomcat Users List
> Subject: Re: Q) ajp connector
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Alex,
> 
> On 9/12/12 9:17 PM, Alex Samad - Yieldbroker wrote:
> > I have a design question. I have an application that uses long lived
> > connections back to the server so
> 
> It sounds like HTTP isn't the right for you. Maybe you want to use something
> like WekSocket?
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
> 
> iEYEARECAAYFAlBRSisACgkQ9CaO5/Lv0PAKcACeLAAtEQ6N57e8H7/8/kWRvFf
> g
> ay4AmwUnMqVEBeKH+wZeTKe+fIzyG3tM
> =QhEO
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Q) ajp connector

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alex,

On 9/12/12 9:17 PM, Alex Samad - Yieldbroker wrote:
> I have a design question. I have an application that uses long
> lived connections back to the server so

It sounds like HTTP isn't the right for you. Maybe you want to use
something like WekSocket?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBRSisACgkQ9CaO5/Lv0PAKcACeLAAtEQ6N57e8H7/8/kWRvFfg
ay4AmwUnMqVEBeKH+wZeTKe+fIzyG3tM
=QhEO
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org