May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Tomcat+Nginx+Memcached

?Tomcat+Nginx+Memcached

??Ubuntu 16.04 64 bit test pass

??Movement classification, load balancing, clustering, Javolution serialized, high-performance, high availability

Configuration environment (both current latest stable version): ??the JDK-Linux-x64-8u131 ??the Apache-Tomcat-8.5.14 ??nginx-1.12.0 ??memcached-1.4.36

EDITORIAL:

??Originally intended configuration kryo serialization framework, but also how to get unsuccessful, with only a Javolution ??If the last unsuccessful general problems will find […]

Tomcat+Nginx+Memcached

?Tomcat+Nginx+Memcached

??Ubuntu 16.04 64 bit test pass

??Movement classification, load balancing, clustering, Javolution serialized, high-performance, high availability

Configuration environment (both current latest stable version): ??the JDK-Linux-x64-8u131 ??the Apache-Tomcat-8.5.14 ??nginx-1.12.0 ??memcached-1.4.36

EDITORIAL:

??Originally intended configuration kryo serialization framework, but also how to get unsuccessful, with only a Javolution ??If the last unsuccessful general problems will find […]

Tomcat starts with slow optimization methods

Tomcat starts with slow optimization methods Tomcat started today and found that the start is very slow, take a few minutes, the problem worthy of attention, so go to view the log, found that time is caused by a random number caused by the problem. Tomcat Session ID calculated by SHA1 algorithm, the time to […]

tomcat 32 bit Could not reserve enough space for 1048576KB object heap

Commons Daemon procrun stdout initialized

Error occurred during initialization of VM

Could not reserve enough space for 1048576KB object heap

 

Here is how to fix it: Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System

Variables->New: Variable name: _JAVA_OPTIONS Variable value: -Xmx512M

Variable name: Path Variable value: ;C:\Program Files\Java\jre6\bin;F:\JDK\bin;

Change this to your appropriate path.

 

 

Tcserver password encoding and decoding

 

Tc Server 3.2.0 introduced a new command for encoding passwords

 

./tcruntime-admin.sh encode mypassword passkey

 

Please, take a look at following link for more information

 

http://tcserver.docs.pivotal.io/docs-tcserver/topics/manual.html#obfusc

 

The old style can still be used but a new property is needed and the jasypt can be left off the classpath as they are […]

Install Tomcat 9 on Centos 7

Install Tomcat 9 on Centos 7

cd /opt/ wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-x64.tar.gz” tar -zxvf jdk-8u101-linux-x64.tar.gz alternatives –install /usr/bin/java java /opt/jdk1.8.0_101/bin/java 2 alternatives –config java java -version vi /etc/profile.d/java.sh export JAVA_HOME=/opt/jdk1.8.0_101 export JRE_HOME=/opt/jdk1.8.0_101/jre export PATH=$PATH:/opt/jdk1.8.0_101/bin:/opt/jdk1.8.0_101/jre/bin chmod +x /etc/profile.d/java.sh source /etc/profile.d/java.sh export

cd /usr/local wget http://www.us.apache.org/dist/tomcat/tomcat-9/v9.0.0.M1/bin/apache-tomcat-9.0.0.M1.tar.gz wget http://download.nus.edu.sg/mirror/apache/tomcat/tomcat-9/v9.0.0.M11/bin/apache-tomcat-9.0.0.M11.tar.gz tar -zxvf apache-tomcat-9.0.0.M11.tar.gz cd apache-tomcat-9.0.0.M11 […]

tomcat 8 centos 6.7

## screen -U -S tomcat8-screen ## yum update INSTALL JAVA 8

Download the latest JAVA 8 from here or use the following command to download JAVA JDK 8u5:

for 32bit systems use:

## wget –no-cookies \ –no-check-certificate \ –header “Cookie: oraclelicense=accept-securebackup-cookie” \ “http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-i586.rpm” \ -O /opt/jdk-8-linux-i586.rpm

for 64bit systems use:

## wget –no-cookies \ –no-check-certificate […]

sticky sessions between Apache and tomcat app

Why sticky sessions? Imagine you have a Apache server which load balances between two tomcat servers(tomcat1 and tomcat2) in the backend, With the use of sticky sessions, When the user sends the first request, If apache routes it to tomcat1, It will keep on sending the other requests made by the same user to the […]

Tomcat Version Change

While working with Tomcat, we observed that Tomcat displays Error Page which has the Tomcat version on it. When ever we call a page which is not available , the tomcat server will push a Error page along with the version like –

 

The Error page will also display the Version of the […]

Clustering on Apache/Tomcat using Jakarta mod_jk

Clustering Tomcat Servlet Engines is interesting for two reasons: load balancing and failover.

Fail-over

Fail-over is probably the most important issue for web applications. If the front end load balancer detects that one of the nodes has gone down it will redirect all the traffic to the second instance and your clients, apart from any […]