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
Apache Tomcat

Use Different Server Ports on a Single Tomcat Installation

In some cases, you might want to have only one Tomcat installation but use separate ports to deploy your application. As example case if you want to have the same context name to run on the same server. My solution on this matter, I introduce the port separation on the tomcat server.xml as shown as […]

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 […]

Categories
Java

របៀបបង្កើត Project Spring Boot ជាមួយ JSP

១.​សេចក្តីផ្តើម Spring Boot មានលក្ខណៈងាយស្រួលសម្រាប់កាត់បន្ថយក្នុងការសរសេរកូដបានច្រើន ដោយវារួមមាននូវ Features ដូចតទៅៈ Create stand-alone Spring applications Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files) Provide opinionated ‘starter’ POMs to simplify your Maven configuration Automatically configure Spring whenever possible Provide production-ready features such as metrics, health checks and externalized configuration Absolutely no code generation and no requirement […]

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

Monitor Java Application with JConsole

You might need to monitor your java application in order to examine the memory or CPU usage. JConsole is free and available in your JDK from version JDK 5 up. About JConsole Jconsole is a JMX-compliant monitoring tool.  It uses the extensive JMX instrumentation of the Java virtual machine to provide information on performance and […]

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 […]