You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by rabip <ra...@gmail.com> on 2015/02/26 11:48:58 UTC
Set heap space for activemq 5.11.0
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: http://activemq.2283324.n4.nabble.com/Set-heap-space-for-activemq-5-11-0-tp4692092.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Set heap space for activemq 5.11.0
Posted by rabip <ra...@gmail.com>.
anyone?
--
View this message in context: http://activemq.2283324.n4.nabble.com/Set-heap-space-for-activemq-5-11-0-tp4692092p4692102.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Set heap space for activemq 5.11.0
Posted by rabip <ra...@gmail.com>.
Thanks a lot Marc.
Appreciate your help.
Rabi
--
View this message in context: http://activemq.2283324.n4.nabble.com/Set-heap-space-for-activemq-5-11-0-tp4692092p4692105.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Set heap space for activemq 5.11.0
Posted by Marc Schöchlin <ms...@256bit.org>.
Hi,
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 logging.properties and
log4j.properties to get details
INFO: pidfile created :
'/home/mschoechlin/myroot/apache-activemq-5.11.0/data/activemq.pid' (pid
'7616')
$ 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.util.logging.config.file=logging.properties
-Djava.security.auth.login.config=/home/mschoechlin/myroot/apache-activemq-5.11.0/conf/login.config
-Dcom.sun.management.jmxremote -Djava.awt.headless=true
-Djava.io.tmpdir=/home/mschoechlin/myroot/apache-activemq-5.11.0/tmp
-Dactivemq.classpath=/home/mschoechlin/myroot/apache-activemq-5.11.0/conf:
-Dactivemq.home=/home/mschoechlin/myroot/apache-activemq-5.11.0
-Dactivemq.base=/home/mschoechlin/myroot/apache-activemq-5.11.0
-Dactivemq.conf=/home/mschoechlin/myroot/apache-activemq-5.11.0/conf
-Dactivemq.data=/home/mschoechlin/myroot/apache-activemq-5.11.0/data
-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
activemq
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
/usr/lib/jvm/java-7-openjdk-amd64/jre
Heap sizes: current=1005568k free=995061k max=1005568k
JVM args: -Xms1G -Xmx1G
-Djava.util.logging.config.file=logging.properties
-Djava.security.auth.login.config=/home/mschoechlin/myroot/apache-activemq-5.11.0/conf/login.config
-Dactivemq.classpath=/home/mschoechlin/myroot/apache-activemq-5.11.0/conf:
-Dactivemq.home=/home/mschoechlin/myroot/apache-activemq-5.11.0
-Dactivemq.base=/home/mschoechlin/myroot/apache-activemq-5.11.0
-Dactivemq.conf=/home/mschoechlin/myroot/apache-activemq-5.11.0/conf
-Dactivemq.data=/home/mschoechlin/myroot/apache-activemq-5.11.0/data
Extensions classpath:
[/home/mschoechlin/myroot/apache-activemq-5.11.0/lib,/home/mschoechlin/myroot/apache-activemq-5.11.0/lib/camel,/home/mschoechlin/myroot/apache-activemq-5.11.0/lib/optional,/home/mschoechlin/myroot/apache-activemq-5.11.0/lib/web,/home/mschoechlin/myroot/apache-activemq-5.11.0/lib/extra]
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]
Tasks:
browse - Display selected messages in a specified
destination.
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:
'service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi')
-Dactivemq.jmx.user=<user name>
-Dactivemq.jmx.password=<password>
Tasks provided by the sysv init script:
restart - stop running instance (if there is one), start new
instance
console - start broker in foreground, useful for debugging
purposes
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
/home/mschoechlin/myroot/apache-activemq-5.11.0/bin/env**
** 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
activemq-instance-<INSTANCENAME>.**
** This changes the configuration location to
/etc/default/activemq-instance-<INSTANCENAME> and**
** $HOME/.activemqrc-instance-<INSTANCENAME>.*
Regards
Marc
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: http://activemq.2283324.n4.nabble.com/Set-heap-space-for-activemq-5-11-0-tp4692092.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
GPG encryption available: 0x670DCBEC/pool.sks-keyservers.net
(https://www.256bit.org/keys/mschoechlin.pub.asc)