snipt

Ctrl+h for KB shortcuts

Text only

Linux renice all java processes

ps fax | grep java | awk '{print $1;}' | xargs renice -n 19
https://snipt.net/embed/d8118159753138d887723bfd65b14f1e/
/raw/d8118159753138d887723bfd65b14f1e/
d8118159753138d887723bfd65b14f1e
text
Text only
1
2019-07-21T02:13:16
True
False
False
Mar 18, 2014 at 06:33 AM
/api/public/snipt/122719/
linux-renice-all-java-processes
<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>ps fax | grep java | awk &#39;{print $1;}&#39; | xargs renice -n 19 </span></pre></div> </td></tr></table>
java, linux, renice

Text only

Tomcat PermGen Space

1
2
3
vi /etc/default/tomcat7

Java_OPTS = ... -Xmx256m
https://snipt.net/embed/c0e6cc22a51ae091df00eed7ed8dba19/
/raw/c0e6cc22a51ae091df00eed7ed8dba19/
c0e6cc22a51ae091df00eed7ed8dba19
text
Text only
3
2019-07-19T19:00:33
True
False
False
Feb 14, 2014 at 03:54 AM
/api/public/snipt/113648/
tomcat-permgen-space
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>vi /etc/default/tomcat7 </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>Java_OPTS = ... -Xmx256m </span></pre></div> </td></tr></table>
Tomcat

Text only

Activate Tomcat Manager

1
2
3
4
nano /etc/tomcat7/tomcat-users.xml

<role rolename="manager-gui"/>
<user username="webadmin" password="webadmin" roles="manager-gui"/>
https://snipt.net/embed/baab80616b8387ad900b6fce4a5b3b78/
/raw/baab80616b8387ad900b6fce4a5b3b78/
baab80616b8387ad900b6fce4a5b3b78
text
Text only
4
2019-07-23T11:18:02
True
False
False
Sep 18, 2014 at 09:06 AM
/api/public/snipt/111475/
activate-tomcat-manager
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>nano /etc/tomcat7/tomcat-users.xml </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>&lt;role rolename=&quot;manager-gui&quot;/&gt; </span><span id="L-4"><a name="L-4"></a>&lt;user username=&quot;webadmin&quot; password=&quot;webadmin&quot; roles=&quot;manager-gui&quot;/&gt; </span></pre></div> </td></tr></table>
configuration, tomcat