At PLDI 2010

I’m at PLDI right now. Toronto is nice, the tutorials on Sunday were great, and so were most of the paper sessions. The downsides are the lack of outlets in the conference rooms, and the virtually complete lack of WLAN in the entire hotel (there is wired LAN in the hotel rooms).

In the evenings, I’ve been profiling DrJava to find out why our DrJava tests on Hudson was thrashing so much. I noticed that MainFrameTest was currently using about 650 MB or heap space. No wonder our 512 MB server had trouble. I couldn’t really tell what was going on. YourKit really only showed me that there were lots of HashMap.Entry instances being created. They seemed to have something to do with tables and the Preferences window.

I checked out several old revisions, going as far back as 4694 from the end of 2008. Its MainFrameTest needed only about 300 MB. Through divide and conquer, I realized that the switch from JList to JTable for Vector*OptionComponents added a lot of bloat, at least in the tests. This was most dramatic for the VectorKeyStrokeOptionComponents

I started working on rolling the changes for keystrokes back. I was able to reduce memory consumption to about 400 MB. but the list-based GUI is just so ugly compared to the newer tables.

Fortunately, just before I had left for PLDI I had asked IT to add more swap space to our Hudson server, and that made the whole problem a non-issue: What took about two hours when Hudson was thrashing now takes less than 15 minutes.

I don’t think I’ll commit these changes. I’ll just file it under “can be done if necessary.”


About Mathias

Software development engineer. Principal developer of DrJava. Recent Ph.D. graduate from the Department of Computer Science at Rice University.
This entry was posted in DrJava, Ramblings. Bookmark the permalink.

2 Responses to At PLDI 2010

  1. b0b0b0b says:

    if you can cause some outofmemoryerrors and capture heap dumps at those points, I’d be happy to look at them and see if I can submit a patch or help out.

  2. Mathias says:

    Hi, thank you for your comment. There were no OutOfMemoryErrors, it really was just thrashing.

Leave a Reply