Update notes for 2018-01-31

This commit is contained in:
2018-01-31 16:17:39 +02:00
parent 0e9a9d06a4
commit 91666587ad
9 changed files with 31 additions and 10 deletions

View File

@ -1355,8 +1355,18 @@ javax.ws.rs.WebApplicationException
- We need to start graphing the Tomcat sessions as well, though that requires JMX
- Also, I wonder if I could disable the nightly Atmire thing
- God, I don't know where this load is coming from
- Since I bumped up the Tomcat threads from 200 to 400 the load on the server has been sustained at about 200%:
- Since I bumped up the Tomcat threads from 200 to 400 the load on the server has been sustained at about 200% for almost a whole day:
![CPU usage week](/cgspace-notes/2018/01/cpu-week.png)
- I should make separate database pools for the web applications and the API applications like REST and OAI
- Ok, so this is interesting: I figured out how to get the MBean path to query Tomcat's activeSessions from JMX (using `munin-plugins-java`):
```
# port=5400 ip="127.0.0.1" /usr/bin/java -cp /usr/share/munin/munin-jmx-plugins.jar org.munin.plugin.jmx.Beans Catalina:type=Manager,context=/,host=localhost activeSessions
Catalina:type=Manager,context=/,host=localhost activeSessions 8
```
- If you connect to Tomcat in `jvisualvm` it's pretty obvious when you hover over the elements
![MBeans in JVisualVM](/cgspace-notes/2018/01/jvisualvm-mbeans-path.png)