Tag Archives: java

Useful java parameters

“Good” set of java parameters to run “generic” application like tomcat: JAVA_OPTS=”-d64 -Xms512m -Xmx512m -XX:MaxPermSize=128m” JAVA_OPTS=”-Djava.awt.headless=true -Djava.net.preferIPv4Stack=true $JAVA_OPTS” JAVA_OPTS=”-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:-TraceClassUnloading $JAVA_OPTS” JAVA_OPTS=”-XX:+HeapDumpOnOutOfMemoryError -XX:+HeapDumpOnCtrlBreak -XX:HeapDumpPath=/home/tomcat/snapshots $JAVA_OPTS” These are not good but they are working options to enable jmxremote console. … Continue reading

Posted in java | Tagged , , , , | Leave a comment

Weblogic starts slow

I had a lot of troubles starting Oracle Weblogic 10.3g under linux (CentOS 5.2). It took anywhere between 5 to 20 minutes from the time I ran startup script to the point when Weblogic actually started. Here is typical log: … Continue reading

Posted in Uncategorized | Tagged , , , | 26 Comments

Checklist for linux server used for tomcat/java apps

Create tomcat user Update /etc/security/limits.conf to increase the number of open files limit for tomcat users. You need it if java apps opens a lot of files for caching or on busy website. tomcat soft nofile 16383 tomcat hard nofile … Continue reading

Posted in Check Lists | Tagged , , , , | Leave a comment