Saturday, October 17, 2009
Tuesday, January 13, 2009
Configuration weblogic server script for profiling by YourKit
You have to add in setDoaminEnv.sh the followed changes:
PRODUCTION_MODE="true"
export PRODUCTION_MODE
yourkitFlag="true"
export yourkitFlag
debugFlag="true"
export debugFlag
specialFlag="false"
export specialFlag
DOMAIN_PRODUCTION_MODE="true"
export DOMAIN_PRODUCTION_MODE
...
...
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
export JAVA_VM="-server"
MEM_ARGS="-Xms1024m -Xmx1024m -XX:+AggressiveHeap -XX:+UseAdaptiveSizePolicy -XX:MaxPermSize=128m"
if [ "$yourkitFlag" = "true" ]; then
MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=128m"
fi
export MEM_ARGS
if [ "${PRODUCTION_MODE}" = "" ] ; then
MEM_DEV_ARGS="-XX:CompileThreshold=8000 -XX:PermSize=32m "
export MEM_DEV_ARGS
fi
fi
...
...
# PROFILING SUPPORT
if [ "$JAVA_VENDOR" = "Sun" ]; then
if [ "$yourkitFlag" = "true" ]; then
export PRE_CLASSPATH="${PRE_CLASSPATH}${CLASSPATHSEP}/data/yjp/yjp-controller-api-redist.jar"
export LD_LIBRARY_PATH="/data/yjp:$LD_LIBRARY_PATH"
JAVA_PROFILE="${JAVA_PROFILE} -Xrunyjpagent:port=9999"
# uncomment if you use java 5
# JAVA_PROFILE="${JAVA_PROFILE} -agentlib:yjpagent=port=9999"
export JAVA_PROFILE
fi
fi
SERVER_CLASS="weblogic.Server"
export SERVER_CLASS
...
PRODUCTION_MODE="true"
export PRODUCTION_MODE
yourkitFlag="true"
export yourkitFlag
debugFlag="true"
export debugFlag
specialFlag="false"
export specialFlag
DOMAIN_PRODUCTION_MODE="true"
export DOMAIN_PRODUCTION_MODE
...
...
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
export JAVA_VM="-server"
MEM_ARGS="-Xms1024m -Xmx1024m -XX:+AggressiveHeap -XX:+UseAdaptiveSizePolicy -XX:MaxPermSize=128m"
if [ "$yourkitFlag" = "true" ]; then
MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=128m"
fi
export MEM_ARGS
if [ "${PRODUCTION_MODE}" = "" ] ; then
MEM_DEV_ARGS="-XX:CompileThreshold=8000 -XX:PermSize=32m "
export MEM_DEV_ARGS
fi
fi
...
...
# PROFILING SUPPORT
if [ "$JAVA_VENDOR" = "Sun" ]; then
if [ "$yourkitFlag" = "true" ]; then
export PRE_CLASSPATH="${PRE_CLASSPATH}${CLASSPATHSEP}/data/yjp/yjp-controller-api-redist.jar"
export LD_LIBRARY_PATH="/data/yjp:$LD_LIBRARY_PATH"
JAVA_PROFILE="${JAVA_PROFILE} -Xrunyjpagent:port=9999"
# uncomment if you use java 5
# JAVA_PROFILE="${JAVA_PROFILE} -agentlib:yjpagent=port=9999"
export JAVA_PROFILE
fi
fi
SERVER_CLASS="weblogic.Server"
export SERVER_CLASS
...
Tuesday, September 16, 2008
Adjusting wireless for laptop hp 6710b
it's to be set ATrpms.net repository(look at http://www.osresources.com/11_6_en.html)
then in command line of terminal it's to be invoked :
then in command line of terminal it's to be invoked :
yum install ipw3945-kmdl-`uname -r` ipw3945
Tuesday, September 2, 2008
Setup java for CentOS 5
Download needed java distributive.
If you want to have two jvm for i386 and x64 you have to download non rpm package.
1. login by root user
2. go to /usr/java/
3. run jdk-XXX-linux-XXX.bin
4. add symbolic links determining default jvm by using command alternatives
e.g.
4.choose default by using command alternatives
e.g.
e.g.
Checking...
Enjoy :)
If you want to have two jvm for i386 and x64 you have to download non rpm package.
1. login by root user
2. go to /usr/java/
3. run jdk-XXX-linux-XXX.bin
4. add symbolic links determining default jvm by using command alternatives
e.g.
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.5.0_16_x64/bin/java 3
4.choose default by using command alternatives
e.g.
/usr/sbin/alternatives --config java
e.g.
[root@localhost jdk1.5.0_16_x64]# /usr/sbin/alternatives --config java
There are 3 programs which provide 'java'.
Selection Command
-----------------------------------------------
* 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
+ 2 /usr/java/jdk1.5.0_16/bin/java
3 /usr/java/jdk1.5.0_16_x64/bin/java
Enter to keep the current selection[+], or type selection number: 3
Checking...
[root@localhost jdk1.5.0_16_x64]# java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_16-b02, mixed mode)
Enjoy :)
Saturday, July 26, 2008
Performance tuning Java performance tools
Profiling tools
1. Yourkit
http://www.yourkit.com/
Thread Stack Dump Viewer
1. Samurai Thread Stack Dump Viewer
http://yusuke.homeip.net/samurai/en/index.html
2. IBM Thread and Monitor Dump Analyzer for Java
http://www.alphaworks.ibm.com/tech/jca
Load Testing Tools
1. Jmeter
http://jakarta.apache.org/jmeter
1. Yourkit
http://www.yourkit.com/
Thread Stack Dump Viewer
1. Samurai Thread Stack Dump Viewer
http://yusuke.homeip.net/samurai/en/index.html
2. IBM Thread and Monitor Dump Analyzer for Java
http://www.alphaworks.ibm.com/tech/jca
Load Testing Tools
1. Jmeter
http://jakarta.apache.org/jmeter
Friday, May 30, 2008
Hermes JMS - Open Source JMS Console
HermesJMS is tools that helps to trace jms messages state.
Quick setup for BEA 10.2 and Hermes v1.12 on Linux
1. Open the/bin/hermes.sh in your favorite editor. Add path to your JAVA_HOME after comment "# Setup the Java VM".
e.g.
JAVA_HOME="/data/bin/jdk1.6.0_03"
export JAVA_HOME"
Note: Hermes IS built with jvm 1.6 therefore you have to use jvm version 1.6 for running one, but
BEA 10.2 is run with jvm 1.5. This combination create some problem with classLoader look here ,the solve is using -Dsun.lang.ClassLoader.allowArraySyntax=true. Add it in jvm running command
2. Launch Hermes by calling the hermes.sh
3. Create new JMS session.
at first you have to set provider :
It's not add this library in class path therefore You have to add it in classpath of jvm.
e.g.
LOCALCLASSPATH=$LOCALCLASSPATH:/data/beas/bea102_32/wlserver_10.0/server/lib/weblogic.jar
export LOCALCLASSPATH
then go back to tab "sessions" and configure it. Look at the picture below
Destinations is not needed to fill. They fill automatically by using "Discover queues and topics from the provider"
4.Choose one of destination then create new watch Actions>Watch>New Watchs..
resources:
1. http://dev2dev.bea.com/cs/user/blog?file=/blog/jbayer/archive/2008/01/hermes_jms_open.html
2. http://www.hermesjms.com/confluence/display/HJMS/Home
Quick setup for BEA 10.2 and Hermes v1.12 on Linux
1. Open the
e.g.
JAVA_HOME="/data/bin/jdk1.6.0_03"
export JAVA_HOME"
Note: Hermes IS built with jvm 1.6 therefore you have to use jvm version 1.6 for running one, but
BEA 10.2 is run with jvm 1.5. This combination create some problem with classLoader look here ,the solve is using -Dsun.lang.ClassLoader.allowArraySyntax=true. Add it in jvm running command
2. Launch Hermes by calling the hermes.sh
3. Create new JMS session.
at first you have to set provider :
It's not add this library in class path therefore You have to add it in classpath of jvm.
e.g.
LOCALCLASSPATH=$LOCALCLASSPATH:/data/beas/bea102_32/wlserver_10.0/server/lib/weblogic.jar
export LOCALCLASSPATH
then go back to tab "sessions" and configure it. Look at the picture below
Destinations is not needed to fill. They fill automatically by using "Discover queues and topics from the provider"
4.Choose one of destination then create new watch Actions>Watch>New Watchs..
resources:
1. http://dev2dev.bea.com/cs/user/blog?file=/blog/jbayer/archive/2008/01/hermes_jms_open.html
2. http://www.hermesjms.com/confluence/display/HJMS/Home
Monday, May 19, 2008
Some useful commands for working with Solaris 5
- Reading info about running process:
- Checking check sum
- Show list dynamic dependencies of executable files or
shared objects - Look at ports of processes
$ ps -ef
$ digest -a md5 -v /bin/ls
md5 (/bin/ls) = b57e173220af4b919f1d4bef9db11482
$ ldd -v solaris-x86-32/libyjpagent.so
pfiles `ptree | awk '{print $1}'` | egrep '^[0-9]|port:'
pfiles PID | egrep '^[0-9]|port:'
Subscribe to:
Posts (Atom)