March 2019
« Jan    


WordPress Quotes

Whatever the mind of man can conceive and believe, it can achieve.
W. Clement Stone

Recent Comments

March 2019
« Jan    

Short Cuts

2012 SERVER (64)
2016 windows (9)
AIX (13)
Amazon (34)
Ansibile (19)
Apache (133)
Asterisk (2)
cassandra (2)
Centos (209)
Centos RHEL 7 (261)
chef (3)
cloud (2)
cluster (3)
Coherence (1)
DB2 (5)
DISK (25)
DNS (9)
Docker (28)
Eassy (11)
ELKS (1)
Fedora (6)
ftp (5)
GIT (3)
GOD (2)
Grub (1)
Hacking (10)
Hadoop (6)
horoscope (23)
Hyper-V (10)
IIS (15)
JAVA (7)
JBOSS (32)
jenkins (1)
Kubernetes (2)
Ldap (5)
Linux (188)
Linux Commands (166)
Load balancer (5)
mariadb (14)
Mongodb (4)
MQ Server (24)
MYSQL (84)
Nagios (5)
NaturalOil (13)
Nginx (31)
Ngix (1)
openldap (1)
Openstack (6)
Oracle (34)
Perl (3)
Postfix (19)
Postgresql (1)
PowerShell (2)
Python (3)
qmail (36)
Redis (12)
RHCE (28)
Security on Centos (29)
SFTP (1)
Shell (64)
Solaris (58)
Sql Server 2012 (4)
squid (3)
SSH (10)
SSL (14)
Storage (1)
swap (3)
TIPS on Linux (28)
tomcat (60)
Uncategorized (29)
Veritas (2)
vfabric (1)
VMware (28)
Weblogic (38)
Websphere (71)
Windows (19)
Windows Software (2)
wordpress (1)

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Who's Online

27 visitors online now
3 guests, 24 bots, 0 members

Hit Counter provided by dental implants orange county

Tomcat stop start script for redhat

#Startup script for Tomcat JAVA_HOME=/usr/java/jdk1.6.0_43 export JAVA_HOME start_tomcat=/opt/tomcat6/bin/ stop_tomcat=/opt/tomcat6/bin/

start() { echo -n “Starting tomcat:” su -c ${start_tomcat} – tomcat echo “done.” } stop() { echo -n “Shutting down tomcat: “ ${stop_tomcat} echo “done.” }

# See how we were called case “$1” in start) start ;; stop) stop ;; restart) stop sleep 10 start […]

Java Heap Dump and analyze

First get the Java Applications Process Id, one way to do this is with: jps

jmap -dump:format=b,file=dump.bin <javaProcessIdHere>

The size of the heap dump file will be same as the heap memory in use at the time the command is run. For large heap sizes this can take several minutes to run, and can stall (make […]

Convert an OpenSSL (Apache) SSL Certificate to a PKCS12 (Tomcat)

Convert the Key to a PKCS12 Key. This will prompt you for a password which you will need when you change the Tomcat configuration.

openssl pkcs12 -export -in /etc/apache2/ssl.crt/ -out -name “” -inkey /etc/apache2/ssl.key/

Verify that the pkcs12 file contains your key. You should be able to see your certificate’s common name, and various […]

Enable SSL in Tomcat

Step 1 Windows[goto Command] %JAVA_HOME%\bin\keytool -genkey

Enter all the details which keytool is going to prompt. (rememeber the password)

once you done, please go to your [USER_HOME](document & settings), locate the .keystore.

Copy this file and paste in tomcat root folder.

Step 2 Open [tomcat_home]/conf/server.xml

uncomment the SSL config entry. And configure the SSL certificate […]


tuning rules Doesn’t compensate for bad, slow or poorly written applications If you allocate memory more than 3g, preferably divided into multiple tomcat young generation can not be set too much, minor gc will stop the world.

Three factors negatively impact Tomcat’s performance more than any others – network delays, remote client latency, and […]

21 Apache Tomcat Configuration Tips

Tip #1 – Watch Out for White Space

When installing Tomcat under Windows, the path to the installation directory should not contain white space. The default (c:/Program Files) is not acceptable, because it contains a white space character. Installing under “C:/ProgramFiles” is acceptable because this path does not contain any white space characters.

Tip #2 […]

Enable gzip compression in tomcat

Apache tomcat will support gzip compression. The advantage of compression is the output response will be compressed 6 to 10 times.

To enable gzip compression you need to add some additional properties in $APACHE_TOMCAT_HOME_HOME/conf/server.xml file.

Open conf/server.xml from your tomcat home directory with any text editor.

Search for “Connector port=”8080?”, line at this content will look like […]

Tomcat 6 Access Logging

One of tomcat’s strength is in it’s logging but one of the logger types disabled by default from the base configuration is one that adds access logging support into tomcat.  This provides you with a view of activity that you may find useful for debugging, troubleshooting, usage analysis, etc. Enabling it is simply a matter […]

Tomcat catalina.out Rotate

tail -f catalina.out becomes 2GB in size, tomcat crashes and fails to start without any error message. To avoid this scenario you should rotate catalina.out frequently. This article describes how to setup auto rotation of catalina.out on a linux/unix machine.

How to automatically rotate catalina.out daily or when it becomes bigger than 5M

1. Create […]

password protected directory in tomcat

How to protect a web directory with a password? if we are using Apache, we can do it easily with .htaccess. It will prompt user for credentials while entering the directory. But how to protect a directory with password in tomcat web server? In this post we will discuss how to do it with tomcat Realms. This example […]