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 » IBM MQ Installation/Configuration Support » How can I change the AMQERR01.LOG file size?

Post new topic  Reply to topic Goto page 1, 2  Next
 How can I change the AMQERR01.LOG file size? « View previous topic :: View next topic » 
Author Message
monkey
PostPosted: Wed Feb 15, 2006 3:19 am    Post subject: How can I change the AMQERR01.LOG file size? Reply with quote

Novice

Joined: 15 Feb 2006
Posts: 24
Location: London

I need to increase the size of the error logs from the default 256 MB, and also increase the number of files that are kept when they rotate to AMQERR02.LOG etc.

I can't seem to find any way to do this, I assumed it would be set in qm.ini but it isn't, and I can't find anything useful on the net relating to these files specifically.

I'm running 5.3 on Solaris.

Please help!

Thanks.
Back to top
View user's profile Send private message
monkey
PostPosted: Wed Feb 15, 2006 3:22 am    Post subject: Reply with quote

Novice

Joined: 15 Feb 2006
Posts: 24
Location: London

oop, think I created this in the wrong forum, can an admin please move it into the support forum please?
Thanks
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Feb 15, 2006 3:27 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

The Vienna server has this:

http://listserv.meduniwien.ac.at/cgi-bin/wa?A2=ind0303&L=mqser-l&D=1&T=0&P=61513

and this here:

http://www.mqseries.net/phpBB/viewtopic.php?p=86980&sid=764a637161c6db84713c279b13b48bce

Also, be aware that under windows you can supress messages and with V6 you can supress messages on unix as well...
_________________
-wayne


Last edited by wschutz on Wed Feb 15, 2006 3:30 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail AIM Address
monkey
PostPosted: Wed Feb 15, 2006 3:30 am    Post subject: Reply with quote

Novice

Joined: 15 Feb 2006
Posts: 24
Location: London

Fantastic! I'll try that out.
Does anyone know how to change the number of files kept from the default of 3?
Back to top
View user's profile Send private message
ramires
PostPosted: Wed Feb 15, 2006 3:45 am    Post subject: Reply with quote

Knight

Joined: 24 Jun 2001
Posts: 523
Location: Portugal - Lisboa

also here:

http://www-1.ibm.com/support/docview.wss?uid=swg21040402

Regards.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Feb 15, 2006 3:47 am    Post subject: Reply with quote

Grand High Poobah

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

There are 2 other parameters alongside LogFilePages. There are LogPrimaryFiles and LogSecondaryFiles. Primary files defaults to 3 & can be changed using the same techniques as log file size.

Check out the System Administration manual (or online equivalent) for details of possible system & performance implications. Don't forget to check the file system has enough space!
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Feb 15, 2006 3:49 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Vitor wrote:
There are 2 other parameters alongside LogFilePages. There are LogPrimaryFiles and LogSecondaryFiles. Primary files defaults to 3 & can be changed using the same techniques as log file size.

Check out the System Administration manual (or online equivalent) for details of possible system & performance implications. Don't forget to check the file system has enough space!
Those are for "transactional logging" done by the qmgr (ie /var/mqm/log ... files), not "error logging" (ie /var/mqm/qgmrs/xxx/errors ... files)
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Vitor
PostPosted: Wed Feb 15, 2006 3:56 am    Post subject: Reply with quote

Grand High Poobah

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

wschutz wrote:
Those are for "transactional logging" done by the qmgr (ie /var/mqm/log ... files), not "error logging" (ie /var/mqm/qgmrs/xxx/errors ... files)


Oops!

Sorry monkey - you can't get the staff these days....
Back to top
View user's profile Send private message
ramires
PostPosted: Wed Feb 15, 2006 4:01 am    Post subject: Reply with quote

Knight

Joined: 24 Jun 2001
Posts: 523
Location: Portugal - Lisboa

But... if you are using version 6, there are properties to control logs. They can be acessed under Websphere MQ Explorer -> <qmgr_name> -> Properties -> Extended.

You have there:

ErrorLogSize=maxsize
ExcludeMessages=msgIds
SuppressMessages=msgIds

I've not tried them. Look to MQSystem Administration Guide version 6 - chapter 9.

Regards. [/quote]
Back to top
View user's profile Send private message
monkey
PostPosted: Wed Feb 15, 2006 4:07 am    Post subject: Reply with quote

Novice

Joined: 15 Feb 2006
Posts: 24
Location: London

Vitor wrote:
wschutz wrote:
Those are for "transactional logging" done by the qmgr (ie /var/mqm/log ... files), not "error logging" (ie /var/mqm/qgmrs/xxx/errors ... files)


Oops!

Sorry monkey - you can't get the staff these days....


I wasn't sure whether you were right or not so I stayed quiet!
Back to top
View user's profile Send private message
monkey
PostPosted: Wed Feb 15, 2006 4:08 am    Post subject: Reply with quote

Novice

Joined: 15 Feb 2006
Posts: 24
Location: London

Thanks for all your swift replies!
I'll try out MQMAXERRORLOGSIZE later.

Anyone know how to increase the number of files above the default of only 3?
Back to top
View user's profile Send private message
markt
PostPosted: Wed Feb 15, 2006 4:37 am    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 508

>> Anyone know how to increase the number of files above the default of only 3?

You can't.
Back to top
View user's profile Send private message
monkey
PostPosted: Wed Feb 15, 2006 5:32 am    Post subject: Reply with quote

Novice

Joined: 15 Feb 2006
Posts: 24
Location: London

It works.
Just set it in the mqm user's profile and retart mq
job done.

Shame about not being able to increase the number of files, an odd restriction! Gonna have to come up with a cunning script!
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Feb 15, 2006 9:31 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

I guess that one question wasn't aksed. Why. What reason do you need for having more/bigger logs.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
monkey
PostPosted: Thu Feb 16, 2006 12:42 am    Post subject: Reply with quote

Novice

Joined: 15 Feb 2006
Posts: 24
Location: London

No need to make it a global encironment variable, no other users run mq processes, we don't use inetd. Thanks for the tip though.

The reason we need bigger logs is simply that we want logs to be around for longer. We have had in the past had some major problems which cause a lot of data to be written to the logs so by the time we get to the logs to find the initial error - they have rotated and the initial error is gone.

The increased size will just give us more time and information.
This combined with a script to copy AMQERR03.LOG to a datestamped file when it is changed should give us plenty of history on the box. (any suggestions for the script greatly appreciated!) And daily backups should then make sure we never lose the logs.

256 is pretty small for a log file, especially when I'm used to dealing with webserver logs which can be huge! Although I take your point, under normal conditiond MQ doesn't write a lot to these logs, it's never under normal conditions that we need to look at these logs.
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 » IBM MQ Installation/Configuration Support » How can I change the AMQERR01.LOG file size?
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.