Roller project page updates.
Struts book fair.
Lots of Struts articles and books swirling around the blogs and sites and bookstores and etc. OnJava has two articles: 1) <a href= "http://www.onjava.com/pub/a/onjava/2002/10/30/jakarta.html">Lessons from the Trenches by Chuck Cavaness author of O'Reilly's <a href= "http://www.powells.com/cgi-bin/biblio?inkey=62-0596003285-0">Programming Jakarta Struts and 2) <a href= "http://www.onjava.com/pub/a/onjava/pub/a/2002/11/06/struts1.html">Learning the New Struts 1.1, Part One by Sue Speilman author of <a href= "http://www.switchbacksoftware.com/struts.htm">The Struts Framework. The Server Side recently posted <a href= "http://www2.theserverside.com/resources/articles/StrutsFastTrack/StrutsFastTrack.pdf">The Fast Track to Struts (PDF). And finally, looking at Powells I see that <a href= "http://www.powells.com/cgi-bin/biblio?inkey=62-0471213020-0">Goodwill, <a href= "http://www.powells.com/cgi-bin/biblio?inkey=62-1930110502-0">Husted, and <a href= "http://www.powells.com/cgi-bin/biblio?inkey=62-0672324725-0">Turner all have Struts books coming out as well. I haven't read any of them yet so please read them for me and tell me which ones are best.
The Eclipse dominates scenario.
I've been helping a co-worker and 4 year veteran of <a href= "http://www.borland.com/jbuilder/">JBuilder get started with <a href= "http://www.eclipse.org/">Eclipse. He decided to make the switch after the Eclipse presentation at the RTP-WUG . His first impressions were that Eclipse does everything that JBuilder does and that Eclipse will kill all other IDEs. I was not at all surprised by his reaction.
After seeing that presentation, it is pretty easy for me to imagine a scenario in which there are two dominant IDEs in the world: Microsoft Visual Studio and Eclipse. In this scenario all IDEs other than Visual Studio will either wither and die or rehost their best parts as plugins inside Eclipse. Eclipse is extensible and pluggable to the core. It is not an IDE and it is not just an <a href= "http://radio.weblogs.com/0107789/2002/11/06.html#a1002">experience either, it is a universal and multi-progamming language tools platform. On top of that it is open source (you can't get more pluggable than having the source ;-).
This scenario explains why both Borland and TogetherSoft are on the Eclipse <a href= "http://www.eclipse.org/org/index.html">board of stewards. They see the wave coming. Board member Rational has already released an Eclipse based product (which supports both Java and .Net) and even old school programmer's editor maker and board member SlickEdit, Inc. is considering hosting inside Eclipse.
If you look at the volume on the Eclipse newsgroups and the rapidly growing number of plugins, you can see the momentum. For the moment, the IDEA guys may have a better IDE, I really don't know, but they've got to be worried about and planning for the Eclipse dominates scenario.Congratulations Matt and Julie!
I knew there was something up when I saw no posts yesterday. Matt and Julie are now the proud parents of a <a href= "http://www.raibledesigns.com/page/rd/20021106#out_little_girl_has_arrived">truly beautiful little baby girl. Big welcome to Abigail Grace Raible! I'm wishing y'all a baby who cries little and sleeps a lot. My wife's advice to you is to enjoy these first weeks and months because they seem to go so quickly. She also advises you to do whatever your wife tells you to do quickly and without complaint.
Between.
Both releases took longer than expected and stretched out over a busy and stressful two month period. During that time I lost some wonderful co-workers to a "reduction in force," moved into a cramped new office, moved again into a larger new office, was threatened with a law-suit, got a promotion, and lost my favorite boss to Microsoft.
I really can't complain. I still have a job, I still enjoy it, and I would much rather be busy than bored. On top of that, I have an awesome family and a wife that understands my geekly obsessions - as long as I have a baby in my lap. I'm not going to complain. I'm going to take some time to regroup, think about what I have learned, and hope for some more busy months.
Roller 0.9.6.3.
Roller update.
FreeRoller seems to have stabilized, we've fixed a bunch of <a href= "http://opensource.atlassian.com/projects/roller/IssueNavigator.jspa?reset=true&decorator=printable&pid=10000&fixfor=10013&mode=hide&start=0&tempMax=1000">bugs, and I've branched Roller 0.9.6 so we can start with Roller 0.9.7 dev in the main line. I'm planning on releasing Roller 0.9.6.3 tomorrow.
Rotor 1.0.
The dot-Net perspective.
- Wow, what an ass whoopin
- Yep and one of those $40,000 app servers crashed!
- Rickard says the benchmarks were a scam
- Who the hell is Rickard, why would you trust a dreambean?
- Rickard is an expert, I would trust him more than The Server Side
- Rickard and The Register and anti-microsoft conspiracy nuts
- Lots of talk about the "appeal to authority" argument
- Lots of talk about whether the nickname "M$" is hate speech or not
- The benchmark was flawed, .Net and J2EE performance are similar
- Price/performance favors .Net because the app server is free with the OS
- Look at that anti-Microsoft stuff on Russell Beattie's site, that guy is sick!
Bloated Development Kit.
Yep, all you have to do is to download the .Net SDK and start hacking away. But wait, the <a href= "http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml">.NetFramework SDK is a 137,363,456 byte download. And that is not all, if you want to redistribute your .Net apps you'll also need to download the <a href= "http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/MSDN-FILES/027/001/829/msdncompositedoc.xml">.Net Framework Redistributable, another 21,827,584 bytes. And you thought the JDK was bloated!
The Andy Oliver report.
In other Andy news, Andy <a href= "http://www.trilug.org/%7Eacoliver/hackinglog.html">mentioned today on his Hacking Log the possibility of a joint venture with the Triangle Dot-Net Users Group and the Triangle Java Users Group: a Dot-Net vs. J2EE shootout. Now, that sounds like a fun meeting.
Theme experiments.
Incompetence and betrayal.
It has been a week now since the TSS published The Petstore Revisited, but
I am just now getting around to reviewing the story.
On Monday Oct. 28, 2002, The Server Side published (TSS) The Petstore Revisited.
This benchmark report compared Sun's example J2EE Petstore application
with some performance revisions added by TSS to a Microsoft written dot-Net
clone of the Petstore. Respected open source Java guru Rickard Oberg
quickly reviewed the report, found many flaws, and published a rebuttal the very
next day. Rickard updated his rebuttal with more information and links to
other's views throughout the week (but he missed Rafe's comments).
On Wednesday he was Slashdotted.
As the week progressed, the outcry continued, and the full story was revealed:
- the benchmark report was seriously flawed in many ways,
- the J2EE Petstore performance revisions done by TSS were inept at best,
- Microsoft paid TSS to do the benchmark,
- TSS is essentially a Microsoft business partner,
- and TSS worked with Microsoft to coordinate the dot-Net victory media spin.
If you are concerned about the relative performance of dot-Net and J2EE, read the Pet Shop Boys write-up at Larry O'Brien's Thinking In Dot Net weblog:
Resolution?
A break.
Tracking down the FreeRoller problem.
We've been having a helluva time tracking down the problem that is causing <a href=
"http://www.freeroller.net">FreeRoller to crash two or three times each
day. By "crash" I mean that FreeRoller gets slow, stops responding to
hits on Roller's Velocity-driven pages, and eventually seems to lock up Tomcat. Once Tomcat is locked up, you will started getting "Document contains no data" errors in your browser.
Here are some of the things I've been working on to resolve this problem:
Ensure that resources are released
Roller uses Castor JDO and the Velocity DataSourceResourceLoader for all database access, so Roller has to trust those components to use and release database connections properly. Every time Roller gets a database connection (a JDO Database object), it uses that connection within a try block and releases the connection within a finally block.
FreeRoller uses Roller on Tomcat with DBCP connection pooling <a href= "http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html">via JNDI and the MySQL JDBC drivers. We have not be able to figure out how to configure DBCP to get debug informaiton on the number of database connections in use. If you know how to do this please drop me a line.
Ensure that exceptions are being handled properly
There were a number of places where exceptions were being blown out to Tomcat instead of being handled properly by using a response error code. There was also one place where an exception was being thrown from within a catch block. None of these should cause a crash, but I was guessing that perhaps one of them was tickling a Tomcat or Java VM bug.
Look for infinte loops and infinite recursion
I found and fixed an infinite loop in the error.jsp file which used itself as its own error handler. That bug was very easy to find due to the big stack trace and stack overflow exception in the Tomcat logs.
There could be other problems with infinite loops and recursion, but I have not found any evidence of these problems in the FreeRoller logs. Weblog templates and weblog entries are treated as Velocity templates, so it possible that a weblog author could introduce an infinite loop or infinite recursion. Roller tries to protect against this in the Roller macros.includePage() and macros.showWeblogEntries() directives, but we can't offer protection against a truly malicious user.
Test under heavy load
FreeRoller runs on Tomcat 4.0.6 and MySQL on Linux. So, I setup Tomcat 4.0.6 and MySQL on my Redhat 7.1 box and tried some stress tests. I tried using JMeter, but it kept on running out of memory. I eventually found Openload and set it up to hit http://snoopdave/roller/page/test1 (a pretty heavy page) and http://snoopdave/roller/rss/test1 with 5 clients on each. I configured Roller with a session and page-cache timeout of 2 minutes so that the database code gets a workout. I ran for several hours at heavy load with no ill effects and the number of JDO Database objects never exceeded 20.
Even with a new 0.9.6.3-pre1 build of Roller that addresses the issues above, FreeRoller still had a crash today. I'm baffled. If you have any suggestions for testing or debugging tools or approaches, please let me know. Free feel to browse the code ;-)
Roller docs.
MSBlog.
« Previous page of month (Nov 2002) | Main | Next month (Dec 2002) »