Tuesday, February 28, 2017

WCS - Change default port 80

Change Default Port 80 to 81


WCS localhost runs on port 80 and 443. In case these ports are used by other application, WCS will not start and it will give error port 80 already in use. In order to resolve this, we need to end the process which uses port 80.

Sometimes it is really difficult to figure out which application is running on port 80. Below are the steps to determine which application is running on that port

Step 1: Go to command prompt

Step 2: Type in netstat –anb

Step 3: Search for application running on port 80:



Step 4: Kill the process which is running on port 80 OR uninstall the application if not required.
After killing the application running on port 80, your WCS will start properly and you will be able to run application.

If you have trouble in executing steps 1 to 4, try below steps:

Step 1: netstat -n -o -a | findstr 0.0:443

            Get the processId from above result. in my case it is 10136

Step 2: taskkill /F /PID 10136

             Kill the process

If you do not want to kill the process or uninstall the application running on port 80, you need to change the port for WCS so that it listens to any port other than 80. Steps to do this.


Step 1: Start application server

Step 2: Login to admin console:  URL will be like https://localhost:9043/ibm/console

Step 3: Navigate to Server Types à Websphere application servers



Step 4: Select server1 (click on server1)



Step 5: Click on ports (Right side menu item) and look for WC_defaulthost and WC_defaulthost_secure.



Change port 80 to 81 (or any other desired port) and 443 to 444 (or any other desired port).
Step 5: Save changes
Step 6: From left side menu Navigate to Environment à Virtual hosts



Step 7: Click on WC_default_host



Click Host Aliases



Change 80 to 81 (or other desired port number); 443 to 444 (or other desired port number)

Note: Keep changed port number same as in step5.

Step 8: Save changes

Step9: Restart server

Step10: Validate your application if it is running on changed port:

Example: for madisons store:



WCS Toolkit - Fix Out of Memory Issue

We have often encountered Out of memory error during WCS toolkit installation and this error occurs during last step while configuring workspace


Below are the steps mentioned to avoid this error and have successful WCS toolkit installation;

Step 1: Uninstall WCS through IBM installation manager, if it is partially installed (WCS is installed but workspace is not configured )

Step2: Delete WCDE folder and its contents

Step3: Start installation again using IBM installation manager

Step4: During process of WCS installation, some zip folders are extracted. Watch for file generation of file setenv.bat ( in folder WCDE_Install_DIR\bin like C:\IBM\WCDE_ENT70\bin ). As soon as this file gets generated, Please make sure that you make this change
a>    Search for line
set ECLIPSE_ANT=%RAD_HOME%\jdk\bin\java -cp "%ECLIPSE_CP%" org.eclipse.equinox.launcher.Main -application com.ibm.etools.j2ee.ant.RunAnt

b>    Add -Xmx1024m to this line. After change this line should look like
set ECLIPSE_ANT=%RAD_HOME%\jdk\bin\java -Xmx1024m -cp "%ECLIPSE_CP%" org.eclipse.equinox.launcher.Main -application com.ibm.etools.j2ee.ant.RunAnt


Step 5: Save file

Step 4, 5 needs to be performed during installation process.