Use of Apache Portable Runtime with Jazz/Tomcat experience?
Hi,
I did some tests with RTC and RQM installations based on Tomcat, where I configured the Apache Portable Runtime Library (APR) for Tomcat.
http://tomcat.apache.org/tomcat-5.5-doc/apr.html
APR improves speed of Socket IO and SSL encryption.
It seems to be, that the connection handling and content delivery is significant faster especially, when multiple clients connecting at the same time to an Jazz Server based on Tomcat. I did a test with Rational Performance Tester where 350 clients connecting to a RQM instance in uniform distribution within 60 seconds and consuming randomly the testplan feed and the test case feed. With APR configured, the Server had no problems to handle that load within 2 minutes. Without APR the same RQM Jazz Server was using much more memory and the response times are where much higher, the server needed more than 5 minutes to complete all requests.
Should we recommend clients to use APR with Tomcat?
Does anybody made similar experience with APR?
Best Regards,
Rene Meyer
I did some tests with RTC and RQM installations based on Tomcat, where I configured the Apache Portable Runtime Library (APR) for Tomcat.
http://tomcat.apache.org/tomcat-5.5-doc/apr.html
APR improves speed of Socket IO and SSL encryption.
It seems to be, that the connection handling and content delivery is significant faster especially, when multiple clients connecting at the same time to an Jazz Server based on Tomcat. I did a test with Rational Performance Tester where 350 clients connecting to a RQM instance in uniform distribution within 60 seconds and consuming randomly the testplan feed and the test case feed. With APR configured, the Server had no problems to handle that load within 2 minutes. Without APR the same RQM Jazz Server was using much more memory and the response times are where much higher, the server needed more than 5 minutes to complete all requests.
Should we recommend clients to use APR with Tomcat?
Does anybody made similar experience with APR?
Best Regards,
Rene Meyer
2 answers
@renemeyer,
I placed the compiled dll, tcnative-1.dll in tomcat/bin folder and restarted the service, however I am still seeing the INFO statement in the logs that APR was not found in java library path. INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\IBM\RQM201\server\jre\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
What did I miss?
Thanks in advance
I placed the compiled dll, tcnative-1.dll in tomcat/bin folder and restarted the service, however I am still seeing the INFO statement in the logs that APR was not found in java library path. INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\IBM\RQM201\server\jre\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
What did I miss?
Thanks in advance
The APR native library does not work with Apache Tomcat version 5.5.28 delivered with the current RQM or RTC 2.0.x releases. See https://issues.apache.org/bugzilla/show_bug.cgi?id=47712.
To get it working you need to tweak the installation to use Tomcat 5.5.29 or higher but this is not supported.
The configuration for APR is well described under the following URL:
http://code.google.com/p/jianwikis/wiki/TomcatSSLWithAPR
In the RQM/RTC startup scripts you need to set -Duser.library.path=PATH_TO_LIBRAY so that the JVM can pickup the DLL on Windows or shared library on Linux.
Best Regards,
Ren Meyer
To get it working you need to tweak the installation to use Tomcat 5.5.29 or higher but this is not supported.
The configuration for APR is well described under the following URL:
http://code.google.com/p/jianwikis/wiki/TomcatSSLWithAPR
In the RQM/RTC startup scripts you need to set -Duser.library.path=PATH_TO_LIBRAY so that the JVM can pickup the DLL on Windows or shared library on Linux.
Best Regards,
Ren Meyer