[jpos-users] Log content description

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jpos-users] Log content description

pks!!@
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

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/df35d659-6b69-408f-adfe-529e71fc2e70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Log content description

Alejandro Revilla
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.


--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Log content description

chhil

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

-chhil

On Fri, Feb 3, 2017 at 8:16 AM, Alejandro Revilla <[hidden email]> wrote:
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.


--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefAzaXCGhdqdCqooKspTGrL2MPbpJ7KbBMevq%2Bd3W_27FA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Log content description

chhil
In reply to this post by pks!!@

On Fri, Feb 3, 2017 at 5:50 AM, pks!!@ <[hidden email]> 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

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefB7Sm699G-A2mq1-6hg09ppv6nUb34EKJaYaH2rVW9tdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...