activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Schöchlin>
Subject Re: Set heap space for activemq 5.11.0
Date Thu, 26 Feb 2015 14:28:56 GMT

thats not true :-)

$ tar zxf apache-activemq-5.11.0-bin.tar.gz
$ cd apache-activemq-5.11.0/bin/
$ ./activemq start
INFO: Loading '/home/mschoechlin/myroot/apache-activemq-5.11.0/bin/env'
INFO: Using java '/usr/bin/java'
INFO: Starting - inspect logfiles specified in and to get details
INFO: pidfile created :
'/home/mschoechlin/myroot/apache-activemq-5.11.0/data/' (pid
$ ps auxwww|grep activemq
mschoec+  7616 52.0  2.6 3166584 209988 pts/0  Sl   15:23   0:03
/usr/bin/java -Xms1G -Xmx1G -Djava.awt.headless=true
-jar /home/mschoechlin/myroot/apache-activemq-5.11.0/bin/activemq.jar start
mschoec+  7646  0.0  0.0  16708  2176 pts/0    S+   15:23   0:00 grep

If you need another setting, you can modify the settings i.e. in
apache-activemq-5.11.0/bin/env or create one of the files mentioned in
the help output of the script:

$ ./activemq
INFO: Loading '/home/mschoechlin/myroot/apache-activemq-5.11.0/bin/env'
INFO: Using java '/usr/bin/java'
Java Runtime: Oracle Corporation 1.7.0_75
  Heap sizes: current=1005568k  free=995061k  max=1005568k
    JVM args: -Xms1G -Xmx1G
Extensions classpath:
ACTIVEMQ_HOME: /home/mschoechlin/myroot/apache-activemq-5.11.0
ACTIVEMQ_BASE: /home/mschoechlin/myroot/apache-activemq-5.11.0
ACTIVEMQ_CONF: /home/mschoechlin/myroot/apache-activemq-5.11.0/conf
ACTIVEMQ_DATA: /home/mschoechlin/myroot/apache-activemq-5.11.0/data
Usage: ./activemq [--extdir <dir>] [task] [task-options] [task data]

    browse                   - Display selected messages in a specified
    bstat                    - Performs a predefined query that displays
useful statistics regarding the specified broker
    create                   - Creates a runnable broker instance in the
specified path.
    decrypt                  - Decrypts given text
    dstat                    - Performs a predefined query that displays
useful tabular statistics regarding the specified destination type
    encrypt                  - Encrypts given text
    export                   - Exports a stopped brokers data files to
an archive file
    list                     - Lists all available brokers in the
specified JMX context
    purge                    - Delete selected destination's messages
that matches the message selector
    query                    - Display selected broker component's
attributes and statistics.
    start                    - Creates and starts a broker using a
configuration file, or a broker URI.
    stop                     - Stops a running broker specified by the
broker name.

Task Options (Options specific to each task):
    --extdir <dir>  - Add the jar files in the directory to the classpath.
    --version       - Display the version information.
    -h,-?,--help    - Display this help information. To display task
specific help, use Main [task] -h,-?,--help

Task Data:
    - Information needed by each specific task.

JMX system property options:
    -Dactivemq.jmx.url=<jmx service uri> (default is:
    -Dactivemq.jmx.user=<user name>

Tasks provided by the sysv init script:
    restart         - stop running instance (if there is one), start new
    console         - start broker in foreground, useful for debugging
    status          - check if activemq process is running

*Configuration of this script:**
**The configuration of this script is read from the following files:**
**    **/etc/default/activemq /home/mschoechlin/.activemqrc
**    This script searches for the files in the listed order and reads
the first available file.**
**    Modify /home/mschoechlin/myroot/apache-activemq-5.11.0/bin/env or
create a copy of that file on a suitable location.**
**    To use additional configurations for running multiple instances on
the same operating system**
**    rename or symlink script to a name matching to
**    This changes the configuration location to
/etc/default/activemq-instance-<INSTANCENAME> and**
**    $HOME/.activemqrc-instance-<INSTANCENAME>.*


Am 26.02.2015 um 11:48 schrieb rabip:
> Hi,
> I see that activeMQ uses the default heap space of the JVM. Is there a way
> to set the heap space for activeMQ explicitly. I am using the activeMQ
> 5.11.0 on a linux box.
> Rabi
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

GPG encryption available: 0x670DCBEC/

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message