Wednesday 1 February 2012

Using Tomcat Native DLL

Most of the time this error message goes unnoticed:

INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: C:\...


Time to deal with it!

Downloaded tcnative-1.dll from http://www.apache.org/dist/tomcat/tomcat-connectors/native/1.1.22/binaries/win64/

Here you'll find the binaries for Windows 64-bit platform.

  • x64 is for AMD64/EMT64 architecture (Most current 64 bits architectures).
  • ia64 is for Intel IA64 architecture (Itanium only). 
If you pick the wrong one you will recieve a warning mesage saying you have the wrong architecture.
Go get the other and restart.

I placed mine in the JDK folder as follows "C:\development\java\jdk1.6.0_25\bin" so that it will be reused for all Tomcat instances.

I have notices about a 10% speed up but that is only on the process start. Begining Liferay with the dll gave "INFO: Server startup in 95164 ms", while with out gave "INFO: Server startup in 101845 ms".
Which is 6.7 seconds faster!
I'll have that thanks!

No comments:

Post a Comment