Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable display large volume data

 
Arun Boraiah
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Need some input in resolving the problem mention below. Thanks in advance for help
In my application, user requests for JSP/Servlet pages are routed via from apache 2.0 web server to tomcat servlet engine for processing. But the
responses are getting timed out while the content of the jsp is more, whereas the same response works well when it is requested directlythrough Tomcat engine .
Do i need to increase buffer size in server? if yes where should i change the same?

The following is the stack trace

[DEBUG] action.ReportAction@1522de2 (Logger.java:69)
fwd path: /jsp/reports/ReportRecognition.jsp
Sep 24, 2003 12:03:57 PM org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:380)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:558)
at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:354)
 
Steve Leach
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How long does it take before it times out ?
For long duration tasks I would start a background task and return a "please wait" page to the user immediately. This page would refresh every so often, and your app would check the status of the background task on each refresh, sending the results when the task is complete.
 
Arun Boraiah
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for the reply. The problem is not due to time factor since total response time takes between 3 to 5 sec. If I directly request through tomcat it take 3 to 5 sec to display the correct page. Hence I guess it may be due to some buffer memory that may require for redirecting the page through apache web server.
Any other input/suggestion?
Thanks
Arun
 
Arun Boraiah
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any one can help me on above said problem statement?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic