title: How can I preload web app classes in the JVM on start up?
body: <p>In our web apps the first load of some pages takes a small but noticeable extra about of time due to class loading. Does anyone have any clever ways of preloading web app classes in the JVM on start up?</p>
  
  <hr>
  
  <p><em>Update</em>: What we do now is store a bunch (700) of full class names in a db table.  We read the table at startup and do Class.forName().  It works fine but I thought there might be a more clever approach.  We determined the 700 classes that were referenced at startup by using a profiler.</p>