<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>INOUE Katsumi&#039;s Blog</title>
	<atom:link href="http://katsumiinoue.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://katsumiinoue.wordpress.com</link>
	<description>Copied from http://blogs.sun.com/LetTheSunshineIn</description>
	<lastBuildDate>Fri, 05 Aug 2011 01:30:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='katsumiinoue.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>INOUE Katsumi&#039;s Blog</title>
		<link>http://katsumiinoue.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://katsumiinoue.wordpress.com/osd.xml" title="INOUE Katsumi&#039;s Blog" />
	<atom:link rel='hub' href='http://katsumiinoue.wordpress.com/?pushpress=hub'/>
		<item>
		<title>stub out Berkeley DB binary Runpath</title>
		<link>http://katsumiinoue.wordpress.com/2010/01/27/stub-out-berkeley-db-binary-runpath/</link>
		<comments>http://katsumiinoue.wordpress.com/2010/01/27/stub-out-berkeley-db-binary-runpath/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 07:27:09 +0000</pubDate>
		<dc:creator>katsumiinoue</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://katsumiinoue.wordpress.com/2010/01/27/stub-out-berkeley-db-binary-runpath/</guid>
		<description><![CDATA[I found out that all google:&#8221;Berkeley DB&#8221; binaries on Solaris x86 have (or had) problem whereby libraries are searched on /net directory. # /usr/ccs/bin/elfdump -d /usr/lib/bdb/db_verify &#124; grep 'R*PATH' [5] RUNPATH 0x225 /net/sunserver.loc0a/export/JES/U1/BDB/sbi/20070123.1/builds/solaris_x86/RELEASE/build.4.2.52_solaris_x86_5.10-RELEASE.01.23.2007.0847/usr/lib [6] RPATH 0x225 /net/sunserver.loc0a/export/JES/U1/BDB/sbi/20070123.1/builds/solaris_x86/RELEASE/build.4.2.52_solaris_x86_5.10-RELEASE.01.23.2007.0847/usr/lib I read this and thought about compiling the attached source. But I couldn&#8217;t find x86 where google:&#8221;SunStudio&#8221; or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=6&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I found out that all google:&#8221;Berkeley DB&#8221; binaries on Solaris x86 have (or had) problem whereby libraries are searched on  /net directory.</p>
<pre><span style="color:rgb(255,255,255);">#</span> <span style="color:rgb(255,255,0);">/usr/ccs/bin/elfdump -d /usr/lib/bdb/db_verify | grep 'R*PATH'</span>
[5]  RUNPATH           0x225               /net/sunserver.loc0a/export/JES/U1/BDB/sbi/20070123.1/builds/solaris_x86/RELEASE/build.4.2.52_solaris_x86_5.10-RELEASE.01.23.2007.0847/usr/lib
[6]  RPATH             0x225               /net/sunserver.loc0a/export/JES/U1/BDB/sbi/20070123.1/builds/solaris_x86/RELEASE/build.4.2.52_solaris_x86_5.10-RELEASE.01.23.2007.0847/usr/lib</pre>
<p>I read this and thought about compiling the attached source. But I couldn&#8217;t find x86 where google:&#8221;SunStudio&#8221; or gcc was installed.</p>
<p><a href="http://blogs.sun.com/ali/entry/changing_elf_runpaths">Changing ELF Runpaths (Code Included) : Ali Bahrami</a></p>
<blockquote><p>A recent change to Solaris ELF files makes it possible to change the google:&#8221;runpath&#8221; of a dynamic executable</p></blockquote>
<p>Then I read this.</p>
<p><a href="http://blogs.sun.com/ali/entry/introducing_elfedit_a_tool_for">Introducing elfedit: A Tool For Modifying Existing ELF Objects : Ali Bahrami</a></p>
<blockquote><p>elfedit can indeed modify the runpath in an object, but it is considerably more general than that. elfedit is a tool for examining and modifying the ELF metadata that resides within google:&#8221;ELF object&#8221;s.</p></blockquote>
<p>So, I extracted google:&#8221;elfedit&#8221; and related libraries from internal google:&#8221;Nevada install&#8221; server onto Solaris 10. Maybe I&#8217;m showing my ignorance here. I couldn&#8217;t make it work on Solaris 10. It could have possibly worked although surely not supported.</p>
<p>So, I decided to hack the binaries. I was a little scared when google:&#8221;strings&#8221; command didn&#8217;t show it.</p>
<pre><span style="color:rgb(255,255,255);">#</span> <span style="color:rgb(255,255,0);">/usr/bin/strings /usr/lib/bdb/google:"db_verify" | grep /net</span></pre>
<p>But google:&#8221;GNU strings&#8221; can show it.</p>
<pre><span style="color:rgb(255,255,255);">#</span> <span style="color:rgb(255,255,0);">/usr/sfw/bin/gstrings --target=elf32-i386 db_verify | grep /net</span>
/net/sunserver.loc0a/export/JES/U1/BDB/sbi/20070123.1/builds/solaris_x86/RELEASE/build.4.2.52_solaris_x86_5.10-RELEASE.01.23.2007.0847/usr/lib</pre>
<p>I used google:&#8221;GNU sed&#8221; to google:&#8221;stub out&#8221; runpath.</p>
<pre><span style="color:rgb(255,255,255);">#</span> <span style="color:rgb(255,255,0);">gnused -i.backup 's|\/net/sunserver.loc0a/export/JES/U1/BDB/sbi/20070123.1/builds/solaris_x86/RELEASE/build.4.2.52_solaris_x86_5.10-RELEASE.01.23.2007.0847/usr/lib|                                                                                                                                              |' db_*</span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/katsumiinoue.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/katsumiinoue.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/katsumiinoue.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/katsumiinoue.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/katsumiinoue.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/katsumiinoue.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/katsumiinoue.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/katsumiinoue.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/katsumiinoue.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/katsumiinoue.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/katsumiinoue.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/katsumiinoue.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/katsumiinoue.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/katsumiinoue.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=6&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://katsumiinoue.wordpress.com/2010/01/27/stub-out-berkeley-db-binary-runpath/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e1bf46c30dfc46df49d15b060ebc1ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">katsumiinoue</media:title>
		</media:content>
	</item>
		<item>
		<title>DSEE6.3.1 Berkeley DB datafile 32/64-bit compatibility</title>
		<link>http://katsumiinoue.wordpress.com/2010/01/21/dsee6-3-1-berkeley-db-datafile-3264-bit-compatibility/</link>
		<comments>http://katsumiinoue.wordpress.com/2010/01/21/dsee6-3-1-berkeley-db-datafile-3264-bit-compatibility/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 07:06:08 +0000</pubDate>
		<dc:creator>katsumiinoue</dc:creator>
				<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://katsumiinoue.wordpress.com/2010/01/21/dsee6-3-1-berkeley-db-datafile-3264-bit-compatibility/</guid>
		<description><![CDATA[google:&#8221;Berkeley DB&#8221; (aka google:&#8221;SleepyCat&#8221;) is used in google:&#8221;DSEE&#8221; and Messaging Server. So, this VM contains many bdb datafiles created by 64-bit bdb library/executables. Using the Sun Java Communications Suite VMware Image &#8211; Sun Java Communications Suite &#8211; wikis.sun.com This image is 64-bit only. So, when I started this VM on 32-bit machine, DSEE failed to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=7&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>google:&#8221;Berkeley DB&#8221; (aka google:&#8221;SleepyCat&#8221;) is used in google:&#8221;DSEE&#8221; and Messaging Server. So, this VM contains many bdb datafiles created by 64-bit bdb library/executables.</p>
<p><a href="http://wikis.sun.com/display/CommSuite/Using+the+Sun+Java+Communications+Suite+VMware+Image">Using the Sun Java Communications Suite VMware Image &#8211; Sun Java Communications Suite &#8211; wikis.sun.com</a></p>
<blockquote><p>This image is 64-bit only.
</p></blockquote>
<p>So, when I started this VM on 32-bit machine, DSEE failed to start. I know it. DSEE does not support copying over bdb files over to different platform. Apparently, google:&#8221;OpenLDAP&#8221; doesn&#8217;t either.</p>
<p><a href="http://www.openldap.org/lists/openldap-devel/200311/msg00025.html">RE: BDB, endian</a></p>
<blockquote><p>The ID&#8217;s do not have a fixed, platform-independent, data-type associated with them, i.e. on 32-bit platforms the ID&#8217;s are 32-bit integer values and on 64-bit platforms the ID&#8217;s are 64-bit integer values.</p></blockquote>
<p>But, in the rare hope that it would work, I edited several text files, among which was google:&#8221;dse.ldif&#8221;. The error finally reduced to __db.001 file. I googled and found a hint at google:&#8221;RedHat package management&#8221;.</p>
<p>I have used RedHat around 15 years and didn&#8217;t know BerkeleyDB was used there.</p>
<p><a href="https://bugzilla.redhat.com/show_bug.cgi?id=486423">Bug 486423 – rpmdb locking broken by other-arch rpmquery</a></p>
<blockquote><p>it&#8217;s deep internals of BDB and contains inherently architecture-dependent data like pointers to memory IIRC</p></blockquote>
<p>I removed __db.001 files and , finally, DSEE631 32-bit started fine!</p>
<p>But this way   of migrating data is not supported. In fact, if index was there or datafile was 8GB large, it may not work.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/katsumiinoue.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/katsumiinoue.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/katsumiinoue.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/katsumiinoue.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/katsumiinoue.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/katsumiinoue.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/katsumiinoue.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/katsumiinoue.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/katsumiinoue.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/katsumiinoue.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/katsumiinoue.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/katsumiinoue.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/katsumiinoue.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/katsumiinoue.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=7&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://katsumiinoue.wordpress.com/2010/01/21/dsee6-3-1-berkeley-db-datafile-3264-bit-compatibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e1bf46c30dfc46df49d15b060ebc1ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">katsumiinoue</media:title>
		</media:content>
	</item>
		<item>
		<title>knowing virtual machine guest IP address</title>
		<link>http://katsumiinoue.wordpress.com/2010/01/20/knowing-virtual-machine-guest-ip-address/</link>
		<comments>http://katsumiinoue.wordpress.com/2010/01/20/knowing-virtual-machine-guest-ip-address/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 06:05:48 +0000</pubDate>
		<dc:creator>katsumiinoue</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://katsumiinoue.wordpress.com/2010/01/20/knowing-virtual-machine-guest-ip-address/</guid>
		<description><![CDATA[I have a habit of running google:&#8221;VirtualBox&#8221; or google:&#8221;VMware&#8221; image and run it in google:&#8221;headless mode&#8221;, &#8230; blindly &#8230;, without checking config file. I own VMware Workstation so this is possible. AFAIK, this is OK with VirtualBox. It enables google:&#8221;RDP&#8221; be default. So, one can always connect from remote Windows,.. or google:&#8221;SunRay&#8221;, etc. Today, I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=9&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have a habit of running google:&#8221;VirtualBox&#8221; or google:&#8221;VMware&#8221; image and run it in google:&#8221;headless mode&#8221;, &#8230; blindly <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8230;, without checking config file. I own VMware Workstation so this is possible.</p>
<p>AFAIK, this is OK with VirtualBox. It enables google:&#8221;RDP&#8221; be default. So, one can always connect from remote Windows,.. or google:&#8221;SunRay&#8221;, etc.</p>
<p>Today, I learned VMware doesn&#8217;t take care of enabling google:&#8221;VNC&#8221; remote access. The VM I tried is from:</p>
<p><a href="http://blogs.sun.com/factotum/entry/communications_suite_7_installing_the">Communications Suite 7: Installing the VMware Image &#8211; Factotum</a></p>
<blockquote><p>Communications Suite 7 VMware image is a simple and portable method for demonstrating Communications Suite 7 features without the overhead of installation and configuration.</p></blockquote>
<p>
I started this vm like:</p>
<pre>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">vmrun start SunJava_Comms_Suite7u0_VM/*.vmx nogui</span>
</pre>
<p>I tried to access it from VNC viewer on Windows. Failed&#8230;  So, what did I do ? </p>
<p>I could have google:&#8221;ACPI&#8221; shut down this vm pretty much safely like this and configure vnc and restart it.</p>
<pre>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">vmrun stop SunJava_Comms_Suite7u0_VM/*.vmx soft</span>
</pre>
<p>Instead, I chose to ssh into this vm. First, I checked how vm guest network is configured.</p>
<pre>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">grep connection SunJava_Comms_Suite7u0_VM/*.vmx</span>
ethernet0.connectionType = "nat"
</pre>
<p>It&#8217;s google:&#8221;NAT&#8221;. This means it uses google:&#8221;VMNet8&#8243; subnet on host. And if guest is set up for DHCP, it would get IP address from dhcp server for vmnet8.</p>
<pre>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">grep ethernet.*Address SunJava_Comms_Suite7u0_VM/*.vmx</span>
ethernet0.generatedAddress = "00:0c:29:55:ce:5b"
ethernet0.generatedAddressOffset = "0"
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">grep -B 3 00:0c:29:55:ce:5b /etc/vmware/vmnet8/dhcpd/dhcpd.leases</span>
lease 172.16.128.130 {
starts 3 2010/01/20 05:56:45;
ends 3 2010/01/20 05:56:44;
hardware ethernet 00:0c:29:55:ce:5b;
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">ping -b 172.16.128.255</span>
WARNING: pinging broadcast address
PING 172.16.128.255 (172.16.128.255) 56(84) bytes of data.
64 bytes from 172.16.128.1: icmp_seq=0 ttl=64 time=0.042 ms
64 bytes from 172.16.128.130: icmp_seq=0 ttl=255 time=1.63 ms (DUP!)
</pre>
<p>Voila! Now, I can ssh.</p>
<pre>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">ssh root@172.16.128.130</span>
Warning: Your password has expired, please change it now.
New Password:
Re-enter new Password:
sshd-kbdint: password successfully changed for root
Last login: Tue Dec 15 02:26:34 2009 from 10.1.110.19
Sun Mircosystems Inc.   SunOS 5.10      Generic January 2005
Sun Communications Suite 7
Deployed via the EMRA Toolkit (version 7.0-0.02)
Virtual Machine Built: 12:15:00:44.25-2009
Product: Messaging Server (64bit) 7u3                Version: 7.3-11.01
Product: Comms DSsetup 6.4                           Version: 6.4-5.05
Product: Calendar Server 7                           Version: 7.0-0.26
Product: Instant Messaging 8u2                       Version: 8.2-02.04
Product: Convergence 1u3                             Version: 1.0-10.01
Product: Indexing and Search Service 1.0             Version: 1.0-32.01
Product: Comms Delegated Administrator 7             Version: 7.0-1.00
Product: Calendar Server 6.3                         Version: 6.3-19.01
</pre>
<p>Nice! I didn&#8217;t know that Solaris can set expiration on root password.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/katsumiinoue.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/katsumiinoue.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/katsumiinoue.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/katsumiinoue.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/katsumiinoue.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/katsumiinoue.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/katsumiinoue.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/katsumiinoue.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/katsumiinoue.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/katsumiinoue.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/katsumiinoue.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/katsumiinoue.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/katsumiinoue.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/katsumiinoue.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=9&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://katsumiinoue.wordpress.com/2010/01/20/knowing-virtual-machine-guest-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e1bf46c30dfc46df49d15b060ebc1ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">katsumiinoue</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows dtrace like tool runs faster than on Solaris</title>
		<link>http://katsumiinoue.wordpress.com/2010/01/18/windows-dtrace-like-tool-runs-faster-than-on-solaris/</link>
		<comments>http://katsumiinoue.wordpress.com/2010/01/18/windows-dtrace-like-tool-runs-faster-than-on-solaris/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 06:34:18 +0000</pubDate>
		<dc:creator>katsumiinoue</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://katsumiinoue.wordpress.com/2010/01/18/windows-dtrace-like-tool-runs-faster-than-on-solaris/</guid>
		<description><![CDATA[I stumbled upon an interesting tool. NTrace NTrace uses a novel approach of instrumenting binary code on the fly by leveraging certain aspects of the Microsoft hotpatching infrastructure. This allows NTrace to be both very robust and fast: On x86, NTrace outperforms google:&#8221;DTrace&#8221; by a factor of almost three! This tool is not yet downloadable. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=10&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I stumbled upon an interesting tool.</p>
<p><a href="http://ntrace.org/">NTrace</a><br />
<blockquote>NTrace uses a novel approach of instrumenting binary code on the fly by leveraging certain aspects of the Microsoft hotpatching infrastructure. This allows NTrace to be both very robust and fast: On x86, NTrace outperforms google:&#8221;DTrace&#8221; by a factor of almost three!</p></blockquote>
<ol>
<li>This tool is not yet downloadable.</li>
<li>I think this tool is more closer to google:&#8221;truss&#8221;(google:&#8221;strace&#8221; on linux) than to google:&#8221;dtrace&#8221;.</li>
<li>The author apparently did a good study on dtrace implementations and explains difference between SPARC and IA-32 in &#8220;<a href="http://go2.wordpress.com/?id=725X1342&amp;site=ntrace.wordpress.com&amp;url=http%3A%2F%2Fint3.de%2Fdownload%2Fntrace%2FNTrace_FunctionBoundaryTracingForIa32.pdf">NTrace: Function Boundary Tracing for Windows on IA-32</a>&#8220;.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/katsumiinoue.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/katsumiinoue.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/katsumiinoue.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/katsumiinoue.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/katsumiinoue.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/katsumiinoue.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/katsumiinoue.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/katsumiinoue.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/katsumiinoue.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/katsumiinoue.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/katsumiinoue.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/katsumiinoue.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/katsumiinoue.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/katsumiinoue.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=10&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://katsumiinoue.wordpress.com/2010/01/18/windows-dtrace-like-tool-runs-faster-than-on-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e1bf46c30dfc46df49d15b060ebc1ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">katsumiinoue</media:title>
		</media:content>
	</item>
		<item>
		<title>Cygwin tells you Windows java.exe default thread stack size</title>
		<link>http://katsumiinoue.wordpress.com/2010/01/08/cygwin-tells-you-windows-java-exe-default-thread-stack-size/</link>
		<comments>http://katsumiinoue.wordpress.com/2010/01/08/cygwin-tells-you-windows-java-exe-default-thread-stack-size/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 09:23:11 +0000</pubDate>
		<dc:creator>katsumiinoue</dc:creator>
				<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://katsumiinoue.wordpress.com/2010/01/08/cygwin-tells-you-windows-java-exe-default-thread-stack-size/</guid>
		<description><![CDATA[Frequently Asked Questions About the Java HotSpot VM On Windows, the default thread stack size is read from the binary (java.exe). As of Java SE 6, this value is 320k in the 32-bit VM and 1024k in the 64-bit VM. So, let&#8217;s see it in google!&#8221;Cygwin&#8221;. Another way to check is with Microsoft&#8217;s MSVC &#8220;google:&#8221;dumpbin&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=11&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://java.sun.com/docs/hotspot/HotSpotFAQ.html#threads_oom">Frequently Asked Questions About the Java HotSpot VM</a><br />
<blockquote>On Windows, the default thread stack size is read from the binary (java.exe). As of Java SE 6, this value is 320k in the 32-bit VM and 1024k in the 64-bit VM.</p></blockquote>
<p>So, let&#8217;s see it in google!&#8221;Cygwin&#8221;. Another way to check is with Microsoft&#8217;s MSVC &#8220;google:&#8221;dumpbin&#8221; /headers&#8221; command.</p>
<pre>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">type objdump</span>
objdump is hashed (/usr/bin/objdump)
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">objdump -p /c/d/Program\ Files/Java/jre1.6.0_07/bin/java.exe | grep stack</span>
SizeOfStackReserve      00050000
SizeOfStackCommit       00001000</pre>
<p>These values are in hex. So show them in decimal.</p>
<pre><span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">objdump -p /c/d/Program\ Files/Java/jre<span style="color:rgb(255,0,0);">1.6</span>.0_07/bin/java.exe | grep stack | cut -f2 | sed 's/^/0x/' | xargs printf "%d %d\n"</span>
327680 4096
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">objdump -p /c/d/Program\ Files/Java/jre<span style="color:rgb(255,0,0);">1.5</span>.0_16/bin/java.exe | grep stack | cut -f2 | sed 's/^/0x/' | xargs printf "%d %d\n"</span>
262144 4096</pre>
<p>So, it&#8217;s 256KB in 1.5 and 320KB in 1.6.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/katsumiinoue.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/katsumiinoue.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/katsumiinoue.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/katsumiinoue.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/katsumiinoue.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/katsumiinoue.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/katsumiinoue.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/katsumiinoue.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/katsumiinoue.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/katsumiinoue.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/katsumiinoue.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/katsumiinoue.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/katsumiinoue.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/katsumiinoue.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=11&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://katsumiinoue.wordpress.com/2010/01/08/cygwin-tells-you-windows-java-exe-default-thread-stack-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e1bf46c30dfc46df49d15b060ebc1ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">katsumiinoue</media:title>
		</media:content>
	</item>
		<item>
		<title>my blog quoted on ORACLE technet forum</title>
		<link>http://katsumiinoue.wordpress.com/2009/12/09/my-blog-quoted-on-oracle-technet-forum/</link>
		<comments>http://katsumiinoue.wordpress.com/2009/12/09/my-blog-quoted-on-oracle-technet-forum/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 06:21:28 +0000</pubDate>
		<dc:creator>katsumiinoue</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://katsumiinoue.wordpress.com/2009/12/09/my-blog-quoted-on-oracle-technet-forum/</guid>
		<description><![CDATA[My previous entry is apparently a oracle FAQ. OTN Discussion Forums : tkprof &#8230; I have 10 udump trace files generated by batch that run in 10 process.I would like to merge them into one tkprof file. I don&#8217;t think my solution of using google:&#8221;/dev/stdin&#8221; is actually supported by oracle. Supported way is to use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=12&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.sun.com/LetTheSunShineIn/entry/oracle_tkprof_utility_can_read">My previous entry</a> is apparently a oracle FAQ. </p>
<p><a href="http://forums.oracle.com/forums/thread.jspa?threadID=995396&amp;tstart=60">OTN Discussion Forums : tkprof &#8230;</a><br />
<blockquote>I have 10 udump trace files generated by batch that run in 10 process.<br />I would like to merge them into one tkprof file.</p></blockquote>
<p>I don&#8217;t think my solution of using google:&#8221;/dev/stdin&#8221; is actually supported by oracle. Supported way is to use a Java tool called google:&#8221;trcsess&#8221; on oracle 10g and up.</p>
<p> Just for the fun of it, I tried using google:&#8221;/dev/stdin&#8221; on google:&#8221;trcsess&#8221; command line. It worked! So, here&#8217;s my hypothesis of the day:<br />&#8220;Any Java program which takes filename as an argument can read /dev/stdin because Java program doesn&#8217;t call lower library functions.&#8221;</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=8b776f14-ea66-8f7d-bfb7-333d42819ccd" /></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/katsumiinoue.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/katsumiinoue.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/katsumiinoue.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/katsumiinoue.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/katsumiinoue.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/katsumiinoue.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/katsumiinoue.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/katsumiinoue.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/katsumiinoue.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/katsumiinoue.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/katsumiinoue.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/katsumiinoue.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/katsumiinoue.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/katsumiinoue.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=12&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://katsumiinoue.wordpress.com/2009/12/09/my-blog-quoted-on-oracle-technet-forum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e1bf46c30dfc46df49d15b060ebc1ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">katsumiinoue</media:title>
		</media:content>

		<media:content url="http://img.zemanta.com/pixy.gif?x-id=8b776f14-ea66-8f7d-bfb7-333d42819ccd" medium="image" />
	</item>
		<item>
		<title>ORACLE tkprof utility can read multiple SQL trace files</title>
		<link>http://katsumiinoue.wordpress.com/2009/11/26/oracle-tkprof-utility-can-read-multiple-sql-trace-files/</link>
		<comments>http://katsumiinoue.wordpress.com/2009/11/26/oracle-tkprof-utility-can-read-multiple-sql-trace-files/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 08:40:30 +0000</pubDate>
		<dc:creator>katsumiinoue</dc:creator>
				<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://katsumiinoue.wordpress.com/2009/11/26/oracle-tkprof-utility-can-read-multiple-sql-trace-files/</guid>
		<description><![CDATA[Don&#8217;t we all command line workers get angry when a command google:&#8221;can&#8217;t read from stdin&#8221;? I thought oracle&#8217;s google:&#8221;tkprof&#8221; is one such command. I was wrong! This is very useful when there are many small SQL trace files or when one wants to tkprof zipped trace file as is, like below. I checked the generated [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=13&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t we all command line workers get angry when a command google:&#8221;can&#8217;t read from stdin&#8221;? I thought oracle&#8217;s google:&#8221;tkprof&#8221; is one such command. I was wrong! This is very useful when there are many small SQL trace files or when one wants to tkprof zipped trace file as is, like below. I checked the generated file content briefly and as far as I can tell, aggregation was done correctly.</p>
<pre>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">echo *.trc | wc -w</span>
220
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">cat *.trc | wc -l</span>
3391365
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">cat *.trc | tkprof /dev/stdin all.tkprof</span>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">tail all.tkprof</span>
280  sessions in tracefile.
3150861  user  SQL statements in trace file.
79974  internal SQL statements in trace file.
17923  SQL statements in trace file.
4434  unique SQL statements in trace file.
3391365  lines in trace file.
</pre>
<pre>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">(gzcat orcl_ora_9120.trc.gz &amp;&amp; gzcat orcl_ora_9845.trc.gz) | wc -l</span>
6829778
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">(gzcat orcl_ora_9120.trc.gz &amp;&amp; gzcat orcl_ora_9845.trc.gz) | tkprof /dev/stdin /tmp/test.tkprof</span>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">tail /tmp/test.tkprof</span>
3  sessions in tracefile.
50078  user  SQL statements in trace file.
47  internal SQL statements in trace file.
30583  SQL statements in trace file.
8920  unique SQL statements in trace file.
6829778  lines in trace file.
15995  elapsed seconds in trace file.
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/katsumiinoue.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/katsumiinoue.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/katsumiinoue.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/katsumiinoue.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/katsumiinoue.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/katsumiinoue.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/katsumiinoue.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/katsumiinoue.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/katsumiinoue.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/katsumiinoue.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/katsumiinoue.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/katsumiinoue.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/katsumiinoue.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/katsumiinoue.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=13&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://katsumiinoue.wordpress.com/2009/11/26/oracle-tkprof-utility-can-read-multiple-sql-trace-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e1bf46c30dfc46df49d15b060ebc1ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">katsumiinoue</media:title>
		</media:content>
	</item>
		<item>
		<title>cron vs. &#8216;at&#8217;: run command at varying intervals with self-registering &#8216;at&#8217;</title>
		<link>http://katsumiinoue.wordpress.com/2009/11/06/cron-vs-at-run-command-at-varying-intervals-with-self-registering-at/</link>
		<comments>http://katsumiinoue.wordpress.com/2009/11/06/cron-vs-at-run-command-at-varying-intervals-with-self-registering-at/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 12:31:59 +0000</pubDate>
		<dc:creator>katsumiinoue</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://katsumiinoue.wordpress.com/2009/11/06/cron-vs-at-run-command-at-varying-intervals-with-self-registering-at/</guid>
		<description><![CDATA[I wanted to check whether our business critical web server is up in every 6 hours. First I thought I run ping every 6 hours via &#8216;cron&#8217;. But I want to ping more often once server is detected down and until it comes back up. So, I came up with this self registering &#8216;at&#8217; script. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=14&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wanted to check whether our business critical web server is up in every 6 hours.</p>
<p> First I thought I run ping every 6 hours via &#8216;cron&#8217;. But I want to ping more often once server is detected down and until it comes back up.</p>
<p> So, I came up with this self registering &#8216;at&#8217; script. This begins pinging the server in google:&#8221;incremental backoff&#8221; intervals once it&#8217;s detected down. Starts at 1 minute, and then 2 minutes. 3,4,5&#8230; If you replace &#8220;+1&#8243; wit &#8220;*2&#8243;, it will do google:&#8221;exponential backoff&#8221;. 1,2,4,8,16&#8230;</p>
<pre>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">cat ~/misc/myServerPing.at</span>
<span style="color:rgb(255,255,255);">#</span> <span style="color:rgb(255,255,0);">THISFILE should be full path or relative from $HOME</span>
<span style="color:rgb(255,255,255);">#</span> <span style="color:rgb(255,255,0);">Run this in bash by ". {this file}"</span>
THISFILE=misc/myServerPing.at
INTERVAL=1
curl --silent --connect-timeout 8 http://ourserver.sun.com | grep "Our critical page" &gt; /dev/null
if [ $? -ne 0 ]; then
date | mailx -s "Failed ping to ourserver" my.mail.address@sun.com
sed "s/^\(INTERVAL=\)[1-9]*$/\\1$(($INTERVAL<span style="color:rgb(255,0,0);">+1</span>))/" $THISFILE | at now + $INTERVAL minutes &gt; /dev/null 2&gt;&amp;1
else
at now + 360 minutes  /dev/null 2&gt;&amp;1
fi
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/katsumiinoue.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/katsumiinoue.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/katsumiinoue.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/katsumiinoue.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/katsumiinoue.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/katsumiinoue.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/katsumiinoue.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/katsumiinoue.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/katsumiinoue.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/katsumiinoue.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/katsumiinoue.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/katsumiinoue.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/katsumiinoue.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/katsumiinoue.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=14&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://katsumiinoue.wordpress.com/2009/11/06/cron-vs-at-run-command-at-varying-intervals-with-self-registering-at/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e1bf46c30dfc46df49d15b060ebc1ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">katsumiinoue</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows 2003 での UQ WiMAX</title>
		<link>http://katsumiinoue.wordpress.com/2009/10/03/windows-2003-%e3%81%a7%e3%81%ae-uq-wimax/</link>
		<comments>http://katsumiinoue.wordpress.com/2009/10/03/windows-2003-%e3%81%a7%e3%81%ae-uq-wimax/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 15:51:43 +0000</pubDate>
		<dc:creator>katsumiinoue</dc:creator>
				<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://katsumiinoue.wordpress.com/2009/10/03/windows-2003-%e3%81%a7%e3%81%ae-uq-wimax/</guid>
		<description><![CDATA[先日google!&#8221;UQ WiMAX&#8221;の以下の端末が届いたので公式にはサポートされないWindows 2003でドライバーがインストールでき通信できるか試してみました。 UQ WiMAX &#124; WiMAX USB TYPE UD01NA # 製 品 名&#160;&#160;&#160; UD01NA # 製 造 元&#160;&#160;&#160; NECアクセステクニカ株式会社 今のところ問題なく動いています。ドライバーをインストールために以下の変更をしましたが本当に必要だったかどうか定かではありません。 $ diff $SYSTEMDRIVE/DRV/UD01NA/drxvi314.inf{.orig,} 10c10 signature="$Windows NT$"<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=15&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>先日google!&#8221;UQ WiMAX&#8221;の以下の端末が届いたので公式にはサポートされないWindows 2003でドライバーがインストールでき通信できるか試してみました。</p>
<p><a href="http://www.uqwimax.jp/service/product/UD01NA.html">UQ WiMAX | WiMAX USB TYPE UD01NA</a></p>
<blockquote><p># 製 品 名&nbsp;&nbsp;&nbsp; UD01NA<br />
# 製 造 元&nbsp;&nbsp;&nbsp; NECアクセステクニカ株式会社
</p></blockquote>
<p>今のところ問題なく動いています。ドライバーをインストールために以下の変更をしましたが本当に必要だったかどうか定かではありません。</p>
<pre>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">diff $SYSTEMDRIVE/DRV/UD01NA/drxvi314.inf{.orig,}</span>
10c10
 signature="$Windows NT$"
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/katsumiinoue.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/katsumiinoue.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/katsumiinoue.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/katsumiinoue.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/katsumiinoue.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/katsumiinoue.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/katsumiinoue.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/katsumiinoue.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/katsumiinoue.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/katsumiinoue.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/katsumiinoue.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/katsumiinoue.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/katsumiinoue.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/katsumiinoue.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=15&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://katsumiinoue.wordpress.com/2009/10/03/windows-2003-%e3%81%a7%e3%81%ae-uq-wimax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e1bf46c30dfc46df49d15b060ebc1ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">katsumiinoue</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse Solaris specific bug opening &gt;2GB file</title>
		<link>http://katsumiinoue.wordpress.com/2009/09/02/eclipse-solaris-specific-bug-opening-2gb-file/</link>
		<comments>http://katsumiinoue.wordpress.com/2009/09/02/eclipse-solaris-specific-bug-opening-2gb-file/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 09:01:57 +0000</pubDate>
		<dc:creator>katsumiinoue</dc:creator>
				<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://katsumiinoue.wordpress.com/2009/09/02/eclipse-solaris-specific-bug-opening-2gb-file/</guid>
		<description><![CDATA[I ran into this problem while running this &#8220;Stand-alone Eclipse RCP&#8220;. SAP Community Network Forums: Unable to open hprof file on Debian &#8230; on Solaris (and presumably Linux), this is because of an Eclipse bug &#8212; the org.eclipse.core.internal.filesystem.local.LocalFileNatives.internalGetFileInfo() method calls the system lstat() function, which is limited to 2GB files I couldn&#8217;t find a patch [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=18&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I ran into this problem while running this &#8220;<a href="http://www.eclipse.org/mat/downloads.php">Stand-alone Eclipse RCP</a>&#8220;.</p>
<p><a href="https://forums.sdn.sap.com/message.jspa?messageID=6055548">SAP Community Network Forums: Unable to open hprof file on Debian &#8230;</a></p>
<blockquote><p>on Solaris (and presumably Linux), this is because of an Eclipse bug &#8212; the org.eclipse.core.internal.filesystem.local.LocalFileNatives.internalGetFileInfo() method calls the system lstat() function, which is limited to 2GB files
</p></blockquote>
<p>I couldn&#8217;t find a patch for this bug but I guess fix is somewhere since this problem has been known for more than a year.<br />
Luckily, for this particular app, 2 work arounds are available which is explained in the SAP forum above.<br />
I tried 1st w/a of giving google:&#8221;java heap dump&#8221; file name on command line but I&#8217;m not sure it worked. I&#8217;m now testing 2nd w/a of hacking snapshotHistory.ser and it seems to work.<br />
<br />
Maybe I should have used google:&#8221;jhat&#8221; or NetBeans to begin with.</p>
<p>Here&#8217;s info of Eclipse native library called via google:&#8221;JNI&#8221;. The output only has &#8216;lstat&#8217; but not &#8216;lstat64&#8242;. I don&#8217;t know if this proves Eclipse bug.</p>
<pre>
<span style="color:rgb(255,255,255);">$</span> <span style="color:rgb(255,255,0);">pldd $(pgrep MemoryAnalyzer) | grep eclipse | while read line; do nm $line | ggrep -E '\|lstat|internalGetFileInfo\&gt;' &amp;&amp; echo $line ;done</span>
[72]    |      4732|     296|FUNC |GLOB |0    |9      |Java_org_eclipse_core_internal_filesystem_local_LocalFileNatives_internalGetFileInfo
[87]    |         0|       0|FUNC |GLOB |0    |UNDEF  |lstat
/mat/configuration/org.eclipse.osgi/bundles/69/1/.cp/os/solaris/sparc/liblocalfile_1_0_0.so
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/katsumiinoue.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/katsumiinoue.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/katsumiinoue.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/katsumiinoue.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/katsumiinoue.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/katsumiinoue.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/katsumiinoue.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/katsumiinoue.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/katsumiinoue.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/katsumiinoue.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/katsumiinoue.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/katsumiinoue.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/katsumiinoue.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/katsumiinoue.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=katsumiinoue.wordpress.com&amp;blog=11710743&amp;post=18&amp;subd=katsumiinoue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://katsumiinoue.wordpress.com/2009/09/02/eclipse-solaris-specific-bug-opening-2gb-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1e1bf46c30dfc46df49d15b060ebc1ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">katsumiinoue</media:title>
		</media:content>
	</item>
	</channel>
</rss>
