What is the most efficient(fast and safe) way of reading a log file in java? The log file continuously(almost every second) gets updated.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looks like Apache JMeter (open source, friendly licensing) has some classes that you may be able to reuse which parse Tomcat access logs. Internally, these classes are used in JMeter for the Access Log Sampler which is a tool that simulates production traffic in development environments by parsing access logs and generating HTTP requests to a development web server based on the logs. You can probably reuse just the log parsing functionality for your own purposes.