Update notes for 2018-01-31
@ -1355,8 +1355,18 @@ javax.ws.rs.WebApplicationException
|
|||||||
- We need to start graphing the Tomcat sessions as well, though that requires JMX
|
- 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
|
- Also, I wonder if I could disable the nightly Atmire thing
|
||||||
- God, I don't know where this load is coming from
|
- 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)
|
![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
|
- 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)
|
||||||
|
@ -92,7 +92,7 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv
|
|||||||
|
|
||||||
<meta property="article:published_time" content="2018-01-02T08:35:54-08:00"/>
|
<meta property="article:published_time" content="2018-01-02T08:35:54-08:00"/>
|
||||||
|
|
||||||
<meta property="article:modified_time" content="2018-01-29T12:25:30+02:00"/>
|
<meta property="article:modified_time" content="2018-01-31T12:01:34+02:00"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -194,9 +194,9 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv
|
|||||||
"@type": "BlogPosting",
|
"@type": "BlogPosting",
|
||||||
"headline": "January, 2018",
|
"headline": "January, 2018",
|
||||||
"url": "https://alanorth.github.io/cgspace-notes/2018-01/",
|
"url": "https://alanorth.github.io/cgspace-notes/2018-01/",
|
||||||
"wordCount": "7885",
|
"wordCount": "7940",
|
||||||
"datePublished": "2018-01-02T08:35:54-08:00",
|
"datePublished": "2018-01-02T08:35:54-08:00",
|
||||||
"dateModified": "2018-01-29T12:25:30+02:00",
|
"dateModified": "2018-01-31T12:01:34+02:00",
|
||||||
"author": {
|
"author": {
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
"name": "Alan Orth"
|
"name": "Alan Orth"
|
||||||
@ -1761,15 +1761,26 @@ javax.ws.rs.WebApplicationException
|
|||||||
<li>We need to start graphing the Tomcat sessions as well, though that requires JMX</li>
|
<li>We need to start graphing the Tomcat sessions as well, though that requires JMX</li>
|
||||||
<li>Also, I wonder if I could disable the nightly Atmire thing</li>
|
<li>Also, I wonder if I could disable the nightly Atmire thing</li>
|
||||||
<li>God, I don’t know where this load is coming from</li>
|
<li>God, I don’t know where this load is coming from</li>
|
||||||
<li>Since I bumped up the Tomcat threads from 200 to 400 the load on the server has been sustained at about 200%:</li>
|
<li>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:</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p><img src="/cgspace-notes/2018/01/cpu-week.png" alt="CPU usage week" /></p>
|
<p><img src="/cgspace-notes/2018/01/cpu-week.png" alt="CPU usage week" /></p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>I should make separate database pools for the web applications and the API applications like REST and OAI</li>
|
<li>I should make separate database pools for the web applications and the API applications like REST and OAI</li>
|
||||||
|
<li>Ok, so this is interesting: I figured out how to get the MBean path to query Tomcat’s activeSessions from JMX (using <code>munin-plugins-java</code>):</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<pre><code># 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
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>If you connect to Tomcat in <code>jvisualvm</code> it’s pretty obvious when you hover over the elements</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p><img src="/cgspace-notes/2018/01/jvisualvm-mbeans-path.png" alt="MBeans in JVisualVM" /></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 13 KiB |
BIN
public/2018/01/jvisualvm-mbeans-path.png
Normal file
After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/2018-01/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/2018-01/</loc>
|
||||||
<lastmod>2018-01-29T12:25:30+02:00</lastmod>
|
<lastmod>2018-01-31T12:01:34+02:00</lastmod>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
@ -144,7 +144,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||||
<lastmod>2018-01-29T12:25:30+02:00</lastmod>
|
<lastmod>2018-01-31T12:01:34+02:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -155,7 +155,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
||||||
<lastmod>2018-01-29T12:25:30+02:00</lastmod>
|
<lastmod>2018-01-31T12:01:34+02:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -167,13 +167,13 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/post/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/post/</loc>
|
||||||
<lastmod>2018-01-29T12:25:30+02:00</lastmod>
|
<lastmod>2018-01-31T12:01:34+02:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
|
||||||
<lastmod>2018-01-29T12:25:30+02:00</lastmod>
|
<lastmod>2018-01-31T12:01:34+02:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 13 KiB |
BIN
static/2018/01/jvisualvm-mbeans-path.png
Normal file
After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |