Update notes for 2018-01-31

This commit is contained in:
Alan Orth 2018-01-31 16:17:39 +02:00
parent 0e9a9d06a4
commit 91666587ad
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
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)

View File

@ -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:modified_time" content="2018-01-29T12:25:30&#43;02:00"/>
<meta property="article:modified_time" content="2018-01-31T12:01:34&#43;02:00"/>
@ -194,9 +194,9 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv
"@type": "BlogPosting",
"headline": "January, 2018",
"url": "https://alanorth.github.io/cgspace-notes/2018-01/",
"wordCount": "7885",
"wordCount": "7940",
"datePublished": "2018-01-02T08:35:54-08:00",
"dateModified": "2018-01-29T12:25:30&#43;02:00",
"dateModified": "2018-01-31T12:01:34&#43;02:00",
"author": {
"@type": "Person",
"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>Also, I wonder if I could disable the nightly Atmire thing</li>
<li>God, I don&rsquo;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>
<p><img src="/cgspace-notes/2018/01/cpu-week.png" alt="CPU usage week" /></p>
<ul>
<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&rsquo;s activeSessions from JMX (using <code>munin-plugins-java</code>):</li>
</ul>
<pre><code># port=5400 ip=&quot;127.0.0.1&quot; /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&rsquo;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>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -4,7 +4,7 @@
<url>
<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>
@ -144,7 +144,7 @@
<url>
<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>
</url>
@ -155,7 +155,7 @@
<url>
<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>
</url>
@ -167,13 +167,13 @@
<url>
<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>
</url>
<url>
<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>
</url>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB