Java VisualVM to profile a remote server

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.

Comments (0)
Read More...



Apache Tomcat and APR in a Linux Server

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.

 

Comments (0)
Read More...



Dealing with Java's PermGen space failure

The "OutOfMemoryError: PermGen space" message is normally encountered during development activities where a JVM is asked to load and unload builds frequently and in a short time. This is pretty common when you have tools like Eclipse, and you're performing several deployments on Tomcat, while it is still running, which shouldn't be a problem when you are in your development box.  The real problem appears when these errors show up in staging and/or production environments, where downtimes are extremely harmful.

Comments (0)
Read More...



MySQL tuning tips & tricks

This is a really helpful link I'd like to share with you, if you ever need to harden and/or tune up a MySQL server.  These tips are provided by the MySQL crew, so they should work!

Here's the link:

http://forge.mysql.com/wiki/Top10SQLPerformanceTips

 

Comments (0)