Log content description

11 views
Skip to first unread message

pks!!@

unread,
Feb 3, 2017, 6:50:04 AM2/3/17
to jPOS Users
When I start my switch, some content prints in log file.

Here, i want some guide on these logs.
eg : i know very well it shows depolyed file but, what it writes to log after as blow given


<log realm="Q2.system" at="Fri Feb 03 13:22:29 IST 2017.562">
  <info>
    deploy:D:\SW\deploy\902_login_handler.xml
  </info>
</log>
<log realm="channel/127.0.0.1:8073" at="Fri Feb 03 13:22:29 IST 2017.577">
  <connect>
    localhost:8073
  </connect>
</log>
<log realm="com.switch.TransactionManager" at="Fri Feb 03 13:22:29 IST 2017.577">
  <info>
    sw-0 start
  </info>
</log>
<log realm="channel/127.0.0.1:36605" at="Fri Feb 03 13:22:29 IST 2017.577">
  <connect>
    localhost:36605
  </connect>
</log>
<log realm="com.switch.TransactionManager" at="Fri Feb 03 13:22:29 IST 2017.577">
  <info>
    sw-1 start
  </info>
</log>
<log realm="com.switch.TransactionManager" at="Fri Feb 03 13:22:29 IST 2017.577">
  <info>
    sw-2 start
  </info>
</log>
<log realm="com.switch.TransactionManager" at="Fri Feb 03 13:22:29 IST 2017.577">
  <info>
    sw-4 start
  </info>
</log>


Here , i want know what is mean of sw-0 start, sw-1 start etc.
also want some guide on below content from log.
what is mean of "sw-297:5" after <debug> tag & what indicates head=6, tail=6 ?

<log realm="com.switch.TransactionManager" at="Wed Jun 05 16:43:12 IST 2013.728">
  <debug>
    sw-297:5
            prepare: com.switch.prepare READONLY NO_JOIN
            ---------------------------------
            --------------------------------
      groupSelector: Purchase
            prepare: com.switch.createrequest ABORTED READONLY NO_JOIN
            ---------------------------------
            --------------------------------
    elapsed time: 1208ms
    head=6, tail=6
  </debug>
  
can i get this elapsed time in code.  

Please guide me.

Thanks & Regards
pK

Alejandro Revilla

unread,
Feb 3, 2017, 9:16:59 AM2/3/17
to jPOS Users
When you create your Context, you can set a variable there with a timestamp. Then on your last participant you can use that timestamp to subtract from the current timestamp and get your elapsed time. You may have a couple milliseconds of difference depending on your hardware, but will give you a very good idea of the elapsed time.


chhil

unread,
Feb 3, 2017, 10:28:09 AM2/3/17
to jpos-...@googlegroups.com

Any class that extends QbeanSupport goest to init start etc and the stage is getting logged.

-chhil

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3Dmg_g5bFf-Qbmf00-vnY%3D0J3zSVc4Xj-DusZGFWO64KWw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

chhil

unread,
Feb 3, 2017, 12:52:01 PM2/3/17
to jpos-...@googlegroups.com

On Fri, Feb 3, 2017 at 5:50 AM, pks!!@ <pankaj...@gmail.com> wrote:
Here , i want know what is mean of sw-0 start, sw-1 start etc.
also want some guide on below content from log.
what is mean of "
​​
sw-297:5" after <debug> tag & what indicates head=6, tail=6 ?



sw-297:5: Format is                         Thread.currentThread().getName()+ ":" + Long.toString(id)
id : is the count of the of the elements in the txn mgr queue (its the head).
The head and tail must be close to each other indicating that the transactions are being processed quickly by your txn mgr. If the head and tail are far apart means, your publishing of transactions to your txn mgr queue is faster than the consuming/processing of your transactions by your txn mgr participants.

-chhil

Reply all
Reply to author
Forward
0 new messages