Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Setup 2 jira Instances on same host

Nuwan Vithanage May 16, 2018

Is it prossible to setup 2 jira Instances on Same host ?.

using different installation path, data folder path, DB. 

 

What I did 

setup JIRA home folder /opt/jira2

setup another DB jira2

Edit <installation-directory>\atlassian-jira\WEB-INF\classes\jira-application.properties

 

jira.home=/opt/jira2
Edit <installation-directory>\conf\server.xml

<Server port="8015" shutdown="SHUTDOWN"> ... <Service name="Catalina"> <Connector port="8090" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false" maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443" acceptCount="100" disableUploadTimeout="true"/>

 

./start-jira.sh

To run JIRA in the foreground, start the server with start-jira.sh -fg
executing as current user
.....
.... .NMMMD. ...
.8MMM. $MMN,..~MMMO.
.?MMM. .MMM?.

OMMMMZ. .,NMMMN~
.IMMMMMM. .NMMMN. .MMMMMN,
,MMMMMM$..3MD..ZMMMMMM.
=NMMMMMM,. .,MMMMMMD.
.MMMMMMMM8MMMMMMM,
.ONMMMMMMMMMMZ.
,NMMMMMMM8.
.:,.$MMMMMMM
.IMMMM..NMMMMMD.
.8MMMMM: :NMMMMN.
.MMMMMM. .MMMMM~.
.MMMMMN .MMMMM?.

Atlassian JIRA
Version : 7.7.1

If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide


Server startup logs are located in /opt/atlassian/jira2/logs/catalina.out
Using CATALINA_BASE: /opt/atlassian/jira2
Using CATALINA_HOME: /opt/atlassian/jira2
Using CATALINA_TMPDIR: /opt/atlassian/jira2/temp
Using JRE_HOME: /opt/atlassian/jira/jre
Using CLASSPATH: /opt/atlassian/jira2/bin/bootstrap.jar:/opt/atlassian/jira2/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/atlassian/jira2/work/catalina.pid
Existing PID file found during start.
Tomcat appears to still be running with PID 76351. Start aborted.
If the following process is not a Tomcat process, remove the PID file and try again:
UID PID PPID C STIME TTY TIME CMD
jira 76351 1 1 00:11 pts/0 00:00:19 /opt/atlassian/jira/jre/bin/java -Djava.util.logging.config.file=/opt/atlassian/jira2/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.

 

Please advise me 

2 answers

0 votes
Vishnukumar Vasudevan
Community Champion
May 17, 2018

As @Alexey Matveev said, Yes it is possible to run multiple instance of JIRA on same server depends on the server capacity. All you need to make sure is instances should be using different ports.

But, the error you are getting now is due to an existing PID file. Can you try after removing  or killing the existing PID file ? 

Please refer this post for more details - https://community.atlassian.com/t5/Jira-questions/Jira-stopped-Now-can-t-start/qaq-p/460666 

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2018

It is possible to install two Jira instances on the same host. The easiest way is to run Jira instances by docker.

If you do not want to use dockers then you just install two Jira instances and then you change the port number in the server.xml for one of the instances. That is all you have to change.

Nuwan Vithanage May 17, 2018

Thank you mate 

Shilpa Sanil
Contributor
June 27, 2019

Hi Alexey,

 

When i installed two instances in one server one in port 8080 & other in 8081 only one server is up at a time and becomes down.

Suggest an answer

Log in or Sign up to answer