+

Search Tips   |   Advanced Search

Windows: Configuring developer mode

Use developer mode to improve startup performance, and to configure HCL WebSphere Portal for development. Developer mode is for a development environment only. Do not use the developer mode in a production environment. We can also run the optimize-derby-database task to improve the Derby database performance.

  • For the JVM the initial heap size is set to 768 MB to reduce the amount of garbage collection during startup.
  • Portlets and web applications are activated on first access and not at the startup.

Some of the portlets and applications are required at startup. Create a white list which contains the list of applications required at startup. To add applications to the white list, modify...

    WP_PROFILE/PortalServer/config/StartupPerformance/wp.base_TargetMapExclList.properties

Add a line such as App_name, where App_name is the name of the application. To get a list of available applications...


Configure developer mode

  1. Open a command prompt.

  2. Stop the WebSphere_Portal server..

  3. Improve the performance of the Derby database.

      cd WP_PROFILE\ConfigEngine
      ConfigEngine.bat optimize-derby-database

    This task is appropriate only in a demonstration or development environment that is not configured to use WCM. We can also run the optimize-derby-database task after large data changes in the database.

  4. Start the WebSphere_Portal server.

  5. Run...

      ConfigEngine.bat enable-develop-mode-startup-performance -DWasPassword=foo

    Restart the WebSphere_Portal server to propagate the change.

  6. Prepare the remote web server for the developer mode.


What to do next

To revert to a production server

    ConfigEngine.bat disable-develop-mode-startup-performance -DWasPassword=foo

Restart the WebSphere_Portal server to propagate the change.

We can run the disable-develop-mode-startup-performance task for the following scenarios:

  • When we are done developing the portal and portlets.
  • If the development settings are not adequate for a special development situation.
  • When we cannot re-create a problem on the development server.


Parent Change to developer mode

Related tasks:

Application server settings