199 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Error running a Java migration from 5.0 to 5.5 on Linux
Tue, Mar 14th 2017 4
Employers, please respond to all job applications. You are damaging your company!!
Tue, Dec 27th 2016 2
DB2 10.5 Install on Red Hat
Fri, Jul 29th 2016 7
Social Connections Conference Toronto: Early bird expiring soon
Tue, Mar 29th 2016 4
Speaking at Engage conference in Eindhoven
Wed, Mar 2nd 2016 4
Impossible to launch open in Mobile link on iOS 9.2.1 with Cnx 4.5 backend
Thu, Feb 18th 2016 3
SocialBiz User Group is dead, long live IBM Social Business User Community
Mon, Feb 15th 2016 4
Top 10
WebSphere nodes no longer syncing
Fri, Jul 31st 2015 9
How to change a password on AIX as an admin without following the password policy
Thu, Jun 5th 2014 8
Function keys not working on AIX (smitty) when using Putty
Thu, May 8th 2014 7
Social Connections 9 preparations well on their way
Thu, Jul 16th 2015 7
DB2 10.5 Install on Red Hat
Fri, Jul 29th 2016 7
IBM Connections 4.5 CR4 brings new functionalities
Tue, Apr 1st 2014 6
Unable to upgrade IBM Content Navigator to FP5
Wed, Dec 23rd 2015 6
Speaking at Engage Breda
Mon, Feb 17th 2014 4
My presentation from the Engage conference
Fri, Mar 21st 2014 4
IBM WebSphere on Raspberry PI
Fri, Sep 5th 2014 4


Enable verbose garbage collection on all servers in cluster using jacl
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
wannes@ramsit.com    

Today I needed to enable verbose garbage collections on all production servers to troubleshoot a potential memory leak.

As we have 30 application servers in our clusters and using the web interface would require multiple clicks and page load times, I created a little script to do this.

This can of course be altered to change other parameters, and ideally being put in a function so it can be called using the clustername and cellname as parameters.

######
# Enable Verbose Garbage collection for all servers in cluster
#
# Author: Wannes Rams
# Mail: wannes@ramsit.com
#
# Version: 1.0
# Date: 2015-08-11
#
# License: Apache 2.0
#

# set variables
set cellName SocialCell
set nodeName ConnectionsNode01

# get server config
set clusters [$AdminConfig list ServerCluster]
foreach cluster $clusters {
set memberlist [$AdminConfig showAttribute $cluster members]
set members [lindex $memberlist 0]
foreach member $members {
set serverName [$AdminConfig showAttribute $member memberName]
set server [$AdminConfig getid /Server:$serverName/]
#set server [$AdminConfig getid /Cell:$cellName/Node:$nodeName/Server:$serverName/]

puts "$server"
set jvm [$AdminConfig list JavaVirtualMachine $server]
$AdminConfig modify $jvm {{verboseModeGarbageCollection true}}

puts "GarbageCollection Enabled: [$AdminConfig showAttribute $jvm verboseModeGarbageCollection]"

$AdminConfig save
}
}

 



---------------------
http://www.ramsit.com/enable-verbose-garbage-collection-on-all-servers-in-cluster-using-jacl/
Aug 11, 2015
3 hits



Recent Blog Posts
4
Error running a Java migration from 5.0 to 5.5 on Linux
Tue, Mar 14th 2017 1:23p   Wannes Rams
Yesterday I was trying to perform the Java upgrade to the Homepage database from 5.0 to 5.5 on a linux server. The command failed and whatever I tried, it kept on failing. It seemed to interpret the jdbc url as a Java class and then threw an error it could not find it… obviously The command I ran was taken from the technote the official documentation is pointing to the command I tried to ran was: jvm/linux/jre/bin/java -Dfile.encoding=UTF-8 -Xmx1024m -classpath /apps/ibm/data/DBT_HOME/db2j
2
Employers, please respond to all job applications. You are damaging your company!!
Tue, Dec 27th 2016 9:33a   Wannes Rams
To all HR departments, recruiters and small business owners out there. please respond to all job applications you receive. People that apply for a new job are humans and deserve to be treated that way. A lot of them put a lot of energy in applying for a new job. They are out of a job and really need one to be able to pay the bills and raise their children, they are currently in a bad job and need the change, they have taken a day off for their interview, …. Please threat those people with
7
DB2 10.5 Install on Red Hat
Fri, Jul 29th 2016 12:39p   Wannes Rams
We often complain about IBM documentation (and sometimes for good reasons) but there are moments that I am really grateful about the technotes from IBM. Lately the amount seems to increase and the new formatting corresponding to the new IBM website layout is great. I was installing DB2 10.5 on a Linux box and got an error /apps/ibm/sources/server/db2/linuxamd64/install/db2setup: line 626: /tmp/db2.tmp.2522/db2/linuxamd64/install//db2chgpath: Permission denied /apps/ibm/sources/server/db2/lin




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition