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 » stdout is becoming large

Post new topic  Reply to topic
 stdout is becoming large « View previous topic :: View next topic » 
Author Message
jr_martin
PostPosted: Mon Sep 22, 2008 5:11 am    Post subject: stdout is becoming large Reply with quote

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
View user's profile Send private message
JLRowe
PostPosted: Mon Sep 22, 2008 6:53 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

yes, look at the log4j manual for details
Back to top
View user's profile Send private message Send e-mail
jr_martin
PostPosted: Mon Sep 22, 2008 7:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Tibor
PostPosted: Tue Sep 23, 2008 3:23 am    Post subject: Reply with quote

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
View user's profile Send private message
jr_martin
PostPosted: Tue Sep 23, 2008 4:46 am    Post subject: Reply with quote

Apprentice

Joined: 24 Aug 2005
Posts: 36
Location: NY

Thanks, We will consider this option.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » stdout is becoming large
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.