Issue #1814: Change baseline memory configuration and baseline default log configuration
Change-Id: I83969cb5ff2962fe293b8cfee02c4b7c4108f2c3 Former-commit-id:0c869ee231
[formerly 6ce6d876a153a6fe0fd1c4939dae8b719ec470e3] Former-commit-id:78b230aaaf
This commit is contained in:
parent
85bebd026e
commit
d967301cfc
2 changed files with 131 additions and 1 deletions
130
rpms/awips2.qpid/0.18/SOURCES/log4j.xml
Normal file
130
rpms/awips2.qpid/0.18/SOURCES/log4j.xml
Normal file
|
@ -0,0 +1,130 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
-
|
||||
- Licensed to the Apache Software Foundation (ASF) under one
|
||||
- or more contributor license agreements. See the NOTICE file
|
||||
- distributed with this work for additional information
|
||||
- regarding copyright ownership. The ASF licenses this file
|
||||
- to you under the Apache License, Version 2.0 (the
|
||||
- "License"); you may not use this file except in compliance
|
||||
- with the License. You may obtain a copy of the License at
|
||||
-
|
||||
- http://www.apache.org/licenses/LICENSE-2.0
|
||||
-
|
||||
- Unless required by applicable law or agreed to in writing,
|
||||
- software distributed under the License is distributed on an
|
||||
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
- KIND, either express or implied. See the License for the
|
||||
- specific language governing permissions and limitations
|
||||
- under the License.
|
||||
-
|
||||
--><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
|
||||
|
||||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="null" threshold="null">
|
||||
<appender class="org.apache.log4j.QpidCompositeRollingAppender" name="ArchivingFileAppender">
|
||||
<!-- Ensure that logs always have the DatePattern appended to the filename.
|
||||
DEFAULT IF NOT CONFIGURED: true -->
|
||||
<param name="StaticLogFileName" value="true"/>
|
||||
<param name="file" value="${QPID_WORK}/log/${logprefix}qpid${logsuffix}.log"/>
|
||||
<!-- Style of rolling to use, by:
|
||||
File Size(1)
|
||||
Date(2)
|
||||
Both(3)
|
||||
|
||||
When Date (or Both) is enabled then the value of DatePattern will determine
|
||||
when the new file is made. e.g. a DatePattern of "'.'yyyy-MM-dd-HH-mm"
|
||||
which includes minutes will cause a new backup file to be made every minute.
|
||||
|
||||
DEFAULT IF NOT CONFIGURED: 3 -->
|
||||
<param name="RollingStyle" value="2"/>
|
||||
<!-- Set the count direction:
|
||||
Negative numbers mean backups are numbered <latest>, .0, .1, .2,..., .n
|
||||
0 means backup is DatePattern stamped and followed with a Positive number
|
||||
if the DatePattern stamp clashes with other existing backups.
|
||||
Positive numbers mean backups are numbered 0, 1, 2, ..., n, <latest>
|
||||
|
||||
DEFAULT IF NOT CONFIGURED: -1 -->
|
||||
<param name="CountDirection" value="0"/>
|
||||
<!-- Maximum File Size:
|
||||
DEFAULT IF NOT CONFIGURED: 10MB -->
|
||||
<param name="MaxFileSize" value="500MB"/>
|
||||
<!-- Date Pattern:
|
||||
DEFAULT IF NOT CONFIGURED: "'.'yyyy-MM-dd" -->
|
||||
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
|
||||
<!-- Maximum number of backup files:
|
||||
0 means no backups
|
||||
-1 means infinite backups
|
||||
|
||||
DEFAULT IF NOT CONFIGURED: 0 -->
|
||||
<param name="MaxSizeRollBackups" value="14"/>
|
||||
<!-- Compress(gzip) the backup files to the backup location:
|
||||
DEFAULT IF NOT CONFIGURED: FALSE -->
|
||||
<param name="CompressBackupFiles" value="true"/>
|
||||
<!-- Compress the backup files using a second thread:
|
||||
DEFAULT IF NOT CONFIGURED: FALSE -->
|
||||
<param name="CompressAsync" value="true"/>
|
||||
<!-- Backup Location:
|
||||
DEFAULT IF NOT CONFIGURED: same dir as log file -->
|
||||
<param name="backupFilesToPath" value="${QPID_WORK}/log"/>
|
||||
|
||||
<layout class="org.apache.log4j.PatternLayout">
|
||||
<param name="ConversionPattern" value="%d %-5p [%t] (%F:%L) - %m%n"/>
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
<appender class="org.apache.log4j.FileAppender" name="FileAppender">
|
||||
<param name="File" value="${QPID_WORK}/log/${logprefix}qpid${logsuffix}.log"/>
|
||||
<param name="Append" value="false"/>
|
||||
|
||||
<layout class="org.apache.log4j.PatternLayout">
|
||||
<param name="ConversionPattern" value="%d %-5p [%t] (%F:%L) - %m%n"/>
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
<appender class="org.apache.log4j.ConsoleAppender" name="STDOUT">
|
||||
<layout class="org.apache.log4j.PatternLayout">
|
||||
<param name="ConversionPattern" value="%d %-5p [%t] (%F:%L) - %m%n"/>
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
<!-- Provide warnings to standard output -->
|
||||
<category additivity="true" name="org.apache.qpid">
|
||||
<priority value="info"/>
|
||||
</category>
|
||||
|
||||
<!-- Enable info messages for the status-logging hierarchy -->
|
||||
<logger additivity="true" name="qpid.message">
|
||||
<level value="warn"/>
|
||||
</logger>
|
||||
|
||||
<!-- Subscription state may toggle frequently for clients with low prefetch
|
||||
so switch off this operational logging by default-->
|
||||
<logger additivity="true" name="qpid.message.subscription.state">
|
||||
<level value="off"/>
|
||||
</logger>
|
||||
|
||||
<!-- Enable log messages for the queue notifications -->
|
||||
<logger additivity="true" name="org.apache.qpid.server.queue.NotificationCheck">
|
||||
<level value="info"/>
|
||||
</logger>
|
||||
|
||||
<!-- Examples of additional logging settings -->
|
||||
<!-- Used to generate extra debug. See debug.log4j.xml -->
|
||||
|
||||
<category additivity="true" name="org.apache.qpid.server.store">
|
||||
<priority value="warn"/>
|
||||
</category>
|
||||
|
||||
<!-- Set the commons logging that the XML parser uses to WARN, it is very chatty at debug -->
|
||||
<logger name="org.apache.commons">
|
||||
<level value="WARN"/>
|
||||
</logger>
|
||||
|
||||
<!-- Log all info events to file -->
|
||||
<root>
|
||||
<priority value="info"/>
|
||||
<!--appender-ref ref="FileAppender"/-->
|
||||
<appender-ref ref="ArchivingFileAppender"/>
|
||||
</root>
|
||||
|
||||
</log4j:configuration>
|
|
@ -29,7 +29,7 @@ TODAY=`/bin/date +%Y%m%d`
|
|||
|
||||
QPID_HOME=/awips2/qpid
|
||||
|
||||
QPID_JAVA_MEM=-Xmx3072m
|
||||
export QPID_JAVA_MEM=-Xmx2048m
|
||||
|
||||
start() {
|
||||
isRunning=`ps -ef | grep org.apache.qpid.server.Main | grep -c "PNAME=QPBRKR "`
|
||||
|
|
Loading…
Add table
Reference in a new issue