#CentOS #Tomcat

CentOS: Installing Apache Portable Runtime (APR) for Tomcat

Introduction In Tomcat, the default HTTP Connector is BIO (Blocking I/O) connector with stability, low concurrency characteristics. To boost the Tomcat performance, the alternative ways either adapt NIO (Non-Blocking I/O) or APR (Apache Portable Runtime) connector. Especially, the APR performance is generally better than others when using SSL protocol. For more details on performance among these connectors can reference the Mike Noordermeer’s comparison. Prerequisites for installing APR APR library APR-util library OpenSSL library To begin our installation, we’ll first need to install the OpenSSL to the server because we install CentOS 6. ...

Author 2 min
#AWS #EC2 #EBS #Automount #CentOS

Automatically Mount an EBS Volume Upon Starting an Amazon EC2 Linux Instance

Brief note to create an EBS volume then mount it while CentOS 6.3 on EC2 at boot. Show the space available on that filesystem before we mount the volume: # df -h Filesystem Size Used Avail Use% Mounted on /dev/xvde1 7.9G 4.0G 3.5G 54% / tmpfs 296M 0 296M 0% /dev/shm After we attach the EBS volume to an EC2 instance: # fdisk -l Disk /dev/xvde: 9663 MB, 9663676416 bytes 255 heads, 63 sectors/track, 1174 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00076be1 Device Boot Start End Blocks Id System /dev/xvde1 * 1 1045 8387584 83 Linux /dev/xvde2 1045 1175 1048576 82 Linux swap / Solaris Disk /dev/xvdt: 107. ...

Author 2 min
#Hadoop #CentOS

Running Hadoop on CentOS 6 (Multi-Node Cluster)

This demonstration has been tested with the following software versions and network settings: Oracle VM VirtualBox 4.1.22 r80657 CentOS-6.3_x86_64 with Minimal Installation Hadoop 1.0.3 Hostname IP Address Roles hdp01 192.168.1.39 NameNode, JobTracker and DataNode hdp02 192.168.1.40 DataNode, TaskTracker hdp03 192.168.1.41 DataNode, TaskTracker Candidate CentOS VMs After installing the CentOS in VirtualBox, patch up system by applying all updates and install wget tool for future use. ...

Author 3 min