Thursday, September 20, 2007

WAS 6.0 - Setting PMI Logging Levels and JVM args with Jython

As previously mentioned, I'm in the process of getting ready for some NFR testing. The plan is that we will make some pretty heavy use of the PMI infrastructure in WebSphere Application Server 6.0.x. There is a bunch of information that it can let us have, I just don't want all of it. Neither do I want to have to manually log in to all of my servers and tick all the little boxes in the UI. Much nicer to have a Jython script to do it automagically (i.e. set my logging level to "CUSTOM", enable the modules I need, add the JVM arg for additional info and switch on the whole shebang)....:


Tip: Figure out your settings manually, then run the script up to the bit where it pumps out your current config (comment out the rest). Then copy and paste this output into your script. Then uncomment and run again against all the other servers you're wanting to configure.

Wednesday, September 19, 2007

Using Jython to Start and Stop TPV Logging in WAS 6.0

I'm trying to automate some WAS 6.0 logging for a bout of NFR testnig which is coming my way soon. The plan is that we will use PMI to get all the info we need and use the Tivoli Performance Viewer Logging functionality to save this to file so that we can view it out leisure after the fact. It might have been acceptable to start and stop logging manually if we were able to get access to the Web Admin Console but unfortunately this is off limits to us. I've had to write the following Jython scripts instead.

Start Logging:

Stop Logging:

Note: These scripts were a bit of a nigthmare to write because of the almost complete lack of documentation of the TivoliPerfEngine MBean. However some checking of the xml config files which WAS uses, some cross referencing with the manual UI version of the same steps, and a good dose of trial and error finally bore fruit. I should thank two of my collegues (you know who you are) who helped me with some pointers when I got stuck.

Wednesday, September 12, 2007

When did Netbeans 6 go Beta?

I usually pride myself on being pretty up on the latest builds of Netbeans. However it seems that the latest release passed me by. A colleague asked me if I had the latest Beta of 6.0. "Nope" I said and checked the site. Wherever I looked I could only see the latest Milestone (currently 10) but no beta. Then he showed me this link. Does this mean 6.0 went beta silently? Did I miss the announcement? What's up guys? Loving the new pastille icon though...