snipt

Ctrl+h for KB shortcuts

Bash

CPU utilization in Jboss

./twiddle.sh -s 127.0.0.1:1099  invoke jboss.system:type=ServerInfo listThreadCpuUtilization
https://snipt.net/embed/1e1fd97e37a602d015effa576e57cbe3/
/raw/1e1fd97e37a602d015effa576e57cbe3/
1e1fd97e37a602d015effa576e57cbe3
bash
Bash
1
2019-06-23T23:46:59
True
False
False
/api/public/snipt/7052/
cpu-utilization-in-jboss
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>./twiddle.sh -s 127.0.0.1:1099 invoke jboss.system:type<span class="o">=</span>ServerInfo listThreadCpuUtilization </span></pre></div> </td></tr></table>
jboss, monitor, twiddle

Bash

Free memory via Jboss Twiddle

./twiddle.sh -s 127.0.0.1:1099 get jboss.system:type=ServerInfo FreeMemory MaxMemory TotalMemory ActiveThreadCount
https://snipt.net/embed/42bcfed3f6316a76ab3720b4c3c18f82/
/raw/42bcfed3f6316a76ab3720b4c3c18f82/
42bcfed3f6316a76ab3720b4c3c18f82
bash
Bash
2
2019-06-19T03:57:29
True
False
False
/api/public/snipt/7051/
free-memory-via-jboss-twiddle
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>./twiddle.sh -s 127.0.0.1:1099 get jboss.system:type<span class="o">=</span>ServerInfo FreeMemory MaxMemory TotalMemory ActiveThreadCount </span></pre></div> </td></tr></table>
jboss, monitor, twiddle

Bash

monitor space usage in real time - by partition and with total

watch 'df -P / /var /mnt/* | tail -n +2 | ( total=0; while read dev blocks used rest; do total=$(($total+$used)) ; echo $used $dev; done; echo -----; echo $total )'
https://snipt.net/embed/92caf508218f539ff6f88c9340ce1e0f/
/raw/92caf508218f539ff6f88c9340ce1e0f/
92caf508218f539ff6f88c9340ce1e0f
bash
Bash
1
2019-06-24T02:08:44
True
False
False
/api/public/snipt/5160/
monitor-space-usage-in-real-time-by-partition-and-with-total
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>watch <span class="s1">&#39;df -P / /var /mnt/* | tail -n +2 | ( total=0; while read dev blocks used rest; do total=$(($total+$used)) ; echo $used $dev; done; echo -----; echo $total )&#39;</span> </span></pre></div> </td></tr></table>
bash, df, disk, monitor, partition, space