Hi Sanjay,

As a first step, I would highly recommend moving to 1.1 RC2 or a more recent
snapshot. There is a good chance that it will fix your issue.

If not, we'll investigate more.

Best regards,
Jérôme Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
 

-----Message d'origine-----
De : Sanjay Acharya [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 15 octobre 2008 02:39
À : [email protected]
Objet : Assistance and Question


Hi,

I am using Restlet version 1.1 m1. There are times when we run out of open
file handles in stage environment with "too many open file handles" error. I
am also using the JaxbRepresentation to marshall the data. 
I am trying to recreate the issue related to
http://restlet.tigris.org/issues/show_bug.cgi?id=439 and not sure how to do
the same. I would like to be able to recreate a state where connections are
left in 
"CLOSE_WAIT and FIN_WAIT_2 state" by the client.

I have limited the number of open file handles to 200 for the user. 

Any assistance to be able to duplicate the issue would be great.
Thanks,
Sanjay

Code on Resource class:
 @Override public void post(Representation representation) {

    String greeting = "Hello thgere";

    Person p = new Person();
    p.setFirstName("Foo");
    p.setLastName("Bar");
   
    // A Large address list
    p.setAddresses(buildAddress());
    SayHelloResponse resp = new
SayHelloResponse().withPerson(p).withGreeting(greeting);

    JaxbRepresentation responseRep = new
JaxbRepresentation(MediaType.APPLICATION_XML, resp);

    getResponse().setEntity(responseRep);

    getResponse().setStatus(Status.SUCCESS_OK);
  }

Code on Client class:
 Person p = new Person()....
....
 SayHelloRequest sayHelloRequest = new SayHelloRequest().withPerson(person);

 Request restRequest = createRequest();
 request.setEntity(new JaxbRepresentation(MediaType.APPLICATION_XML,
      sayHelloRequest));
Response response = client.handle(restRequest);
response.getEntity().release();
_________________________________________________________________
See how Windows connects the people, information, and fun that are part of
your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/=

Reply via email to