|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Increase the number of error file of a QM |
« View previous topic :: View next topic » |
Author |
Message
|
gerimqseries |
Posted: Mon Aug 03, 2009 4:46 am Post subject: Error log size |
|
|
Apprentice
Joined: 03 Aug 2009 Posts: 30
|
Hi RaviKrG,
On Windows with MQ Explorer to increase the ...\qmgrs\QMNAME\errors\AMQERR01.LOG (also 02, 03) file size, You have to do it on the local machine!
If the QMGR shown as a remote in Your MQ explorer, the Properties >>> Extended area ends with "Distribution List".
If You do this on the local machine, where the QMGR resides the Properties >>> Extended shows "Error log size".
For example on AIX, you have to do it like others say: /var/mqm/qmgrs/QMNAME/qm.ini
Put the following stanza and property to reach 10MB size:
QMErrorLog:
ErrorLogSize=10485760
Geri |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Aug 03, 2009 12:33 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20767 Location: LI,NY
|
Are you sure that the log size you are hitting there refers to the errorlogs and not the redo logs? IIRC there was a post a ways back that talked about an environment variable.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gerimqseries |
Posted: Thu Aug 06, 2009 1:59 am Post subject: |
|
|
Apprentice
Joined: 03 Aug 2009 Posts: 30
|
|
Back to top |
|
 |
JosephGramig |
Posted: Thu Aug 06, 2009 8:35 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
For serious machines like UNIX:
Code: |
QMErrorLog:
ErrorLogSize=1048576
|
The environment variable does not work V6 and better.
If you are using a joke OS like Windose, here are the contents of a batch file I use to reduce aggravation:
Code: |
@echo off
if "%1" == "" goto :USAGE
amqmdain reg %1 -c add -s Channels -v MQIBindType=FASTPATH
amqmdain reg %1 -c add -s Channels -v AdoptNewMCA=ALL
amqmdain reg %1 -c add -s Channels -v AdoptNewMCACheck=ALL
amqmdain reg %1 -c add -s Channels -v AdoptNewMCATimeout=15
amqmdain reg %1 -c add -s Channels -v MaxActiveChannels=5000
amqmdain reg %1 -c add -s Channels -v MaxChannels=5000
amqmdain reg %1 -c add -s TCP -v KeepAlive=YES
amqmdain reg %1 -c add -s QMErrorLog -v ErrorLogSize=1048576
echo Stanzas Set
echo Stop and Start %1 for the stanzas to take effect
goto :END
:USAGE
echo "Usage:"
echo " WinStanzaSet.bat <QMGR>"
:END
|
And here is the one to burp out the interesting settings:
Code: |
@echo off
if "%1" == "" goto :USAGE
echo "Channels" > %1.stanzas.txt
amqmdain reg %1 -c display -s Channels -v * >> %1.stanzas.txt
echo "TCP" >> %1.stanzas.txt
amqmdain reg %1 -c display -s TCP -v * >> %1.stanzas.txt
echo "Log" >> %1.stanzas.txt
amqmdain reg %1 -c display -s Log -v * >> %1.stanzas.txt
echo "QMErrorLog" >> %1.stanzas.txt
amqmdain reg %1 -c display -s QMErrorLog -v * >> %1.stanzas.txt
echo Saved stanzas in %1.stanzas.txt
goto :END
:USAGE
echo "Usage:"
echo " WinStanzaRec.bat <QMGR>"
:END
|
|
|
Back to top |
|
 |
|
|
|
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
|
|
|
|