users@grizzly.java.net

Re: how to enable grizzly-servlet-webserver ARP?

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 06 Nov 2008 14:57:25 -0500

Salut,

huican ping wrote:
> Yes, feel free to forward the email to users_at_grizzly.

Thanks!

>
> I am evaluating some opensource java libraries for http, such as performance, scalability etc. Grizlly is very good one.


Thanks


>
> Do you have any Java web service Applications (for GET, POST: echo back etc) available for this purpose?

I know the JAX-WS folks at Sun are working on an implementation on top
of Grizzly. But right now, nothing on Grizzly. Jersey (REST) on the
contrary run really well on Grizzly (build on top of it).

A+

-- Jeanfrancois




>
> Thanks
>
> --- On Thu, 11/6/08, Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM> wrote:
>
>> From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
>> Subject: Re: how to enable grizzly-servlet-webserver ARP?
>> To: "huican ping" <pinghuican_at_yahoo.com>
>> Date: Thursday, November 6, 2008, 1:41 PM
>> huican ping wrote:
>>> Amazed about your fast response. You are fast!
>> Thanks. Do you min if I forward your first email to the
>> users_at_grizzly?
>> Next time people can refer to it.
>>
>>> I tried, and it said it is ARP enabled. Thanks.
>>> One thing I noticed for my simple "Hello
>> World" GET request, it runs about 13400 msgs/sec on my
>> box which is almost same as the ones I got at synchronous
>> mode. Probably it is reasonable for this kind of simple http
>> request. Do you have any wild guess?
>>
>> Yes since there is no suspend the time taken should be
>> ~almost the same.
>>
>>
>>>
>>> Java_Http>java -jar
>> grizzly-comet-webserver-1.9.0-20081106.024920-70.jar -p 9999
>> -a ./myHelloWorld.war HelloWorld
>>> Running from: /tmp/myHelloWorld
>>> Launching Servlet: HelloWorld
>>> Nov 6, 2008 1:32:40 PM
>> com.sun.grizzly.http.SelectorThread displayConfiguration
>>> INFO:
>>> Grizzly configuration for port 9999
>>> maxThreads: 5
>>> minThreads: 5
>>> ByteBuffer size: 8192
>>> maxHttpHeaderSize: 8192
>>> maxKeepAliveRequests: 256
>>> keepAliveTimeoutInSeconds: 30
>>> Static File Cache enabled: true
>>> Static resources directory: /tmp/myHelloWorld
>>> Adapter :
>> com.sun.grizzly.http.servlet.ServletAdapter
>>> Thread Pool (Pipeline):
>> com.sun.grizzly.http.LinkedListPipeline
>>> Asynchronous Request Processing enabled: true
>>> Server started in 217 milliseconds.
>> Thanks!
>>
>> -- Jeanfrancois
>>
>>>
>>>
>>> Thanks
>>>
>>> Huican Ping
>>>
>>>
>>> --- On Thu, 11/6/08, Jeanfrancois Arcand
>> <Jeanfrancois.Arcand_at_Sun.COM> wrote:
>>>> From: Jeanfrancois Arcand
>> <Jeanfrancois.Arcand_at_Sun.COM>
>>>> Subject: Re: how to enable
>> grizzly-servlet-webserver ARP?
>>>> To: "huican ping"
>> <pinghuican_at_yahoo.com>
>>>> Date: Thursday, November 6, 2008, 1:30 PM
>>>> Salut,
>>>>
>>>> huican ping wrote:
>>>>> Hello Jeanfrancois,
>>>>>
>>>>> Sorry to bother you.
>>>>>
>>>>> I got the below one from
>>>> https://grizzly.dev.java.net/, and when I started
>> it up, it
>>>> showed me "Asynchronous Request Processing
>> enabled:
>>>> false" which means it runs synchronous mode.
>>>>> How to enable ARP? or whether you have the
>> asynchrnous
>>>> request processing enabled
>> grizzly-servlet-webserver
>>>> available? I am a newbie to glizzly, and hope can
>> get help
>>>> from you soon.
>>>>> Java_Http>java -jar
>> grizzly-servlet-webserver-1.9.0-20081106.024920-70.jar -p
>>>> 9999 -a ./myHelloWorld.war HelloWorld
>>>>
>>>> Just download the comet one instead:
>>>>
>>>>
>> http://download.java.net/maven/2/com/sun/grizzly/grizzly-comet-webserver/1.9.0-SNAPSHOT/grizzly-comet-webserver-1.9.0-20081106.024920-70.jar
>>>> and do:
>>>>
>>>> java -jar
>>>>
>> grizzly-comet-webserver-1.9.0-20081106.024920-70.jar -p 9999
>>>> -a ./myHelloWorld.war HelloWorld
>>>>
>>>> The Comet bundle support both ARP and Servlet.
>>>>
>>>> Let me know how it goes.
>>>>
>>>> Thanks
>>>>
>>>> -- Jeanfrancois
>>>>