<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8260739278874294486.post6634178967073025156..comments</id><updated>2011-11-24T10:28:30.411-08:00</updated><category term='meta-prog'/><category term='Python'/><category term='cvs'/><category term='java'/><category term='debugging'/><category term='jdk'/><category term='latex'/><category term='benchmark'/><category term='c'/><category term='beamer'/><category term='meta'/><category term='iphone'/><category term='OpenTSDB'/><category term='Sun'/><category term='TCP'/><category term='iTunes'/><category term='git'/><category term='bibtex'/><category term='Linux'/><category term='mac'/><category term='performance'/><category term='code'/><category term='Android'/><category term='profiling'/><category term='hardware'/><category term='svn'/><category term='MacPorts'/><title type='text'>Comments on Tsuna's blog: The "Out of socket memory" error</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.tsunanet.net/feeds/6634178967073025156/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default'/><link rel='alternate' type='text/html' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html'/><author><name>Benoit Sigoure</name><uri>https://profiles.google.com/117435881756559768436</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-2eVJcyL_RNo/AAAAAAAAAAI/AAAAAAAAAAA/GWKq6sXj_VE/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8260739278874294486.post-6130126568060610612</id><published>2011-11-24T10:28:30.411-08:00</published><updated>2011-11-24T10:28:30.411-08:00</updated><title type='text'>Hi there.

I&amp;#39;m having the &amp;quot;Out of socket ...</title><content type='html'>Hi there.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m having the &amp;quot;Out of socket memory&amp;quot; error in one of my servers.&lt;br /&gt;&lt;br /&gt;I raised the orphans from 62144 to 1062144 but still getting the error.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$ cat /proc/net/sockstat&lt;br /&gt;sockets: used 2298&lt;br /&gt;TCP: inuse 7 orphan 0 tw 239 alloc 522 mem 66&lt;br /&gt;&lt;br /&gt;66 its a very low memory use.&lt;br /&gt;&lt;br /&gt;$ cat /proc/sys/net/ipv4/tcp_mem&lt;br /&gt;3071488 3075584 3079680&lt;br /&gt;&lt;br /&gt;Should I raise the tcp_mem limit also? &lt;br /&gt;&lt;br /&gt;$ cat /proc/version&lt;br /&gt;Linux version 2.6.32-5-openvz-amd64&lt;br /&gt;&lt;br /&gt;Sorry for my english.&lt;br /&gt;You have a very nice blog, thanks.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/6130126568060610612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/6130126568060610612'/><link rel='alternate' type='text/html' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html?showComment=1322159310411#c6130126568060610612' title=''/><author><name>Jose Octanio</name><uri>http://www.blogger.com/profile/10044719763856761221</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html' ref='tag:blogger.com,1999:blog-8260739278874294486.post-6634178967073025156' source='http://www.blogger.com/feeds/8260739278874294486/posts/default/6634178967073025156' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-656667215'/></entry><entry><id>tag:blogger.com,1999:blog-8260739278874294486.post-3254087690370601774</id><published>2011-10-18T16:50:31.469-07:00</published><updated>2011-10-18T16:50:31.469-07:00</updated><title type='text'>tsuna - 2.6.32-131.0.15.el6.x86_64 (RHEL6 stock)

...</title><content type='html'>tsuna - 2.6.32-131.0.15.el6.x86_64 (RHEL6 stock)&lt;br /&gt;&lt;br /&gt;I&amp;#39;m building openTSDB now to get some graphs - it happened a few minutes ago and again on both counts it looked like I had loads of spare capacity!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/3254087690370601774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/3254087690370601774'/><link rel='alternate' type='text/html' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html?showComment=1318981831469#c3254087690370601774' title=''/><author><name>Alex</name><uri>http://www.blogger.com/profile/05750114261802355512</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html' ref='tag:blogger.com,1999:blog-8260739278874294486.post-6634178967073025156' source='http://www.blogger.com/feeds/8260739278874294486/posts/default/6634178967073025156' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-211854276'/></entry><entry><id>tag:blogger.com,1999:blog-8260739278874294486.post-5876172028921579243</id><published>2011-10-05T19:31:50.449-07:00</published><updated>2011-10-05T19:31:50.449-07:00</updated><title type='text'>What&amp;#39;s your kernel version?</title><content type='html'>What&amp;#39;s your kernel version?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/5876172028921579243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/5876172028921579243'/><link rel='alternate' type='text/html' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html?showComment=1317868310449#c5876172028921579243' title=''/><author><name>tsuna</name><uri>http://www.blogger.com/profile/06114951663056205324</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html' ref='tag:blogger.com,1999:blog-8260739278874294486.post-6634178967073025156' source='http://www.blogger.com/feeds/8260739278874294486/posts/default/6634178967073025156' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1995837882'/></entry><entry><id>tag:blogger.com,1999:blog-8260739278874294486.post-937224317001536518</id><published>2011-10-03T16:33:53.096-07:00</published><updated>2011-10-03T16:33:53.096-07:00</updated><title type='text'>Hi,

I seem to have a problem with no orphans but ...</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;I seem to have a problem with no orphans but some limit - but following your analysis I have 100216 sockets used which is still far less than 4607424; yet I am still getting &amp;quot;Out of socket memory&amp;quot; errors:&lt;br /&gt;&lt;br /&gt;[root@frontend2 log]# cat /proc/net/sockstat | grep orphan&lt;br /&gt;TCP: inuse 134376 orphan 0 tw 87 alloc 150249 mem 100217&lt;br /&gt;[root@frontend2 log]#&lt;br /&gt;[root@frontend2 log]#&lt;br /&gt;[root@frontend2 log]# cat /proc/sys/net/ipv4/tcp_mem&lt;br /&gt;2303712 3071616 4607424&lt;br /&gt;[root@frontend2 log]# cat /proc/net/sockstat&lt;br /&gt;sockets: used 150458&lt;br /&gt;TCP: inuse 134376 orphan 1 tw 69 alloc 150250 mem 100217&lt;br /&gt;UDP: inuse 12 mem 3&lt;br /&gt;UDPLITE: inuse 0&lt;br /&gt;RAW: inuse 0&lt;br /&gt;FRAG: inuse 0 memory 0&lt;br /&gt;[root@frontend2 log]# cat /proc/sys/net/ipv4/tcp_max_orphans&lt;br /&gt;65536&lt;br /&gt;[root@frontend2 log]# cat /proc/net/sockstat&lt;br /&gt;sockets: used 150458&lt;br /&gt;TCP: inuse 134375 orphan 1 tw 76 alloc 150251 mem 100216&lt;br /&gt;UDP: inuse 12 mem 3&lt;br /&gt;UDPLITE: inuse 0&lt;br /&gt;RAW: inuse 0&lt;br /&gt;FRAG: inuse 0 memory 0</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/937224317001536518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/937224317001536518'/><link rel='alternate' type='text/html' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html?showComment=1317684833096#c937224317001536518' title=''/><author><name>Alex</name><uri>http://www.blogger.com/profile/05750114261802355512</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html' ref='tag:blogger.com,1999:blog-8260739278874294486.post-6634178967073025156' source='http://www.blogger.com/feeds/8260739278874294486/posts/default/6634178967073025156' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-211854276'/></entry><entry><id>tag:blogger.com,1999:blog-8260739278874294486.post-7066161157541513342</id><published>2011-04-18T16:01:18.963-07:00</published><updated>2011-04-18T16:01:18.963-07:00</updated><title type='text'>If I were you I&amp;#39;d look at other metrics such a...</title><content type='html'>If I were you I&amp;#39;d look at other metrics such as number of sockets, number of connections opened, whether the box is sending SYN cookies (which are enabled by default in a lot of kernels these days), the packet rate, and such.&lt;br /&gt;&lt;br /&gt;PS: all these metrics and many more are exposed by OpenTSDB (http://opentsdb.net) with a data point every 15 seconds (by default).  Give it a try and I promise you&amp;#39;ll never wanna use Cacti again :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/7066161157541513342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/7066161157541513342'/><link rel='alternate' type='text/html' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html?showComment=1303167678963#c7066161157541513342' title=''/><author><name>tsuna</name><uri>http://www.blogger.com/profile/06114951663056205324</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html' ref='tag:blogger.com,1999:blog-8260739278874294486.post-6634178967073025156' source='http://www.blogger.com/feeds/8260739278874294486/posts/default/6634178967073025156' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1995837882'/></entry><entry><id>tag:blogger.com,1999:blog-8260739278874294486.post-8716988772458338019</id><published>2011-04-11T01:45:47.107-07:00</published><updated>2011-04-11T01:45:47.107-07:00</updated><title type='text'>Hi, I saw this error on a server over the weekend ...</title><content type='html'>Hi, I saw this error on a server over the weekend so I started monitoring the orphans count from sockstat via cacti to try to understand what was happening.&lt;br /&gt;&lt;br /&gt;The error recurred but rather than a gradually climbing line what I saw was a near vertical ascent from the low hundreds to 30K in a fraction of a second.&lt;br /&gt;&lt;br /&gt;This suggests to me that we have some sort of software issue, most likely with php-fastcgi, but I don&amp;#39;t have an immediate clue how to diagnose it or find a solution.&lt;br /&gt;&lt;br /&gt;Any thoughts?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/8716988772458338019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/6634178967073025156/comments/default/8716988772458338019'/><link rel='alternate' type='text/html' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html?showComment=1302511547107#c8716988772458338019' title=''/><author><name>Alfred Armstrong</name><uri>http://www.blogger.com/profile/03605130674115747847</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://likemind.co.uk/images/alfred.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tsunanet.net/2011/03/out-of-socket-memory.html' ref='tag:blogger.com,1999:blog-8260739278874294486.post-6634178967073025156' source='http://www.blogger.com/feeds/8260739278874294486/posts/default/6634178967073025156' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1687332132'/></entry></feed>
