Categories

Garbage Priority Garbage Collector

Garbage Priority Garbage Collector (G1 GC) Use notes

G1 GC is a new garbage collection strategy, starting with JDK7, mainly for server-side JVM, and large memory applications, the goal is to achieve similar high-throughput CMS. G1 is still the idea of ??sub-management, the main use of the idea of ??block management, through the memory is […]

tomcat monitor script

#!/bin/bash echo $(date ‘+%Y-%m-%d %H:%M:%S’) whoami JAVA_HOME=/opt/java/jdk1.8.0_40 PATH=$JAVA_HOME/bin:$PATH export PATH JAVA_HOME port=8086 sn=“tomcat-image-$port“ th=“/home/dev/tomcat/$sn“ url=“http://you-app-server/” tomcat=`ps -ef | grep java | grep $sn | grep $port | wc -l` if [ $tomcat -eq 0 ] then echo $sn stoped. echo starting $sn …… $th/bin/startup.sh fi if [ $tomcat -ge 1 ] then tpid=`ps -ef | […]

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

Page 1 of 612345...Last »