ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Trace does not work without re-deployment.

Post new topic  Reply to topic Goto page 1, 2  Next
 Trace does not work without re-deployment. « View previous topic :: View next topic » 
Author Message
Cogito-Ergo-Sum
PostPosted: Sun Jun 05, 2011 10:24 pm    Post subject: Trace does not work without re-deployment. Reply with quote

Master

Joined: 07 Feb 2006
Posts: 293
Location: Bengaluru, India

I am facing a peculiar problem. I have a Trace node that that creates a trace file (at the mentioned location) correctly only once. I have to re-deploy the .bar again to generate the next trace. Without re-deploying, I do not see any errors in syslog. I even wired Exception terminal to a different trace node. Nothing.

What am I missing ?
_________________
ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jun 06, 2011 12:12 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

What are you doing to resolve the file handle(s) that you have suddenly left dangling in mid air?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
PostPosted: Mon Jun 06, 2011 1:53 am    Post subject: Reply with quote

Master

Joined: 07 Feb 2006
Posts: 293
Location: Bengaluru, India

Quote:
What are you doing to resolve the file handle(s) that you have suddenly left dangling in mid air?

I am sorry, I do not follow you ...
_________________
ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes
Back to top
View user's profile Send private message
rekarm01
PostPosted: Mon Jun 06, 2011 3:17 am    Post subject: Re: Trace does not work without re-deployment. Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

Cogito-Ergo-Sum wrote:
What am I missing?

Is somebody deleting the trace file after the first transaction?

For Unix file systems, once the execution group process opens the trace file for writing, deleting the file won't stop the execution group from writing to it. The OS detaches the file from the file system, (so that new processes can't open the trace file to read it), but the OS won't actually delete the file until the execution group closes it.

The net effect of redeploying a barfile is to close the trace file, and then re-open (re-create) it.

Other file systems may behave similarly.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
PostPosted: Mon Jun 06, 2011 9:28 am    Post subject: Reply with quote

Master

Joined: 07 Feb 2006
Posts: 293
Location: Bengaluru, India

Quote:
Is somebody deleting the trace file after the first transaction?


Well, yes, I am !

If I don't, then the trace file keeps getting appended, causing the file to grow very huge and difficult to walk through.
_________________
ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jun 06, 2011 9:44 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Cogito-Ergo-Sum wrote:
Quote:
Is somebody deleting the trace file after the first transaction?


Well, yes, I am !

If I don't, then the trace file keeps getting appended, causing the file to grow very huge and difficult to walk through.


Thats why you should be logging using DailyRollingFileAppender. Not Trace Nodes.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Jun 06, 2011 9:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Cogito-Ergo-Sum wrote:
If I don't, then the trace file keeps getting appended, causing the file to grow very huge and difficult to walk through.


So why are you outputting the trace to an external file location? Are you actually trying to trace something, or use this as a poor man's audit facility? If the latter, there are a number of discussions on this you may find useful where the consensus is that a Trace node is not an ideal mechanism for this.

Someone else will pop up and extoll the virtues of log4j any moment, so I won't bother.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jun 06, 2011 9:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Vitor wrote:
Someone else will pop up and extoll the virtues of log4j any moment, so I won't bother.


1 minute too slow.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 06, 2011 9:47 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
Cogito-Ergo-Sum wrote:
Quote:
Is somebody deleting the trace file after the first transaction?


Well, yes, I am !

If I don't, then the trace file keeps getting appended, causing the file to grow very huge and difficult to walk through.


Thats why you should be logging using DailyRollingFileAppender. Not Trace Nodes.


Or at least write to User Trace, which is handled in a circular manner by broker - but does take extra effort to retrieve.

Please also note that lancelotlinc is suggesting a solution that requires that you know Java.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jun 06, 2011 9:48 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Vitor wrote:
Vitor wrote:
Someone else will pop up and extoll the virtues of log4j any moment, so I won't bother.


1 minute too slow.


Lots of laughs out loud Vitor. When are we going to get a chance to work together? Seems we would feed energy and be a hoot.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Jun 06, 2011 9:53 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
Please also note that lancelotlinc is suggesting a solution that requires that you know Java.


Continuing his assumption that everybody does, as part of a subtle plan to make me feel inadequate.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 06, 2011 10:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
mqjeff wrote:
Please also note that lancelotlinc is suggesting a solution that requires that you know Java.


Continuing his assumption that everybody does, as part of a subtle plan to make me feel inadequate.


It doesn't appear to be that subtle.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jun 06, 2011 10:13 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
It doesn't appear to be that subtle.


Remember he's only 40 miles from Peoria, where this probably plays as subtle.

And you can always nip into St Mary's for absolution. If you can find a parking spot. Or navigate the one way system (only so many ways over the I-74).
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
joebuckeye
PostPosted: Mon Jun 06, 2011 10:31 am    Post subject: Reply with quote

Partisan

Joined: 24 Aug 2007
Posts: 365
Location: Columbus, OH

Cogito-Ergo-Sum wrote:
Quote:
Is somebody deleting the trace file after the first transaction?


Well, yes, I am !

If I don't, then the trace file keeps getting appended, causing the file to grow very huge and difficult to walk through.


If you want to clear the file without removing the file handle do this:

cp /dev/null <your filename>

It will zero out the contents of the file without deleting it or needing a bar deployment to get your trace logging back.

You will need to make sure that you have write access to the file though or it won't work.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jun 06, 2011 11:10 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

joebuckeye wrote:

If you want to clear the file without removing the file handle do this:

cp /dev/null <your filename>

It will zero out the contents of the file without deleting it or needing a bar deployment to get your trace logging back.

You will need to make sure that you have write access to the file though or it won't work.


This is SOP for rotating Unix type logfiles.

to improve the performance move (mv) the old file out of the way, then do the cp /dev/null then you can safely copy etc the original file to wherever you want.
You should also set the permissions of the new logfile correctly so that users can browse the file while it is being written to.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Trace does not work without re-deployment.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.