Mohan Cheema's Online Diary

Site Just to Keep Track of My Day to Day Work.

July 27, 2010
by Mohan Cheema
2 Comments

Java HotSpot(TM) 64-Bit Server VM warning: Failed to reserve shared memory (errno = 12)

I was configuring Apache Tomcat on 64-Bit Linux OS and wanted to tune it for better performance. While searching the net for the same I came across JVM Performance Tuning by Andrig Miller its good start for tuning Java for better performance on machine with Large memory.

Share
Share

June 19, 2010
by Mohan Cheema
0 comments

Ping failed in MysqlValidConnectionChecker in JBoss/MySQL-ConnectorJ Combination

Today I was battling an issue for some of my colleagues. They were getting this exception from JBoss/Mysql ConnectorJ driver:

java.sql.SQLException: Unexpected error in ping : java.lang.IllegalArgumentException: object is not an instance of declaring class

in the JBoss console.

Share
Share

April 28, 2010
by Mohan Cheema
0 comments

Apache Tomcat Integration HowTo

Overview

This is to explain and understand how to integrate Apache and Tomcat to support Java Server Pages (JSP) and Servlets using Apache on your website. Although this setup worked for this particular environment, I can make no guarantees that it will work for yours, but it should with some tweaking. I have spent a lot of time gathering several resources in order to get this to work. Many portions of these resources have been deprecated and required a few workarounds. It is my intention that this tutorial will help anyone that has attempted to install such a system without success. If you find any inconsistencies within this tutorial, please notify me using the contact form.

Share
Share

April 28, 2010
by Mohan Cheema
0 comments

Protecting Your Web Server Using Mod Security

ModSecurity is a web application firewall (WAF). With over 70% of attacks now carried out over the web application level, organisations need all the help they can get in making their systems secure. WAFs are deployed to establish an increased external security layer to detect and/or prevent attacks before they reach web applications. ModSecurity provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring and real-time analysis with little or no changes to existing infrastructure.

Share
Share