How to read weblogic tlog files ?
Maxence Button's Blog |
March 26, 2008 6:30 AM
|
Comments (5)
What are tlog files ? Tlog files are the files used by weblogic to keep a trace of current transactions. For example, when an instance is restarted, the tlog files are used to perform the second step of a two-phase commit on a transaction that was in progress. Sometimes, when a transaction is corrupted, you've got to delete thes files to get rid of the phantom transaction. There is no need to restart a server to have them recreated. Where are they located ? Tlog files are created for every server. You can thus find some in your server directory. Ex : myDomain / servers / myServer / logs  How to read them ? These files are not human-readable. But BEA provides a tool to decrypt them. This tool is very useful to have a trace of running transactions, and know what's going on on your server. Like every other tool BEA provides, it's part of the package "weblogic". It can be found : - on WLS 8.1 and below, in the weblogic.jar
- on WLS 9 and above, in the module com.bea.core.transaction_2.0.1.0.jar
Usage: java weblogic.transaction.internal.TransactionLoggerImpl <server_tlog_path> <server_tlog_path> - path of server transaction log files e.g. /weblogic/config/mydomain/myserver/myserver To use it, I would advise to go directly where the tlog files are and type the following command : \user_projects\sample\myserver > java weblogic.transaction.internal.TransactionLoggerImpl myserver The result of this command should display something like that : If available, the information will be displayed like shown below : ![clip_image002[7]](http://dev2dev.bea.com/blog/mbutton/WindowsLiveWriter/Howtoreadweblogictlogfiles_75B9/clip_image002%5B7%5D_thumb.jpg)
Comments
Comments are listed in date ascending order (oldest first) | Post Comment
-
Hi
Maybe you should try to run setWLSEnv.sh first. ($WL_HOME/server/bin/setWLSEnv.sh)
Tell me whether it works or not.
Posted by: mbutton on May 28, 2008 at 4:40 AM
-
Hi,
I got error message when try following command:
1) root@vantage:/opt/bea70/user_projects/mydomain/node2# java weblogic.transaction.internal.TransactionLoggerImpl node2
or
2) root@vantage:/opt/bea70/user_projects/mydomain/node2# java weblogic.transaction.internal.TransactionLoggerImpl /opt/bea70/user_projects/mydomain/node2/
"Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/transaction/internal/TransactionLoggerImpl"
- Im using WLS70 SP7 (clustring server) on Ubuntu 710
- tlog file at /opt/bea70/user_projetcs/mydomain/node2
Please help!
Posted by: penril01 on May 28, 2008 at 12:42 AM
-
Thanks for the constructive input ! :)
Posted by: mbutton on March 27, 2008 at 5:41 AM
-
With well formatted tags ;-)
On WebLogic 9.2 tlogs are in a file store.
So the command is:
cd yourDomainRootDirectory\bin
setDomainEnv.cmd
java weblogic.transaction.internal.StoreTransactionLoggerImpl .\servers\MywlsServerName\data\store\default MywlsServerName
Yann
Posted by: lodhas on March 27, 2008 at 4:16 AM
-
On WebLogic 9.2 tlogs are in a file store.
So the command is:
cd yourDomainRootDirectory\bin
setDomainEnv.cmd
java weblogic.transaction.internal.StoreTransactionLoggerImpl .\servers\MywlsServerName\data\store\default MywlsServerName
Yann
Posted by: lodhas on March 27, 2008 at 4:14 AM
|