Enable password in JBOSS_HOME/server/JBOSS_SERVER_NAME/conf/props/jmx-console-users.properties You can then punch in bean calls such as the following… [sa-jboss@servername ~]$ /usr/local/jboss/bin/twiddle.sh –server=servername:1599 -u admin -p admin get “jboss.jca:service=ManagedConnectionPool,name=atgcatalogb_ds” MinSize MinSize=10 [sa-jboss@servername ~]$ /usr/local/jboss/bin/twiddle.sh –server=servername:1599 -u admin -p admin set “jboss.jca:service=ManagedConnectionPool,name=atgcatalogb_ds” MinSize 40 MinSize=40…
Category: Application servers
Splunk query to extract JSP from stack trace in error log
We used what is below to parse through stack traces that had been logged in JBOSS. We were looking for the page most frequently impacted by a persistent transaction blocking issue. host=cmhlpecomecm* (ORA-00060 OR ORA-02049) AND org.apache.jsp | rex field=_raw…
Splunk – Histogram/distribution of JBOSS session length
As you can see below, 95% of our sessions are less than five minutes in length. This is very useful in sizing the session timeout variable in your context.xml file. host=cmhlpecomweb* sourcetype=access* | rex mode=sed field=_raw “s/\t/~/g” | eval tmp=split(_raw,”~”)…
Splunk calculating JBOSS session time statistics
We used this to produce a distribution of how long our sessions last. We print the median, average, and maximum session length based on the first and last occurrence of a given JSESSIONID. We also filter out those sessions less…
Splunk – Query to print distribution of requests by device type
We had a need to understand what type of devices our customers were using; specifically, Apple or Android. We came up with what is below… host=cmhlpecomweb* sourcetype=access* (“iphone” OR “ipad” OR “android”) | rex mode=sed field=_raw “s/\t/~/g” | eval tmp=split(_raw,”~”)…
Oracle global temporary table and connection pool
Our question was what happens to the rows in a global temporary table when populated from a session obtained from a connection pool. Are they still there for the next application user to borrow the same session from the pool?…
Testing the overhead of creating connections vs using a pool in Weblogic
We had a need to understand the overhead of creating connections versus using a pool. Connection pooling is most beneficial when using very short lived database sessions. If the associated database request takes longer than a few seconds, we needed…
Weblogic stuck thread printer
This is a useful script for crawling the Weblogic domain logs and printing threads that have been stuck, as well as the duration they were stuck. It doesn’t include the initial ten minute (default) window before a log entry is…
JNLP Example
Java Web Start is the technology that allows a user to run java from their local device. The software that is run is loaded from a server via a directive in a JNLP file on the server. It is downloaded…
“Unable to find valid certification path to requested target” exception
In a JBOSS environment, the issue was the connector in the server.xml file is only used for *inbound* connections, not ones out from JBOSS to another SSL enabled service. If you compile and run the following test class below… [sa-jboss@cmhldecomecm01…