Hello Everyone, I have been trying to this from a week or so. But not figure out a way. I work with tomcats and my client regularly send me log files in 2 to 3GB's stating there was a issue of file not found etc.. Some times they dont have the proper information to grep through the log files. SO I decided to build a tool that can parse all log files and can categorize the logs accordingly. Now i cannot store 4 GB of data in memory and I cannot put it back into the file because reading 4GB will take a lot of time. Even though I am using file channels and threads. Data Base is certainly not a option since it will again slow the system down. So I want to know is there is any other way to store the parsed contents so that whenever i want to check 404 error i must get all 404 errors in a list.
I do not wish to use a database. So database is certainly not a answer for this.