Tuesday 19 June 2007

Tomcat Native library

While working in IntelliJ and running Tomcat, I came across this message:

INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program
Files\Java\jdk1.5.0_09\bin;.;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Intel\DMIX;C:\javatools\maven-2.0.6\bin;C:\javatools\apache-ant-1.7.0\bin;C:\PROGRA~2\XRay;C:\Program
Files\QuickTime\QTSystem\;C:\Program
Files\jEdit;C:\Sun\jwsdp-2.0\jwsdp-shared\bin

I'd never heard of this library before, so I had a look around and found this:

http://tomcat.apache.org/tomcat-5.5-doc/apr.html

The file is called tcnative-1.dll and is here: http://tomcat.heanet.ie/native/

I placed it in WINNT\System32 and all is sweet. Not that I'd notice it
much, but startup seems to have decreased from 4 to 2 seconds. :P

No comments: