"Jacob Rhoden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Are there any web sites that show/compare the performance of a plain > install vs adding the native libraries for tomcat? How many of you guys > actually use the native libraries in production, ie is this common or > uncommon? >
Other than for comet support (which other people have answered), the answer is very heavily dependant on your OS and Java vendor, and what your app mainly serves. For low-volume sites with mostly dynamic content it is likely to be a bit slower (since it is designed for high-volume sites). If you serve a lot of large static files, then it is likely to be faster on most OSs (due to being able to use sendfile). You get the biggest gain if you are running an older Linux kernal with lots of large static files on a moderate to high volume site. You will still get a decent gain if you are running an older Linux kernal with mostly dynamic content. I haven't seen hard figures on using the latest Linux kernal, but the gains will likely be smaller than with the older kernals. On Windows, I think it is close to break-even for a dynamic site, but with static content you will gain. On Solaris (with Sun's JVM) you will probably lose on a dynamic site. Basically, what the native libraries give you is the ability to use sendfile to serve static files, and that there will usually be many fewer Threads blocking on reads. The downside of using the native libraries is that the JNI boundry will cause a performance hit (at least with Sun's JVM). So for a dynamic site, it pretty much comes down to which costs more: Have 1000 Threads blocking on reads before they timeout, or the JNI hit. On Solaris, Windows, and newer Linuxes, the cost of 1000 Threads isn't all that high. > Best Regards, > Jacob > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]