{"id":250,"date":"2012-06-15T16:27:42","date_gmt":"2012-06-15T08:27:42","guid":{"rendered":"http:\/\/rmohan.com\/?p=250"},"modified":"2012-06-15T16:27:42","modified_gmt":"2012-06-15T08:27:42","slug":"jboss-linux-tuning","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=250","title":{"rendered":"Jboss Linux Tuning"},"content":{"rendered":"<p><strong>Jboss Linux Tuning<\/strong><\/p>\n<p>Linux Tuning Optimization<\/p>\n<p>1) Commands to check current settings before updating sys parameters<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\ncat \/proc\/sys\/fs\/file-max<\/p>\n<p>ulimit -n<\/p>\n<p>cat \/proc\/sys\/net\/core\/rmem_default<br \/>\ncat \/proc\/sys\/net\/core\/wmem_default<br \/>\ncat \/proc\/sys\/net\/core\/rmem_max<br \/>\ncat \/proc\/sys\/net\/core\/wmem_max<\/p>\n<p>\/sbin\/ifconfig -a<br \/>\neth0      Link encap:Ethernet  HWaddr<br \/>\n          inet addr: Bcast: Mask:<br \/>\n          inet6 addr: fe80::250:56ff:febf:7f5a\/64 Scope:Link<br \/>\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br \/>\n          RX packets:9313376 errors:0 dropped:0 overruns:0 frame:0<\/p>\n<p>cat \/proc\/sys\/kernel\/shmmax<br \/>\ncat \/proc\/sys\/vm\/nr_hugepages<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>2) Edit \/etc\/sysctl.conf and append these values<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n# Set File Max<br \/>\nset fs.file-max=102642<\/p>\n<p># Increase default socket send and receive buffers<br \/>\nnet.core.rmem_default=262122<\/p>\n<p>net.core.wmem_default=262122<br \/>\nnet.core.rmem_max=262122<br \/>\nnet.core.wmem_max=262122<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>3) Edit \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 and append MTU<br \/>\n# recommended for gigabit ethernet to reduce packet fragmentation<br \/>\nMTU=9000<\/p>\n<p>4) echo 2147483647 > \/proc\/sys\/kernel\/shmmax or update sysctl.conf<br \/>\n5) echo 1000 > \/proc\/sys\/vm\/nr_hugepages<\/p>\n<p>6) Edit \/etc\/limits.conf and set ulimit value<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jboss Linux Tuning<\/p>\n<p>Linux Tuning Optimization<\/p>\n<p>1) Commands to check current settings before updating sys parameters &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; cat \/proc\/sys\/fs\/file-max<\/p>\n<p>ulimit -n<\/p>\n<p>cat \/proc\/sys\/net\/core\/rmem_default cat \/proc\/sys\/net\/core\/wmem_default cat \/proc\/sys\/net\/core\/rmem_max cat \/proc\/sys\/net\/core\/wmem_max<\/p>\n<p>\/sbin\/ifconfig -a eth0 Link encap:Ethernet HWaddr inet addr: Bcast: Mask: inet6 addr: fe80::250:56ff:febf:7f5a\/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9313376 errors:0 dropped:0 overruns:0 frame:0<\/p>\n<p> [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/250"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=250"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":251,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/250\/revisions\/251"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}