Hello,
Managed to reproduce it.
Test is in StatisticsTest.
I'll keep looking for a while at it, until it makes sense or I'll go sleep,
whichever comes first.
Cheers,
Hubert
On Mon, Apr 27, 2009 at 11:37 PM, Zoltan Arnold NAGY <Zoltan.Nagy_at_sun.com>wrote:
> okay, the simplest code to trigger it:
>
> public class Main {
> public static void main(String[] args) throws Exception {
> GrizzlyWebServer ws = new GrizzlyWebServer(8080);
> final Statistics stat = ws.getStatistics();
> stat.startGatheringStatistics();
> ws.addGrizzlyAdapter(new GrizzlyAdapter() {
> public void service(GrizzlyRequest request, GrizzlyResponse
> response) {
> try {
> PrintWriter writer = response.getWriter();
> writer.println("req: " +
> stat.getRequestStatistics().getRequestCount());
> writer.println("bytes received: " +
> stat.getRequestStatistics().getBytesReceived());
> writer.println("bytes sent: " +
> stat.getRequestStatistics().getBytesSent());
> } catch(Exception e) {
> e.printStackTrace();
> }
> }
> }, new String[] { "/stat" });
> ws.start();
> }
> }
>
> however, it seems that this adapter itself does not contribute into the
> global sent/received counter.. :)
> but you can see, the req number grows irradically.
>
> I'll attack it to the issue, too.
>
> Thanks,
>
> Zoltan
>
> Zoltan Arnold NAGY wrote:
>
>> Jeanfrancois Arcand wrote:
>>
>>> Salut,
>>>
>>> can you send the .java class/ test? Send it privately if you can't share
>>> with outside so I can reproduce locally.
>>>
>> sure. gimme a sec to come up with the simplest testcase. :)
>>
>> in the meantime, I opened an issue:
>>
>> https://grizzly.dev.java.net/issues/show_bug.cgi?id=565
>>
>> Zoltan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>