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: JBOSS
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…
“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…
JBOSS – total CPU time compared to total page response time
I thought this was interesting. By taking the total response time of pages from the access log, you can take the amount of server CPU used and compare it to the total elapsed request time. This works for web servers,…
Determine the number of active sessions from the JBOSS access log
While planning for holiday shopper traffic, we realized that we did not record the number of active sessions at any given time during holiday 2013. To come up with something that would get us close, we wrote what is below…
Getting count of sessions created by minute
In the wake of a flood of 24,000 application server sessions created per minute at the start of Black Friday week, we wanted to share how we calculated how many sessions were created per minute. This can be obtained from…
Interrupting a thread in java
Often, someone will wish to somehow terminate a thread that is causing issues. These issues could be things such as blocking threads that prevent other threads from doing work, or something that is using a lot of CPU. While the…
Adding the session_id to JBOSS and the ATG order repository
We wanted to be able to track the path a shopper took through the initial order creation process in ATG. The IP address is often insufficient for reasons such as a shared internet connection, proxy server, etc. We extended the…