users@grizzly.java.net

Re: Performance Settings

From: Alan Williamson <alan_at_blog-city.com>
Date: Tue, 27 Nov 2007 16:32:37 +0000

>> The compression methods, are they to do with GZIP at the Http layer?
>
> Yes.
>
>> Calling that will that automatically GZIP my outgoing content if the
>> client accepts?
>
>> Right. By default the following mime are supported:
>
>> "text/html", "text/xml", "text/plain"
>
>> Nothing to configure by default. Grizzly will do it for you :-)

mmm, i hate to disagree, but if i telnet to Grizzly and ask it for content:


GET /c/2/f/23/index.rss HTTP/1.1
host: 127.0.0.1
Accept-Encoding: compress;q=0.5, gzip;q=1.0

HTTP/1.1 200 OK
Set-Cookie: MF2=utmcr1xaw84x; Max-Age="63072000"; Path="/"
Content-Type: text/xml;charset=utf8
Content-Length: 30737
Date: Tue, 27 Nov 2007 16:29:16 GMT


Is there anything i need to do with my Response object to make sure the
Gzip'ing actually happens.


>> - Where i do i set the maximum number
>> of connections I will accept
>
> SelectorThread.setMaxQueueSizeInBytes() //Default is 4096

is that 4096 connections? (seems strange since the method sig is Bytes,
kinda threw me)