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 readingAuthor: Faisal
JMX Code to print peak Native Memory Usage and Code Cache
This code can be used to print the native usage of a JVM and also the code cache usage. To get the details we need to enable JMX on the server by following the steps below. We need to enable -XX:NativeMemoryTracking=detail flag as well.
Continue readingHigh 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 readingUpdated 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 readingCreate 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 readingORA-01555: snapshot too old: rollback segment number with name “” too small
ORA-01555: snapshot too old: rollback segment number with name “” too small ORA-22924: snapshot too old DatabaseException caused by prior exception: java.sql.SQLException: ORA-01555: snapshot too old: rollback segment number with name “” too small ORA-22924: snapshot too old | SQL Code: 1555 | SQL State: 72000 The LOB column for
Continue readingOracle 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 readingHow 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 readingSteps 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 readingHow 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