Fotolia_62142043_XS-300x228.jpg

Did you know you can run WebSphere Application Server in development mode, which optimizes it for less powerful hardware and for applications which see frequent updates? It’s actually quite easy, whether you are creating a new profile or working with an exciting one!

Creating a New Profile with the Profile Management Tool

If you are creating a new profile, via the Profile Management Tool (or PMT), just make sure you select these two boxes:

  1. Use the “Advanced profile creation” mode
    2015-03-20 10_57_44-Profile Management Tool 8.5
    This allows you to tweak some very simple settings that you may be interested in, I recommend all people using PMT to create their profiles in this mode.
  2. Switch “Server runtime performance tuning setting” to “Development”
    2015-03-20 11_03_18-Profile Management Tool 8.5
  3. Then just finish the wizard with the settings you want!

Creating a New Profile via the Command Line manageprofiles Tool

For those command-line junkies like myself, creating a new profile via manageprofiles in development is also extremely easy. Simply add this flag to your -create parameter list:

-isDeveloperServer

That’s it! To read more about the parameters for manageprofiles, see here.

Modifying a Profile via the WebSphere Admin Console

If you’ve already created your profile, and want to simply enable development mode, simply log into the admin console and change it! It goes like this:

  1. Go to the WebSphere Administrative Console (e.g. http://localhost:9060/ibm/console)
  2. Log in

    1. Tip: If you do not have security enabled, just click Log In
  3. Drill into WebSphere application servers
    2015-03-20 11_08_46-WebSphere Integrated Solutions Console

  4. Drill into your server (e.g. server1)
    2015-03-20 11_09_01-WebSphere Integrated Solutions Console
  5. And check the following boxes:

    1. Run in development mode
    2. Parallel start
    3. Start components as needed
      2015-03-20 11_09_09-WebSphere Integrated Solutions Console
  6. Then click Save, and restart your server!

Modifying a Profile via the Command Line wsadmin Tool

Enabling development mode on an existing server is the most complicated choice, but luckily it is still pretty straight forward. Just follow these steps:

  1. Start your server (via Eclipse/RAD/RSA/Other IDE, or by command line)

    1. To start by command line, open your command prompt
    2. cd into your profile’s bin directory (e.g. C:\Profiles\MyAwesomeProfile\bin)
    3. startServer.bat server1 (or, ./startServer.sh server1 if you are not on Windows)
  2. With the command prompt in the bin directory (from the above steps), execute the following:

    wsadmin.bat server1
    set server [$AdminConfig getid /Server:server1/]
    $AdminConfig modify $server "{developmentMode true}"
    $AdminConfig modify $server "{parallelStartEnabled true}"
    $AdminConfig save
    quit
  3. Then, just restart your server!

    1. Tip: You can use stopServer.bat server1 to do this too (or ./stopServer.sh server1)
      Enjoy!