ICS Connectivity Agent stdout Log Rotation by Greg Mally

When monitoring and/or troubleshooting the ICS Connectivity Agent server, it is important to not only have the standard logs (e.g., AdminServer-diagnostic.log) but also the standard out/error (stdout/stderr).  One of the big challenges of capturing the stdout is not exhausting the disk storage over time.  Since the ICS Connectivity Agent is a WebLogic server installation, there are out-of-the-box options available for redirecting the stdout/stderr (see WebLogic Server logging options).  However, there are limitations for using the built-in features of WebLogic which include not capturing all the stdout/stderr (e.g., initial startup output, thread dumps using kill -3).  This blog focuses on an option available at the OS level and provides a script to help setup your environment.

One of the requirements of the ICS Connectivity Agent is it must run on Linux (see System Requirements and Restrictions). Because of this requirement, we have a Linux command at our disposal that will help manage the rotation of the agent stdout: logrotate (http://www.linuxcommand.org/man_pages/logrotate8.html). There are plenty of examples of how to use logrotate and if you are a seasoned Linux person, this blog is most likely not needed for you.  However, if you want a helper script to get this going for you in the context of the ICS Connectivity Agent then keep reading.

Starting the Connectivity Agent

Part of the ICS Connectivity Agent installation includes a start script (startAgent.sh) that is created in the directory where the agent is installed. In order to make sure the started agent server is not terminated when exiting the shell/terminal, the agent is started using the Linux nohup command. Read the complete article here.

SOA & BPM Partner Community

For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn image[7][2][2][2] Facebook clip_image002[8][4][2][2][2] Wiki

Technorati Tags: SOA Community,Oracle SOA,Oracle BPM,OPN,Jürgen Kress

About Jürgen Kress
As a middleware expert Jürgen works at Oracle EMEA Alliances and Channels, responsible for Oracle’s EMEA Fusion Middleware partner business. He is the founder of the Oracle SOA & BPM and the WebLogic Partner Communities and the global Oracle Partner Advisory Councils. With more than 5000 members from all over the world the Middleware Partner Community is the most successful and active community at Oracle. Jürgen manages the community with monthly newsletters, webcasts and conferences. He hosts his annual Fusion Middleware Partner Community Forums and the Fusion Middleware Summer Camps, where more than 200 partners get product updates, roadmap insights and hands-on trainings. Supplemented by many web 2.0 tools like twitter, discussion forums, online communities, blogs and wikis. For the SOA & Cloud Symposium by Thomas Erl, Jürgen is a member of the steering board. He is also a frequent speaker at conferences like the SOA & BPM Integration Days, JAX, UKOUG, OUGN, or OOP.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: