Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Start Multiple WebLogic Managed Servers

DZone's Guide to

How to Start Multiple WebLogic Managed Servers

· Java Zone
Free Resource

Learn how to troubleshoot and diagnose some of the most common performance issues in Java today. Brought to you in partnership with AppDynamics.

The WebLogic Server docs recommend you to create a dedicated admin server and then separate managed servers for application deployment. Here I will show you how to create one or more managed server in the same host as the admin server.

I assume you already have WLS installed with your own domain created and running. If you haven't done this before, you may refer to my previous blog on how to create and start WLS. After you started your domain (that's the default admin server), then follow these steps.

1. Login into your http://localhost:7001/console webapp.
2. On the right menu tree, click Environment > Servers. You should see "myserver(admin)" already listed.
3. Click "New" button, enter Server Name: appserver and set Server Listen Port: 7002
4. Click "Next" and then "Finish"
5. Now open a new terminal and run these commands: 
  cd mydomain
  bin/startManagedWeblogic.sh appserver1 localhost:7001

You would need to enter the username and password, same as for your /console webapp. After this managed server is up and running you may send the process in the background by pressing CTRL+Z and then run bgcommand. Or you may use the servers/appserver/security/boot.properties file to bypass the user/password prompt on every restart of this managed server.

Now you have one managed server started along with your admin server. After this you may start deploying application onto this managed server. All the webapp deployed would now accessable by its assigned port such as http://localhost:7002/yourwebapp url. You may repeat the same for however number of managed server you like to run on the same host. Try to name your server name and port number unique.

Understand the needs and benefits around implementing the right monitoring solution for a growing containerized market. Brought to you in partnership with AppDynamics.

Topics:

Published at DZone with permission of Zemian Deng, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}