27 May 2010

WLS 1033 Class Caching for Faster Startup in Development Mode

Another incremental development feature that was added to WLS 10.3.3 is a Class Caching option, designed to reduce startup time of a development server.

See the documentation for more details:

http://download.oracle.com/docs/cd/E14571_01/web.1111/e13706/classloading.htm#WLPRG493

Configuring Class Caching

WebLogic Server now allows you to enable class caching for faster start ups. Once you enable caching, the server records all the classes loaded until a specific criterion is reached and persists the class definitions in an invisible file. When the server restarts, the cache is checked for validity with the existing code sources and the server uses the cache file to bulk load the same sequence of classes recorded in the previous run. If any change is made to the system classpath or its contents, the cache will be invalidated and re-built on server restart.
The advantages of using class caching are:
  • Reduces server startup time.
  • The package level index reduces search time for all classes and resources.
The cache uses optimization techniques to minimize the initial cache recording time. Cache recording continues until a specific class has been recorded.

No comments: