Posts Tagged ‘WebLogic Suite 12c’

image

Not wanting to be left out of all the fun, here’s my contribution for Tim Hall’s OTN Appreciation Day event

For those of us that came from an Oracle Application Server (iAS/OC4J) background, and with maybe a particular OCD-style bent for automation, I think the the biggest discovery in WebLogic Server was WLST, or WebLogic Scripting Tool. This lets you access the underlying JMX management objects that control every facet of WebLogic via an easy to use tool Python (or, rather Jython, the java variant). Python itself is fairly popular these days but nearly 10 years ago it was a bit of a novelty for me but gave me lots more scripting flexibility and control compared to traditional shell script.

Anyway, for a couple of years I was touting a presentation called "WLST – WebLogic’s Swiss Army Knife!" extolling the tool’s virtues!

In short:

  • anything you can do "clicky-clicky" in the WebLogic console (and more!) you can do in a WLST script,
  • you can even record WLST, like you might for an MS Word macro, when you do some manual commands in the console (or EM FMWC these days) to give yourself a starting script to tweak,
  • Python gives you a rich programming environment for building modular scripts using helpful language constructs,
  • WLST can be used online or offline (which means with the Admin Server running or not) – offline a bit more restrictive but allows you to build pretty comprehensive configurations without running the server software itself,
  • WLST can be used for both configuring the WebLogic domain, as well as monitoring it when it’s up (for example checking the number of messages in a JMS queue or connections in a data source pool),
  • Fusion Middleware products come with WLST libraries, e.g. Oracle SOA Suite includes WLST utilities for deploying composites. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

image

You can use scripts to facilitate the management of WebLogic Server and reduce the manual tasks you have to do.
Examples of these scripts are scripts to automate start and stop of Admin and Managed Servers of WebLogic Server.

In this post I will provide the scripts I use and you can download them here: scripts.zip

These are the scripts that I use to start WebLogic Server in my Linux VM.
One of them is a Shell script to start Node Manager and AdminServer, and the other is a Python script to start SOA, OSB and BAM Managed Servers.

Shell script: Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

image
With WebLogic 12.2.x a complete new concept – called partition – was introduced into WebLogic in order to support multitenancy setups and concepts. This new technology can also serve as a solid foundation for cloud services and cloud hosting. A partition is – similar to a filesystem partition – meant to be a well-defined area of WebLogic, with some new and powerful features. Other than the standard J2EE bundling units like EAR, WAR or RAR archives, the partition goes beyond that and allows a bundling of applications (J2EE units) and required resources like JDBC, JMS and more into a single “WebLogic application” based on the partition technology. Partitions can also be exported, migrated and imported as a single unit.
Many real world use-cases can benefit significantly from the new multitenancy technology. This book explains the new WebLogic technologies in detail. In addition to the technology deep-dives, this book discusses many use-cases found daily in our industry and shows the potential benefit of multitenancy technologies for these scenarios.
Key Features:
* Overview and deep-dives into the new WebLogic technologies around multitenancy
* Many examples using WLST scripting in order to automate partition handling
* All scripts and programs can easily be adapted to the reader’s need
* Discussion of a number of real-world uses and how these could benefit from multitenancy
* Focus on architects, decision-makers, administrators and developers
Get the book here at Amazon. For additional WebLogic books please visit the wiki here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

image

The aim of this manual is to show how useful is the Java Virtual Machine Diagnostics to find the root cause of a thread deadlock in Java.

First of all, it is necessary to create a generator of deadlocks. In this case I’ve made a little web application whose goal is to generate thread deadlocks. The code of this application was downloaded from [1]. The program is very simple as you can see:

Dead lock generator called WebDeadLockV2.0

The thread deadlocks generators is deployed on a Weblogic server. In this case, I am using the Oracle Management Server (OMS) in order to save resources. However, it could be deployed in any other server under the supervision of Oracle Cloud Control.

After deploying the application I sent several requests using this URL:

https://testmachine.sysco.no:7301/WebDeadLockV2.0/deadlock

In order to get an overview of the locks you have to follow these steps:

1. On the left panel you have to select the Java Virtual Machine Pool related to OMS

2. As a result you will see the details about this pool on the right side. The quantity of locks is remarked in red. In this case we can 221 locks. In addition, this problem also is detected by the Admin Console

3. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

image

REST clients fail after WebLogic upgrade from 12.1.2 to 12.1.3 or 12.2.1.

WebLogic 12.1.2 is shipped with Jersey 1.13 and my REST clients are working fine. However, after upgrading WebLogic, they fail as follows:

There is a bug reported for for version 1.18.1 – Bug in URL encoding in 1.18.1 but the problem is present in 1.18 as well.
As it appears, downgrading to version 1.17.1 fixes the problem and is done by following the documentation to change the Jersey version used: How to Update the Version of Jersey JAX-RS RI in an EAR File

Action plan outline:

1) Update weblogic-application.xml (or weblogic.xml depending structure)
2) Include jersey-bundle 1.17.1 in your application.
3) Redeploy

weblogic-application.xml Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

image

Some tips when debugging WLS cluster stability

In one environment we had problems with cluster stability – and there were unnecessary migrations of JMS Servers.

Here are some settings that gave more info in logs. Set the following for the JVM:

-Dweblogic.debug.DebugServerMigration=true -Dweblogic.debug.DebugSingletonServices=true

Change the below setting to DEBUG

Home >Summary of Servers >AdminServer >Logging >General >Advanced >Minimum severity to log:

enable below debugs from the weblogic admin console.

Debug >weblogic >core

cluster Collapse Node

DebugAsyncQueue

DebugCluster

DebugClusterAnnouncements

DebugClusterFragments

DebugClusterHeartbeats

DebugLeaderElection

DebugReplication

DebugReplicationDetails

Change the logging severity to Debug Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

image

Get the presentation here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki