Categories
General

Tomcat 8 Performance Setting

Tomcat 8 comes with more performance features comparing to previous version, this version, Tomcat is using NIO2 according to Jboss’s blog. You might interesting to read Tomcat 8 overview at this slideshare by SpringIO. The performance setting of tomcat is similar to other previous version of tomcat as I already stated in my previous post…

Categories
Java

It’s time to move to JDK 1.8

Early morning, I got this error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project center-core: Compilation failure [ERROR] Failure executing javac, but could not parse the error: [ERROR] javac: invalid target release: 1.8 [ERROR] Usage: javac <options> <source files> [ERROR] use -help for a list of possible options [ERROR] -> [Help 1] Yeah, it’s…

Categories
Java

LockObtainFailedException: Lock obtain timed out: SimpleFSLock@ [Issue/Explain]

Let’s me start from a scenario of a Java (Hibernate, Spring App)/tomcat application that would give you as myself, the error as stated in the subject above. To reproduce In some cases, as you do as following steps: Build with clean install Start Tomcat as normal Stop Tomcat And Start Tomcat again You got an…

Categories
Apache Tomcat

Deploy Application via Apache Tomcat Context

Apache Tomcat is a Java web application server that provides possibility to deploy your Servlet application. There are two ways to configure your different web application to deploy in tomcat: server.xml via Context file Most of the case, it’s discouraged to configure the deployment on server.xml so here I propose for deploying application using context…

Categories
Apache Tomcat

Eclipse Tomcat Launcher plugin & Performance Configuration

Eclipse Tomcat Launcher plugin helps you: Starting and stopping Tomcat 4.x, 5.x, 6.x, 7.x Registering Tomcat process to Eclipse debugger Creating a WAR project (wizard can update server.xml file) Adding Java Projects to Tomcat classpath Setting Tomcat JVM parameters, classpath and bootclasspath Exporting a Tomcat project to a WAR File You can download the plugin…

Categories
Apache Tomcat

Tomcat java.lang.OutOfMemoryError: PermGen space

In Java application, PermGem memory is very important, it is used to compile and optimize classes. You might also face this issue during deployment application in tomcat, in my case, I faced it with Tomcat 6 and 7 with message of: <code>java.lang.OutOfMemoryError: PermGen space</code> Solutions Increasing the PermGem memory in “catalina.bat” for windows or “catalina.sh”…

Categories
Apache Tomcat

GZip Compression on Web App Deployed with Tomcat

Performance is very important to save resource for visitors using our website. If you deploy your Java Web Application on Apache Tomcat and you feel it’s a bit slow, please check it out my experience on solving issue of gzip compression by changing configuration of Apache Tomcat. Result: Before/After Correction Solutions Edit file: apache-tomcat-xx\conf\server.xml change…