Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Preferred OS: Linux 64 Bit - 2 CPU's and at lease least 3 GB Ram

File Limits Raise for "Open Files", this is for Ubuntu

...

Kodeblok
mysql> create database confluencejira CHARACTER SET utf8 COLLATE utf8_bin;
mysql> grant all privileges on confluencejira.* to confluence@localhostjira@localhost identified by '*******';
Query OK, 0 rows affected (0.00 sec)

 

Install binaries

Download Confluence JIRA from http://www.atlassian.com/software/confluencejira/download

Kodeblok
sh ./atlassian-confluence-5.1.1-x64.bin

Follow the required steps (remember path to ConfluenceJIRA_Home and ConfluenceJIRA_Data) and connect to the tomcat instance started

...

This file is found in the ConfluenceJIRA_Home/bin

Add support for UTF-8 File system by adding -Dfile.encoding=UTF-8 to the JAVA_OPTS:

Kodeblok
JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m $JAVA_OPTS -Djava.awt.headless=true -XX:NewSize=512m -Dfile.encoding=UTF-8"
export JAVA_OPTS

Tweaking of memory and usage comes in play here, I prefer this for a 4 GB Server:

Kodeblok
JAVA_OPTS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Djava.awt.headless=true -XX:NewSize=700m -XX:+UseParallelGC -Dsun.rmi.dgc.client.gcInterval=900000 -Dsun.rmi.dgc.server.gcInterval=900000 -XX:+DisableExplicitGC -Dfile.encoding=UTF-8"
export JAVA_OPTS

For saving Garbage Collection in /pack/confluence/logs/gc.log for debugging

Kodeblok
JAVA_OPTS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Djava.awt.headless=true -verbose:gc -Xloggc:/pack/confluence/logs/gc.log -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:NewSize=700m -XX:+UseParallelGC -Dsun.rmi.dgc.client.gcInterval=900000 -Dsun.rmi.dgc.server.gcInterval=900000 -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/backup/hdump -Dfile.encoding=UTF-8"
export JAVA_OPTS

 

server.server.xml

This file is found in ConfluenceJIRA_Home/conf

Binding to a fixed IP Address, add the address= to the connector. Also the port= can be changed (Under Linux only root can bond bind to 0-1023):

Kodeblok
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080" address="10.0.0.10" minProcessors="5"
                   maxProcessors="75"
                   enableLookups="false" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000"
                   useURIValidationHack="false" />

...

Kodeblok
<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true" scheme="https" proxyName="jira.example.com" proxyPort="443">

If the Tomcat needs to travel through symbolic links on the filesystem, add the allowLinking="true" to the context:

Kodeblok
<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true" allowLinking="true">

I

If the JIRA If the Confluence instance need to run below root /, change the path= parameter:

Kodeblok
<Context path="/confluencejira" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true" allowLinking="true">

...

Set up logrotate to avoid ever growing catalina.out log file. Here ConfluenceJIRA_Home is /opt/confluencejira, logs are rotated daily and keept for 7 days:

Kodeblok
title/etc/logrotate.d/confluence
/opt/confluencejira/logs/catalina.out {
    daily
    rotate 7 
    compress
    copytruncate
    delaycompress
    missingok
    size 10M
    notifempty
}