SIGQUIT is your friend
So you are debugging this massive multi threaded server application in java that shows strange behaviour only under heavy load. Attaching a debugger isn’t much help, since it slows things down so much that problems go away. Also, sending a million requests to a server with a debugger connected is not good for the sanity of the debugger or its stats collection process.
The easiest thing to do in these situations is to send a SIGQUIT signal to the java process (in Windows, press Ctrl-Break in the console). This will dump the current stack trace for all threads in the system. You’re sure to find some interesting things in there : too many threads waiting for locks, code paths you never dreamt of, threads waiting for system calls to return … and so on.
Try it … its very instructive, and an exceptional, though under-rated, debugging tool.
Rewards and Creativity?
Came across “this article”:http://www.gnu.org/philosophy/motivation.html by “Alfie Kohn”:http://www.alfiekohn.org/books/pbr.htm which suggests that rewards lower performance levels for creative tasks. If you believe software development is primarily a creative task (an many probably don’t), it suggests a very pessimistic outlook for commercial software development (which is why FSF has reproduced the article on its website, I suppose :).
Linux Bangalore 2003
… should be great. Jeremy Zawodny is “coming”:http://jeremy.zawodny.com/blog/archives/001052.html to talk about MySQL. Miguel de Icaza and Nat Friedman are “coming”:http://www.nat.org/2003/october/#16-October-2003. Cool!
_[Update 19Oct]_ I will be speaking as well!
Site Changes
I have changed the stylesheets on the site to enable visitors using IE to read these pages. So now the pages dont re-flow too well, nor is whitespace managed properly in large monitors. However, the pages display usably on IE5.0 and above. The previous design had a reflowing content pane and a fixed with right menu. However, it was unusable in IE. Oh, for a “standards compliant”:http://www.mozilla.org browser!
I have also uploaded the presentations from some of my talks “here”:/talks. More to follow.
Comment Spam
No one seems to read this stuff 🙂 , but I still recieve comment spam. Strange!
Human Universals
Tim Bray “writes”:http://tbray.org/ongoing/When/200x/2003/10/21/HumanUniversals about “Human Universals”:http://www.temple.edu/tempress/titles/864_reg.html . A list of over 400 attributes that have showed up in every human culture that anthropologists have ever looked at. Fascinating!
The Big Mac Index – take II
A Keynian takes three hours of work to buy a Big Mac in his country, while an American can afford one with only ten minutes of work. “This analysis”:http://www.economist.com/markets/displayStory.cfm?story_id=2054313 based on its “Big Mac Index”:http://www.economist.com/markets/Bigmac/Index.cfm, appears in latest edition of “The Economist”:http://www.economist.com. Its a really effective illustration of the disparities in today’s world — much better than, say, the per capita income, as a measure of differences in the standard of living.
More CleverCactus
After my previous “post”:http://www.sengupta.net/musings/archives/000002.html on the erstwhile Spaces aggregator among others, its creator “Diego Duval”:http://www.dynamicobjects.com/d2r/ left a comment asking why it didnt work for me. I realised that I had been playing around with an old version, with the project even having a new name in the meanwhile.
Since Diego cared enough to leave a comment, I thought the least I could do is give it another shot. So off I went to “CleverCactus”:http://www.clevercactus.com/ and downloaded the latest beta.
I’ve always thought that the product has a very interesting concept, in terms of being an “information aggregator” rather than just an RSS aggregator. The new version looks good, works well. Goes through proxies without a problem. Displays html pretty well. So it didn’t have any of the issues that had put me off earlier.
But after using it for a while, I found something interesting. Earlier, I thought I wanted a three pane view, which is one reason I liked the NetNewsWire screenshots. However, I now find that I actually prefer the two pane view much more, because it allows me to scan very quickly which article I want to read. Scrolling through individual items in a three pane view is much more time consuming when I want to read the details of only a few of the articles in a feed. Time.. the killer app!
So I’ll keep checking out on the status of CleverCactus since I find its concept pretty cool, but for now, I’ll do with NewsMonster. Maybe someday, when i am willing to trade in my mail and NNTP clients for CleverCactus, I might go back to using it.
Service Oriented Architecture
“One of the biggest reasons for the SOA is change management for inter-company business processes”.. says Rob Barrett, VP of solution engineering at E2open, quoted at “Line56”:http://www.line56.com/articles/default.asp?ArticleID=4927 . Couldnt have said it better. (via “Phil Wainewright”:http://www.looselycoupled.com/blog/2003_08_17_lc.htm#106155119250588247)
Revolution OS
The “Bangalore Linux User Group’s”:http://www.linux-bangalore.com monthly “meeting”:http://linux-bangalore.org/meetings/200308 had a screening of “Revolution-OS”:http://www.revolution-os.com/ . Very good of them, considering that this is not something I would expect to find in my friendly neighborhood rental shop.
Favourite quotes:
“Bruce Perens”:http://perens.com/ on the criticism that Free Software/ Open Source is similar to communism – “Karl Marx did not invent the concept of sharing with your neighbour”.
“Linus Torvalds”:http://www.cs.helsinki.fi/u/torvalds/ on the VA Linux IPO, and the fact that he’s not cashing in on the billions people are making on Linux – “If I hadn’t given it away, I wouldn’t have made any money on it”.