Browsing articles in "Java"

Setting up Glassfish behind Apache

Apr 11, 2011   //   by aarias   //   Blog, IT, Java  //  No Comments

I’ve been using Glassfish Open Source 3.1 for a short while now, and I think it’s a great application server.  It has a nice Web Admin Panel and a powerful shell command to manage the server during runtime (without needing to tweak XML files on your own), depending if you have the Web Admin Panel port available or not at your location. Read more >>

Apache Tomcat and APR in a Linux Server

Apr 4, 2011   //   by aarias   //   Blog, Java  //  No Comments

When you do a fresh installation of Apache Tomcat, you’ll notice the following error message in the logfile:


org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which
allows optimal performance in production environments
was not found on the java.library.path

APR stands for Apache Runtime Portable Project which provides a consistent API to the native environment where the application server is running (either Linux, Windows, etc).  This means that Tomcat itself contains this native library, but it is disabled by default, since you need to install first the APR. It is recommended to perform the following steps as root or a sudoer user, since you need access to common and restricted resources in the server

Read more >>

Java VisualVM to profile a remote server

Mar 7, 2011   //   by aarias   //   Blog, Java  //  No Comments

Since Version 1.5, Sun’s JDK includes a nice profiling tool called VisualVM, intended to be used by developers, sysadmins and any person that needs to troubleshoot and profile memory consumption in Java applications and servers.  To run it, just execute the file jvisualvm located in $JAVA_HOME/bin.

Read more >>