This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to generate Big log file in tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to generate Big log file in tomcat?" Watch "How to generate Big log file in tomcat?" New topic
Author

How to generate Big log file in tomcat?

Mitesh Soni
Greenhorn

Joined: Aug 17, 2007
Posts: 18
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

Joined: Jun 25, 2001
Posts: 16095
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
GeeCON Prague 2014
 
subject: How to generate Big log file in tomcat?