Charlie Andrews
Charlie Andrews

Reputation: 1477

ActiveMQ seems to start but then I can't see it with netstat or ps

I start up ActiveMQ anid this is the output:

INFO: Loading '/etc/default/activemq'
INFO: Using java '/usr/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/opt/activemq/data/activemq-localhost.pid' (pid '5282')

But then netstat -a | grep 61616 returns nothing, and the pid that it named when it started is not included when I run the ps command. What could be causing this to happen?

Upvotes: 3

Views: 4408

Answers (3)

user3119935
user3119935

Reputation: 31

You should try to delete (or better rename to .old like suggested earlier) the /etc/default/activemq file. This fixed the problem for me.

Upvotes: -1

chollida
chollida

Reputation: 7894

Two things that I use.

1) What Tim said in his answer. Set your activemq instance to start in console mode via activemq console. Other wise it will start logging to /dev/null \

2) Crank yoru debug output level up so you can see more detail via log4j.logger.org.apache.activemq=DEBUG

Upvotes: 0

Tim Bish
Tim Bish

Reputation: 18431

To debug startup failures is good to run the broker in foreground mode via:

./activemq console

This will cause errors to be logged on the console. You can also check the logfile in the data folder in your activemq installation dir.

Upvotes: 3

Related Questions