Giter Club home page Giter Club logo

Comments (5)

lorban avatar lorban commented on August 30, 2024

I can only think of two reasons that can cause logs to corrupt themselves:

  1. Have two instances of BTM use the exact same log files. Normally this is prevented by the use of file locks, but there are way around that, like storing the files on NFS. Don't do that: each JVM must have its unique pair of log files, and they should be on a locally-attached disk.

  2. Hardware failure. It's way more common that most people think, and unless you tell me that your files are sitting on ZFS and the latter isn't reporting any error this can never be ruled out.

from btm.

vka255 avatar vka255 commented on August 30, 2024

I just deleted the btm1.btm and btm2.btm files under work folder of tomcat instance and then my problem seems to be resolved, I am not sure if this is the right way to do?

from btm.

lorban avatar lorban commented on August 30, 2024

You've just thrown your atomicity out the window by doing that. Those files are as critical as your data itself, you should store them on a reliable and backed up disk.

The BTM jar does contain a swing UI you can use to analyse the contents of the log files, maybe you could start with that?

from btm.

vka255 avatar vka255 commented on August 30, 2024

I dint knew that the BTM jar has swing UI to analyse the contents of the log files, Thats great, How can I access that?

from btm.

lorban avatar lorban commented on August 30, 2024

Your best starting point is to read the code of this class: https://github.com/bitronix/btm/blob/master/btm/src/main/java/bitronix/tm/gui/Console.java

This is a quick an dirty tool I wrote to help me analyze the raw contents of the log files, and it's very bare bones: don't expect a nice polished tool that will do some magic to give you some precise answer but rather a clunky one that will point you to where in the files is the corruption. It's then up to you to understand the format and other implementation details (there are quite some comments in the source describing that) to try to figure out what happened.

It's tedious but rewarding once you know your way.

from btm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.