ets-berkeley-edu/calcentral — pull request #57 by ctweney (2012-09-15 14:06:11+00:00)
Title: CLC-189 Very simple CacheWarmer for class pages and class lists

A dead-simple Cache warmer that runs every 24 hours on a list of: all colleges, all departments, and all lecture courses. It pauses 100ms between requests to avoid overloading the server. If it gets more than 10 http errors (of whatever type) it quits. It can be disabled by putting "cacheWarmer.enabled=false" in a properties file somewhere, but the default is enabled. On a dev machine with fake Oracle data the warmer only takes a minute or two to run. On a production Oracle data set it may take an hour. I profiled during warming and CPU usage never went over 1% during warming. The fully populated cache took about 20MB of Java heap.