File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

How to generate Big log file in tomcat?

Mitesh Soni

Joined: Aug 17, 2007
Posts: 18

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: 15952

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.
I agree. Here's the link:
subject: How to generate Big log file in tomcat?
Similar Threads
Http 500 internal server error after changing default port 8080 to 80
How to clear log files?
Configuring log4j
setting log4j
* Welcome Chuck Lam