• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to generate Big log file in tomcat?

 
Mitesh Soni
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to have a Huge log file to do log analysis with the use of Hadoop. Just for my own experiment, is thr any way with which we can generate content in the tomcat log file dynamically?

I need 5 o 10 GB file for my experiment with hadoop.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can just create a simple web application with a loop that does lots of System.out.printlns.

Normally I discourage System.out and System.err in webapps, but the catalina.out file isn't a true logfile, so if that's what you want to process, you should generate a lot of non-formatted messages to it if you want a proper "real-world" simulation.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic