|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Trace Node |
« View previous topic :: View next topic » |
Author |
Message
|
fcotait |
Posted: Wed Oct 08, 2003 10:07 am Post subject: Trace Node |
|
|
 Acolyte
Joined: 28 Feb 2002 Posts: 63 Location: Sao Paulo - Brazil
|
Hi all,
I have some messages flows with node trace (to file).
When I delete this traces, the broker didn´t re-create these files, only when I do a deploy the trace files are created again.
This happend only in AIX. On Windows I can delete traces files and the broker re-create the files.
My WMQI is 2.1 CSD 04 on AIX 4.3.3
Any Idea ?
Thanks _________________ Filipe Cotait
IBM Certified System Administrator - WebSphere MQ
IBM Certified Specialist - MQSeries, WebSphere MQ Integrator |
|
Back to top |
|
 |
wmqiguy |
Posted: Wed Oct 08, 2003 11:02 am Post subject: |
|
|
 Centurion
Joined: 09 Oct 2002 Posts: 145 Location: Florida
|
I don't know exactly what the broker is doing, but I can confirm that we have this behavior on a Solaris machine also. Kind of a pain, but I usually just vi the file and then dd the required number of lines, instead of deleting it. Example for a 240 line file:
<esc>240dd
If you aren't too picky about a blank line at the beginning:
echo > yourFile.txt
This will replace your file with only a HEX 0a in the file.
Good times.....good times.  |
|
Back to top |
|
 |
kolban |
Posted: Wed Oct 08, 2003 12:41 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
I can imagine what is going on here ...
When the TRACE nodes are reached, they open the file and cache/keep the file open. In Unix, if an application (like WMQI/Message Broker) has an open file handle and the file is deleted externally, the application is unaware that has happened and does not close/re-open the file. As such, you lose the data that is logged. |
|
Back to top |
|
 |
fcotait |
Posted: Wed Oct 08, 2003 1:05 pm Post subject: |
|
|
 Acolyte
Joined: 28 Feb 2002 Posts: 63 Location: Sao Paulo - Brazil
|
wmqiguy/Kolban
Now I understood what happen when I delete Traces Files
Thanks very much _________________ Filipe Cotait
IBM Certified System Administrator - WebSphere MQ
IBM Certified Specialist - MQSeries, WebSphere MQ Integrator |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|