The APR based Apache Tomcat Native library which allows optimal performance in production environmen

Jiri Pik July 18, 2019

Is this the library built by this script?

 

cd /usr/local/src/
wget http://mirror.easyname.ch/apache/httpd/httpd-2.4.39.tar.gz
tar -zxvf httpd-2.4.39.tar.gz
cd httpd-2.4.39
cd srclib

wget http://mirror.easyname.ch/apache/apr/apr-1.6.5.tar.gz
tar xvf apr-1.6.5.tar.gz
mv apr-1.6.5 apr

wget http://mirror.easyname.ch/apache/apr/apr-util-1.6.1.tar.gz
tar xvf apr-util-1.6.1.tar.gz
mv apr-util-1.6.1 apr-util


wget http://mirror.easyname.ch/apache//apr/apr-iconv-1.2.2.tar.gz
tar xvf apr-iconv-1.2.2.tar.gz
mv apr-iconv-1.2.2 apr-iconv

cd /usr/local/src/httpd-2.4.39
./configure --prefix=/opt/httpd --enable-http2 --with-nghttp2=/usr/local/lib --enable-so --with-ssl=/usr/bin/openssl --with-included-apr

make
make install

 

The outputs of this code are in /opt/httpd/libs.

If so, how do I make the location of the resulting APR libraries know to JIRA?

 

 

1 answer

0 votes
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2019

Dear @Jiri Pik ,

this article will help further.

So long

Thomas

Jiri Pik July 19, 2019

@Thomas Deiler - thank you.

So I have to manually build this?

And then:

1. Why does not the JIRA / Confluence contain it already?

2. I have to use the version of Tomcat bundled with JIRA/Confluence, right?

3. Once it's built I have to add the path to set-env as -Djava.library.path=/opt/apr/lib?
 

 

  1. Install Oracle java7:

    • sudo add-apt-repository ppa:webupd8team/java
    • sudo apt-get update
    • sudo apt-get install oracle-java7-installer
    • sudo apt-get install oracle-java7-set-default
  2. Install tomcat apr:

  3. Install tomcat tomcat-native:

Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 19, 2019

Dear @Jiri Pik ,

to be honest In the past 10 years I had never an issue with tomcat and ARP. Either you have a corrupted binary installation or you modified something.

Where and when did you get aware of ARP in context with Jira?

So long

Thomas

Jiri Pik July 19, 2019

I just looked at the catalina.log and saw it there as a warning. Googling showed that installing that APR should speed up JIRA, so my answer is YES, I would like to install it. 

 

Even Atlassian confirms that installing it could speed everything up!

Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 19, 2019

Dear @Jiri Pik 

following your last link:

There is no reason to take any action unless directed to do so by one of our support engineers as a result of a performance issue.

So long

Thomas

Jiri Pik July 19, 2019

Yeah, you can get from place A to place B either by a horse carriage or by a Ferrari F1 car.

 

I would prefer the latter.

Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 19, 2019

Dear @Jiri Pik ,

pretty fine. You can do it, it is just not recommended. But then please let us know about the performance boost afterwards. Eventually others are also interested.

Eventually this will help measuring the performance before and after:

Performance Testing Scripts

Jira Performance Testing - Available Tools

So long

Thomas

Suggest an answer

Log in or Sign up to answer