• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logging in Tomcat Server

 
Keerthi Subramanian
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have couple of questions to clarify!

1. After platform upgrade of my application to Tomcat5.5 and JDK6.1, I found there are lot of warning messages generated at server console. This message printing slows down my page loading. Can anyone tell me how to turn off these warnings.
Warning from console:
WARN [org.apache.commons.httpclient.HttpMethodBase] - <Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.>
2. Can this warning messages cause memory leak in production environment?

Any help is higly appreciated.

Thanks.
 
Kamal Ahmed
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try new InputStreamReader()
 
Kamal Ahmed
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, i looked further, and in the method getResponseBody(), there is a limit imposed UFFER_WARN_TRIGGER_LIMIT, 1024 * 1024);

you might want to either get the source code, and increase the limit, OR better, use another getter for the body


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic