#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# Copyright (c) 2000-2010 Oracle and/or its affiliates. All rights reserved.
#
# The contents of this file are subject to the terms of either the GNU
# General Public License Version 2 only ("GPL") or the Common Development
# and Distribution License("CDDL") (collectively, the "License").  You
# may not use this file except in compliance with the License.  You can
# obtain a copy of the License at
# https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
# or packager/legal/LICENSE.txt.  See the License for the specific
# language governing permissions and limitations under the License.
#
# When distributing the software, include this License Header Notice in each
# file and include the License file at packager/legal/LICENSE.txt.
#
# GPL Classpath Exception:
# Oracle designates this particular file as subject to the "Classpath"
# exception as provided by Oracle in the GPL Version 2 section of the License
# file that accompanied this code.
#
# Modifications:
# If applicable, add the following below the License Header, with the fields
# enclosed by brackets [] replaced by your own identifying information:
# "Portions Copyright [year] [name of copyright owner]"
#
# Contributor(s):
# If you wish your version of this file to be governed by only the CDDL or
# only the GPL Version 2, indicate your decision by adding "[Contributor]
# elects to include this software in this distribution under the [CDDL or GPL
# Version 2] license."  If you don't indicate a single choice of license, a
# recipient has the option to distribute your version of this file under
# either the CDDL, the GPL Version 2 or to extend the choice of license to
# its licensees as provided above.  However, if you add GPL Version 2 code
# and therefore, elected the GPL Version 2 license, then the option applies
# only if the new code is made subject to such option by the copyright
# holder.
#

Current list of supported properties:
---------------

# levels to run for memory mgt

imq.memory.levels=green,yellow,orange,red

#delta to determine when to stop gc'ing (if gccount > 0)
# The system run's gc (garbage collection) explicitly in the
# system in lower memory cases to determine the true
# memory value. If gccount >0, the system will iteratively
# run gc() until either: gcount is reached, or less than
# gcdelta bytes were freed in the last gc

imq.memory.gcdelta=1024

# level to determine when the broker enters a lower level.
# This prevents a broker from rapidly cycling in and out of a low memory
# state.  
# e.g The system enters orange at 60% of memory.  However the system
# will stay in the orange state until memory is at (60% -hysteresis)

imq.memory.hysteresis=1024

# an amount of overhead for the system.  The VM needs a certain amount 
# of memory to run well. (e.g. be able to load up new classes).
# Setting this value defines a max memory that we ever expect to use.
# the points where the broker enters/leaves the state is determined
# off of this value

imq.memory.overhead=10240

# the point to enter the level. e.g. by default the current levels
# on the broker are:
#   Green 0-59% of memory (max mem - overhead)
#   Yellow 60%-74% of memory
#   Orange 75%-89% of memory
#   Red 90-100% of memory
#   
imq.<level>.threshold=0

# the number of gc's to run to make sure you have entered a level

imq.<level>.gccount=0

# iteration count when additional gc's should be run (if needed)
# in a level
imq.<level>.gcitr=0

# base count used to control the # of messages sent to the system
# (may not be the actual value the broker sends .. used for some,
# although not all, memory values for calculation)

imq.<level>.count=1000

# the memory class to run at a specific level (who handles deciding
# what to clean up)
imq.<level>.classname=com.sun.messaging.jmq.jmsserver.util.memory.levels.Green


