|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
stdout is becoming large |
« View previous topic :: View next topic » |
Author |
Message
|
jr_martin |
Posted: Mon Sep 22, 2008 5:11 am Post subject: stdout is becoming large |
|
|
 Apprentice
Joined: 24 Aug 2005 Posts: 36 Location: NY
|
Hi,
The file size of <WorkPath>/components/<BrokerName>/<EG UUID>/stdout has reached 2GB, leaving broker in hung state. Is there a way to rollover this file once it reaches a certain limit, say 10MB? We are using log4j for JCN logging.
WMB runtime:6.0.0.3
WMB Toolkit:6.0.2
Thanks. |
|
Back to top |
|
 |
JLRowe |
Posted: Mon Sep 22, 2008 6:53 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
yes, look at the log4j manual for details |
|
Back to top |
|
 |
jr_martin |
Posted: Mon Sep 22, 2008 7:16 am Post subject: |
|
|
 Apprentice
Joined: 24 Aug 2005 Posts: 36 Location: NY
|
Using log4j we write to a different log file which we control by setMaxFileSize("10MB"). But stdout is being populated by broker, not log4j.Still this file size (stdout) can be controlled by log4j? |
|
Back to top |
|
 |
Tibor |
Posted: Tue Sep 23, 2008 3:23 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
You can solve it from a shell script, just look these steps:
Code: |
/var/mqsi/components/BKDEV/a6954a99-1801-0000-0080-a78dd7db42d9 $ ls -l
total 944
drwxrws--- 5 mqsi6dev mqbrkrs 256 Mar 10 2008 config
-rw-rw---- 1 mqsi6dev mqbrkrs 5552 Sep 16 13:16 stderr
-rw-rw---- 1 mqsi6dev mqbrkrs 473903 Sep 16 13:16 stdout
/var/mqsi/components/BKDEV/a6954a99-1801-0000-0080-a78dd7db42d9 $ fuser *
config:
stderr: 1789966
stdout: 1789966
/var/mqsi/components/BKDEV/a6954a99-1801-0000-0080-a78dd7db42d9 $ cp stderr stderr.`date +%Y%m%d%H%M%S`
/var/mqsi/components/BKDEV/a6954a99-1801-0000-0080-a78dd7db42d9 $ cp /dev/null stderr
/var/mqsi/components/BKDEV/a6954a99-1801-0000-0080-a78dd7db42d9 $ ls -l
total 944
drwxrws--- 5 mqsi6dev mqbrkrs 256 Mar 10 2008 config
-rw-rw---- 1 mqsi6dev mqbrkrs 0 Sep 23 13:15 stderr
-rw-r----- 1 mqsi6dev mqbrkrs 5552 Sep 23 13:15 stderr.20080923131506
-rw-rw---- 1 mqsi6dev mqbrkrs 473903 Sep 16 13:16 stdout
/var/mqsi/components/BKDEV/a6954a99-1801-0000-0080-a78dd7db42d9 $
|
The platform is AIX, but main steps are similar on other Unix.
HTH,
Tibor |
|
Back to top |
|
 |
jr_martin |
Posted: Tue Sep 23, 2008 4:46 am Post subject: |
|
|
 Apprentice
Joined: 24 Aug 2005 Posts: 36 Location: NY
|
Thanks, We will consider this option. |
|
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
|
|
|
|