It's not a secret anymore!
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 17149
    
  27

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.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to generate Big log file in tomcat?
 
It's not a secret anymore!