{"id":7,"date":"2007-05-12T20:51:00","date_gmt":"2007-05-12T20:51:00","guid":{"rendered":"http:\/\/www.timpeterson.org\/blog\/2007\/05\/12\/4\/"},"modified":"2007-05-12T20:51:00","modified_gmt":"2007-05-12T20:51:00","slug":"4","status":"publish","type":"post","link":"https:\/\/www.timpeterson.org\/blog\/2007\/05\/12\/4\/","title":{"rendered":"A geek moment"},"content":{"rendered":"<p>If you&#8217;re not a Linux geek, feel free to ignore this post. <\/span> <\/p>\n<p> I started OpenOffice today, and soon found that it was pegging my CPU. This had happened a previous time I started it, but I just killed it and didn&#8217;t investigate. I needed to get my paper written this time, so I investigated. I attached to the offending thread with strace, and saw that it was in a busy loop of connecting to port 631 (ipp) on localhost, sending a request, and immediately failing on a Broken Pipe. A quick check of \/etc\/services revealed that this port belongs to the Internet Printing Protocol (IPP). I have no printing installed on my machine, so this seemed strange, along with the fact that this is only the second time I&#8217;ve seen this happen. I found the process listening on that port with &#8220;lsof -i :631&#8221;. It turned out to be rpc.mountd, which I then recalled was also showing activity at the same time. This didn&#8217;t make sense, as this process helps with NFS, not printing. I hypothesized that this was one of the RPC protocols that allocated a random port at startup, and it just happened to pick that one this time around. (I recently had to reboot my machine.) I thought auto port numbers started at 1024, though, so I wasn&#8217;t sure. Regardless, I caused it to reallocate its port by invoking &#8220;\/etc\/rc.d\/rc.nfsd restart&#8221; (Slackware). Sure enough, it picked a different port this time, and OpenOffice now works fine. <\/p>\n<p> This was a rather strange coincidental conflict between two disparate programs that just happened to have both undesirable and noticable consqeuences. I&#8217;d say it&#8217;s the fault of both programs: RPC services should pick unreserved ports above 1024 to avoid collisions, and OpenOffice shouldn&#8217;t be busy-looping on a network connection. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re not a Linux geek, feel free to ignore this post. I started OpenOffice today, and soon found that it was pegging my CPU. This had happened a previous time I started it, but I just killed it and &hellip; <a href=\"https:\/\/www.timpeterson.org\/blog\/2007\/05\/12\/4\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-xanga"],"_links":{"self":[{"href":"https:\/\/www.timpeterson.org\/blog\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.timpeterson.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.timpeterson.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.timpeterson.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.timpeterson.org\/blog\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":0,"href":"https:\/\/www.timpeterson.org\/blog\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.timpeterson.org\/blog\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.timpeterson.org\/blog\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.timpeterson.org\/blog\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}