I developed an application, it's a servlet that receives files and process according to bussiness rules, the problem is that in Java Application Server Logs, there are messages like this:
java.io.Exception : Broken pipe or Connection reset by peer and it's on logs lot of times, i know the problem is due to servlet doesn't find where to write the response, (maybe users hit on refresh, close the browser or something like this)
According to Servers administrator, this sessions aren't destroyed and are present on the JAS and consumes resources on CPU or others, IS IT POSSIBLE???
so from time to time Administrator has to restart the JAS to free those resources, and so the application has a good performance...
if this sessions represent a problem, what can i do to solve it?, do i have to do something in code? or on JAS aministration console?
Cesar - any application that maintains session on the servers will chew up resources even after the user has left (e.g., closed browser window). You can set the timeout for such sessions in your application server. Once you do that, these sessions don't hold onto resources forever.
Another thing to consider is the size of data in your sessions. Try to keep session objects small so that memory requirement for the same number of concurrent users is smaller. [ May 27, 2005: Message edited by: Sharad Agarwal ]
I wasn't refering to Sesions on data, In fact i am not using sessions, i meant it seems that TCP/IP connections are maintained by the JAS when the servlet doesn't find where to write the response(maybe user close the browser).. and because of this the messages java.io.Exception broken pipe... are on logs
does it cause the Server CPU is always in 100%? (this open connections..)
i know the problem is due to servlet doesn't find where to write the response, (maybe users hit on refresh, close the browser or something like this)
Another thought: Is it possible that these aren't connections broken by the user? Could they be timed out database connections that are still being maintained in your connection pool because the methods that use them aren't properly closing them?
That, is something that would cause a memory leak which can only be cleaned up by rebooting the app server. [ May 27, 2005: Message edited by: Ben Souther ]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com