G1 GC Performance Tuning Tips

Long concurrent marking cycle. -XX:ConcGCThreads -XX:InitiatingHeapOccupancyPercent [Full GC (Allocation Failure) Increase min and max heap -Xms and -Xmx GC log and Heap Dump Analysis may be required. To-space exhausted -XX:G1ReservePercent. Mixed collection pause is too long -XX:InitiatingHeapOccupancyPercent -XX:G1MixedGCCountTarget -XX:G1MixedGCLiveThresholdPercent -XX:G1HeapWastePercent Humongous allocation -XX:G1HeapRegionSize

Continue reading

High CPU Usage due to C2 CompilerThread

In our live environment we observed very HIGH CPU utilisation on the boxes. Weblogic JAVA process was hogging the CPU. To find the culprit thread, we followed the steps outlined here. The below thread was the culprit thread “C2 CompilerThread1″ #7 daemon prio=9 os_prio=0 tid=0x00002acb10d48000 nid=0x511 runnable [0x0000000000000000] There were

Continue reading

Updated deployment descriptors of WebLogic Server

U weblogic.xml.process.XMLProcessingException: Error: For EJB modules, deployment plan overrides are not supported with DTD based deployment descriptors. The EJB module prbeans.jar is attempting to apply a deployment plan to DTD based descriptors. Please update your EJB deployment descriptors to be schema based before attempting to apply the deployment plan override

Continue reading

Create and configure Extended Logger for Weblogic

Create an extended logger by compiling the code below and creating a jar ( el.jar in this example) import weblogic.servlet.logging.CustomELFLogger;import weblogic.servlet.logging.FormatStringBuffer;import weblogic.servlet.logging.HttpAccountingInfo;import java.util.Enumeration;import java.util.HashMap;import java.util.Map; public class PaypalCustomField implements CustomELFLogger {public void logField(HttpAccountingInfo metrics,FormatStringBuffer buff) { buff.appendValueOrDash(metrics.getHeader(“Cookie”)); Map<String, String> map = new HashMap<String, String>(); StringBuffer sbuf = new StringBuffer(); Enumeration

Continue reading

Oracle WebLogic zero-day discovered in the wild

Several application running Oracle Weblogic were detected by Nessus as having a vulnerable version (being exploited in the wild). Impacted Versions: WebLogic 10.X, WebLogic 12.1.3 Resolution/ Workaround: Oracle is working on the fix, below is the work around for the time being. To prevent attacks, KnownSec 404 is recommending that

Continue reading

How to create Work Manager and assign to application.

Please follow the steps below to create a WORK MANAGER Environment -> Work Manager -> New   Configure Maxmimum and Minimum Thread Contraint Target them on the server. Once the work manager is created, an application can be configured to use it. weblogic-ejb-jar.xml <weblogic-enterprise-bean> <ejb-name>PRAsync</ejb-name> <message-driven-descriptor> <pool> <max-beans-in-free-pool>1000</max-beans-in-free-pool> <initial-beans-in-free-pool>50</initial-beans-in-free-pool> </pool>

Continue reading

Steps to generate boot.properties and startup.properties for AdminServer

If we start the AdminServer( which has never been started before using script ) from NodeManager, boot.properties and startup.properties file don’t get created by default and AdminServer fails to start. To create the boot.properties and startup.properties file we need to follow the steps below.   sed -i “s/StartScriptEnabled=true/StartScriptEnabled=false/g” nodemanager.properties connect(‘user’,’pwd!’,’t3://host:port’)

Continue reading

How to view active database connections in Tomcat

Configure remote JMX Connectivity for Tomcat by adding these JAVA OPTIONS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false 2.  Start jmxconsole and connect to the remote tomcat process. 3. Go to MBeans -> Datasource -> Application Name -> Your Datasource -> numActive

Continue reading