<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: WebSphere Administration: Setting Heap Size</title>
	<atom:link href="http://myarch.com/setting-heap-size/feed" rel="self" type="application/rss+xml" />
	<link>http://myarch.com/setting-heap-size</link>
	<description>Builds and bytes</description>
	<lastBuildDate>Mon, 07 May 2012 05:20:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ugg boots blog</title>
		<link>http://myarch.com/setting-heap-size/comment-page-1#comment-35520</link>
		<dc:creator>ugg boots blog</dc:creator>
		<pubDate>Wed, 16 Nov 2011 06:03:42 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/?p=235#comment-35520</guid>
		<description>&lt;strong&gt;ugg boots blog...&lt;/strong&gt;

[...]WebSphere Administration: Setting Heap Size[...]...</description>
		<content:encoded><![CDATA[<p><strong>ugg boots blog&#8230;</strong></p>
<p>[...]WebSphere Administration: Setting Heap Size[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Ananiev</title>
		<link>http://myarch.com/setting-heap-size/comment-page-1#comment-35105</link>
		<dc:creator>Alexander Ananiev</dc:creator>
		<pubDate>Thu, 19 Nov 2009 04:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/?p=235#comment-35105</guid>
		<description>Bob, thanks for all your comments, I will certainly check out the book.
I still think that IBM python APIs are far from perfect to put it mildly. OK, they don&#039;t want to use tuples, but what about dictionaries or keyword arguments? They should provide separate wrapper objects for python and JACL if the languages are so vastly different. Especially since JACL was deprecated.</description>
		<content:encoded><![CDATA[<p>Bob, thanks for all your comments, I will certainly check out the book.<br />
I still think that IBM python APIs are far from perfect to put it mildly. OK, they don&#8217;t want to use tuples, but what about dictionaries or keyword arguments? They should provide separate wrapper objects for python and JACL if the languages are so vastly different. Especially since JACL was deprecated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Gibson</title>
		<link>http://myarch.com/setting-heap-size/comment-page-1#comment-35098</link>
		<dc:creator>Bob Gibson</dc:creator>
		<pubDate>Wed, 18 Nov 2009 17:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/?p=235#comment-35098</guid>
		<description>Alexander:

  As you pointed out in your response to Kevin, the documentation for the WebSphere Application Server Scripting objects is a bit lacking.  ;-)

  Hence the need for a book like this &quot;WebSphere Application Server Administration using Jython&quot; (http://www.ibmpressbooks.com/bookstore/product.asp?isbn=9780137009527).

  I was pleased to see that your example specifically verifies the serverType before changing the heapsize.  I have seen too many scripts that don&#039;t take that kind of thing into account.

  Instead of using split( &#039;\n&#039; ) to separate the lines of text returned by the AdminConfig.list(), I prefer to use splitlines() string method, so my loops tend to look like this:


# Iterate over all servers - config ids (1 per line)
for serverID in AdminConfig.list( &#039;Server&#039; ).splitlines() :

...

And to answer your question:
# (odd choice I must say, why not use tuples?)

- tuples are a python construct/data structure.
- Remember that the scripting object API must be usable by both Jacl, and Jython...

Bob</description>
		<content:encoded><![CDATA[<p>Alexander:</p>
<p>  As you pointed out in your response to Kevin, the documentation for the WebSphere Application Server Scripting objects is a bit lacking.  ;-)</p>
<p>  Hence the need for a book like this &#8220;WebSphere Application Server Administration using Jython&#8221; (<a href="http://www.ibmpressbooks.com/bookstore/product.asp?isbn=9780137009527" rel="nofollow">http://www.ibmpressbooks.com/bookstore/product.asp?isbn=9780137009527</a>).</p>
<p>  I was pleased to see that your example specifically verifies the serverType before changing the heapsize.  I have seen too many scripts that don&#8217;t take that kind of thing into account.</p>
<p>  Instead of using split( &#8216;\n&#8217; ) to separate the lines of text returned by the AdminConfig.list(), I prefer to use splitlines() string method, so my loops tend to look like this:</p>
<p># Iterate over all servers &#8211; config ids (1 per line)<br />
for serverID in AdminConfig.list( &#8216;Server&#8217; ).splitlines() :</p>
<p>&#8230;</p>
<p>And to answer your question:<br />
# (odd choice I must say, why not use tuples?)</p>
<p>- tuples are a python construct/data structure.<br />
- Remember that the scripting object API must be usable by both Jacl, and Jython&#8230;</p>
<p>Bob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Ananiev</title>
		<link>http://myarch.com/setting-heap-size/comment-page-1#comment-35022</link>
		<dc:creator>Alexander Ananiev</dc:creator>
		<pubDate>Tue, 04 Aug 2009 02:57:39 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/?p=235#comment-35022</guid>
		<description>Kevin, 
Thanks for the tip. Using AdminTask is certainly shorter, but scripting it from scratch gives you more flexibility. Also, I was trying to give a good example of how to use AdminConfig, I think that the WAS documentation is lacking in this area.</description>
		<content:encoded><![CDATA[<p>Kevin,<br />
Thanks for the tip. Using AdminTask is certainly shorter, but scripting it from scratch gives you more flexibility. Also, I was trying to give a good example of how to use AdminConfig, I think that the WAS documentation is lacking in this area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin McGrath</title>
		<link>http://myarch.com/setting-heap-size/comment-page-1#comment-35017</link>
		<dc:creator>Kevin McGrath</dc:creator>
		<pubDate>Sat, 01 Aug 2009 19:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://myarch.com/?p=235#comment-35017</guid>
		<description>There is no question that the code you supply will work.  There are, however, much easier ways to change JVM parameters -- approaches that require a lot less string manipulation.  If you want to change heap size, you could call one of several AdminTask methods.
# Assume n holds the name of a node and s holds the name of a server in that node
# those are names, NOT configuration IDs
# n is not needed if the server name is unique within the cell

AdminTask.setJVMInitialHeapSize( &#039;[ -nodeName &#039; + n + &#039; -serverName &#039; + s + &#039; -initialHeapSize &#039; + str( 384 ) + &#039; ]&#039; )
AdminTask.setJVMMaxHeapSize( &#039;[ -nodeName &#039; + n + &#039; -serverName &#039; + s + &#039; -maximumHeapSize &#039; + str( 944 ) + &#039; ]&#039; )

# or you could set a bunch of JVM properties in one call
AdminTask.setJVMProperties( &#039;[ -nodeName &#039; + n + &#039; -serverName &#039; + s + &#039; -initialHeapSize &#039; + str( 384 ) + &#039; -maximumHeapSize &#039; + str( 944 ) + &#039; -verboseModeGarbageCollection true &#039; + &#039; ]&#039; )</description>
		<content:encoded><![CDATA[<p>There is no question that the code you supply will work.  There are, however, much easier ways to change JVM parameters &#8212; approaches that require a lot less string manipulation.  If you want to change heap size, you could call one of several AdminTask methods.<br />
# Assume n holds the name of a node and s holds the name of a server in that node<br />
# those are names, NOT configuration IDs<br />
# n is not needed if the server name is unique within the cell</p>
<p>AdminTask.setJVMInitialHeapSize( &#8216;[ -nodeName ' + n + ' -serverName ' + s + ' -initialHeapSize ' + str( 384 ) + ' ]&#8216; )<br />
AdminTask.setJVMMaxHeapSize( &#8216;[ -nodeName ' + n + ' -serverName ' + s + ' -maximumHeapSize ' + str( 944 ) + ' ]&#8216; )</p>
<p># or you could set a bunch of JVM properties in one call<br />
AdminTask.setJVMProperties( &#8216;[ -nodeName ' + n + ' -serverName ' + s + ' -initialHeapSize ' + str( 384 ) + ' -maximumHeapSize ' + str( 944 ) + ' -verboseModeGarbageCollection true ' + ' ]&#8216; )</p>
]]></content:encoded>
	</item>
</channel>
</rss>

