RE: Re: Getting lot of Stream closed IOExceptions under heavy load

2013-07-08 Thread Martin Odhelius
I can confirm it was that one of the representations used an ObjectMapper with JsonGenerator.Featur​e.AUTO_CLOSE_TARGET not set to false. When I changed this all errors went away. //Martin -- http://restlet.tigris.org/ds/viewMessage.do?dsForum

Re: Getting lot of Stream closed IOExceptions under heavy load

2013-07-08 Thread Tim Peierls
That's probably it, but also make sure that you aren't creating a new ObjectMapper for each representation. --tim On Mon, Jul 8, 2013 at 9:05 AM, Martin Odhelius wrote: > I actually may have found what was causing this. I was using an > JacksonRepresentation that used an ObjectMapper where > Js

RE: Getting lot of Stream closed IOExceptions under heavy load

2013-07-08 Thread Martin Odhelius
I actually may have found what was causing this. I was using an JacksonRepresentation that used an ObjectMapper where JsonGenerator.Feature.AUTO_CLOSE_TARGET were not set to false. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&d

Getting lot of Stream closed IOExceptions under heavy load

2013-07-08 Thread Martin Odhelius
I have just deployed a Restlet-server that is under quiet heavy trafic and I have started to get very many errors in the log with the following error. It very much sounds like the application is trying to write to a closed connection. I use Restlet 2.1.2 with jetty extension. Any ideas how to ge