↓ Skip to main content

Cleaning up dumps

·1 min

No - this has nothing to do with nappy changing! I’ve spent the past two weeks as part of the support team for a customer’s WebSphere Application Server environment. Although I know all the theory (I’m an IBM Certified System Administrator for Versions 5.0, 6.0 and 6.1) it’s not very often I spend long enough at any one customer to get my hands dirty. My Korn shell scripting, Jython and vi skills certainly improved rapidly during the time I was there!

One moderately interesting job I had to do related to the processing of heap dumps. These were being directed to a separate file system using the file option on the JVM arguments. However, when that file system filled up dumps would then default back to /tmp and when this gets full, bad things start to happen. Consequently, the plan was to write a script to clear out old dumps to make space. The cunning part was to use the tool option to execute the script just before a new heap dump is created. The exact syntax used was as follows:

-Xdump:tool:events=user+abort,range=1..0,     exec=/some/path/cleanup.sh,priority=999

Thanks to Andy Simms and Pete Daly for the research behind this one.

Related

JMS problem determination

·1 min
The JMS Problem Determination Redpaper covering WebSphere Application Server Version 6.1 was published at the start of the month. As the long list of authors indicates, Rich Coppen has done a fantastic job in getting input from the whole of the development team so this is a pretty comprehensive resource.

Messaging identities

·1 min
Given Alasdair has been kind enough to include me in the acknowledgements, that guarantees him a plug for his developerWork’s comment line entitled “Connect an application to the default messaging provider using the run-as identity”. This describes how to connect to the default messaging provider in WebSphere Application Server using the application’s current runtime run-as identity rather than, as is usually the case, the credentials administratively associated with the connection factory or resource reference. As always, just because something is possible, doesn’t mean you should do it, so please head Alasdair’s comments about what to consider before implementation.