Wednesday, August 5, 2009

Java - Jackrabbit + activemq + tomcat in linux

Jackrabbit:
----------
Download apache jackrabbit jar file from browser : http://jackrabbit.apache.org/downloads.html
Command below to run jackrabbit in localhost port 8085
Jackrabbit needs to run before Operative.One application started :
java -jar jackrabbit-standalone-2.1.0.jar -p 8085 &

Activemq:
--------
Download apache activemq from browser : http://activemq.apache.org/download.html
untar activemq (tar -xvzf apache-activemq-*-bin.tar.gz)
Run activemq : a) cd [activemq_install_dir] b) ./bin/activemq &

Activemq memory leak issue prolong for longtime where consumer fails to read messages and hangs often. Explained neat by correcting memory limit in activemq.xml we can resolve this issue. Read article :

http://blogs.sourceallies.com/2014/10/activemq-memory-tuning/

How to add apache tomcat server :
---------------------------------
1) Download apache tomcat server 6.0 from browser : http://tomcat.apache.org/
2) Untar in your box. (tar -xvzf apache-tomcat-*.tar.gz)
3) In eclipse under server tab right click New -> Servers -> Apache (Tomcat v 6.0)-> Next give the apache tomcat located path and click finish.
4) In server tab apache tomcat will exist. Select right click and start. Stop also select tomcat and do stop. If tomcat is not getting stopped then find the process (ps -ef) and kill the process from terminal

In VM(Virtual Machine) Arguments before you start apache tomcat edit and update configuration in front heap memories to avoid Out of memory in tomcat start : -Xms512m -Xmx1024m -XX:MaxPermSize=256m

No comments :

// Below script tag for SyntaxHighLighter