<?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/"
	>

<channel>
	<title>HollyGhozi &#187; PowerHub</title>
	<atom:link href="http://hollyghozi.com/index.php/tag/powerhub/feed/" rel="self" type="application/rss+xml" />
	<link>http://hollyghozi.com</link>
	<description>is another Javanese Indonesian fellow blog</description>
	<lastBuildDate>Sun, 18 Mar 2012 12:58:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PowerHub JDBC Log</title>
		<link>http://hollyghozi.com/index.php/2009/09/powerhub-jdbc-log/</link>
		<comments>http://hollyghozi.com/index.php/2009/09/powerhub-jdbc-log/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 07:13:09 +0000</pubDate>
		<dc:creator>hollyghozi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Landmark]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PowerHub]]></category>

		<guid isPermaLink="false">http://hollyghozi.com/?p=194</guid>
		<description><![CDATA[I&#8217;m supporting CDS in Oil Company based in the Netherland. CDS is a suite of application, one of the application is PowerHub. If I face a problem, I&#8217;ve to debug the PowerHub. One of method is to use log4jdbc. What I do is: 1. Download the log4jdbc4-1.2alpha2.jar, and put into $PE_HOME/jars 2. Download from SL4J [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m supporting <a href="http://www.halliburton.com/public/landmark/contents/Data_Sheets/web/H05239.pdf">CDS</a> in Oil Company based in the Netherland. CDS is a suite of application, one of the application is PowerHub.<br />
If I face a problem, I&#8217;ve to debug the PowerHub. One of method is to use <a href="http://code.google.com/p/log4jdbc/">log4jdbc</a>.</p>
<p>What I do is:<br />
1. Download the <a href="http://log4jdbc.googlecode.com/files/log4jdbc4-1.2alpha2.jar">log4jdbc4-1.2alpha2.jar</a>, and put into $PE_HOME/jars<br />
2. Download from <a href="http://www.slf4j.org">SL4J</a>  the compress file: <a href="http://www.slf4j.org/dist/slf4j-1.5.8.tar.gz">slf4j-1.5.8.tar.gz</a>. Extract slf4j-api-1.5.8.jar and slf4j-simple-1.5.8.jar from the compress file, and put into $PE_HOME/jars<br />
3. Modify $PE_HOME/conf/pe_dic.props, remark the old value and change the line:<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title="'dos'"><div class="devcodeoverflow"><ol><li>#pe_dic.Url=jdbc:oracle:thin:@myoraclemachine:1521:PHDIC</li><li>pe_dic.Url=jdbc:log4jdbc:oracle:thin:@myoraclemachine:1521:PHDIC</li><li>#pe_dic.Driver=oracle.jdbc.driver.OracleDriver</li><li>pe_dic.Driver=net.sf.log4jdbc.DriverSpy</li></ol></div></pre><!--END_DEVFMTCODE--><br />
4. Restart the PowerHub</p>
<p>You&#8217;ll need to check your $PE_HOME/logs/pe_dic-server.log, to see the additional jdbc log messages.<br />
Below is the snippet of the log file:<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title="'dos'"><div class="devcodeoverflow"><ol><li>.........</li><li>11824 [main] INFO jdbc.audit - 1. Connection.isClosed() returned false</li><li>11824 [main] INFO jdbc.audit - 1. Statement.new Statement returned </li><li>11824 [main] INFO jdbc.audit - 1. Connection.createStatement() returned net.sf.log4jdbc.StatementSpy@2e67cd84</li><li>11824 [main] INFO jdbc.sqlonly - SELECT upper(d.DATASTORE_NAME),c.DATABASE_S,c.DATABASE_NAME,c.TYPE,c.DRIVER,c.URL,c.TWO_TASK,c.SEQ_NAME,c.CLASS_NAME,c.PRIVATE </li><li>FROM SLG_DATABASE c, SLG_DATASTORE d WHERE c.DATASTORE_S=d.DATASTORE_S ORDER BY d.DATASTORE_NAME,c.DATABASE_NAME </li><li></li><li>11833 [main] INFO jdbc.sqltiming - SELECT upper(d.DATASTORE_NAME),c.DATABASE_S,c.DATABASE_NAME,c.TYPE,c.DRIVER,c.URL,c.TWO_TASK,c.SEQ_NAME,c.CLASS_NAME,c.PRIVATE </li><li>FROM SLG_DATABASE c, SLG_DATASTORE d WHERE c.DATASTORE_S=d.DATASTORE_S ORDER BY d.DATASTORE_NAME,c.DATABASE_NAME </li><li> {executed in 9 msec}</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.new ResultSet returned </li><li>11833 [main] INFO jdbc.audit - 1. Statement.executeQuery(SELECT upper(d.DATASTORE_NAME),c.DATABASE_S,c.DATABASE_NAME,c.TYPE,c.DRIVER,c.URL,c.TWO_TASK,c.SEQ_NAME,c.CLASS_NAME,c.PRIVATE FROM SLG_DATABASE c, SLG_DATASTORE d WHERE c.DATASTORE_S=d.DATASTORE_S ORDER BY d.DATASTORE_NAME,c.DATABASE_NAME) returned net.sf.log4jdbc.ResultSetSpy@20e5ace9</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.next() returned true</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.getString(1) returned AOI_SHAPEFILE</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.getString(2) returned 1263</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.getString(3) returned AOI_SHAPEFILE</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.getString(4) returned shapefile</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.getString(5) returned dummy</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.getString(6) returned dummy</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.getString(7) returned dummy</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.getString(8) returned seq</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.getString(9) returned null</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.getString(10) returned N</li><li>11833 [main] INFO jdbc.resultset - 1. ResultSet.next() returned true</li><li>.............</li></ol></div></pre><!--END_DEVFMTCODE--><br />
From the log file, you can see that the PowerHub tries to read the dictionary to get the databases information&#8230;</p>
<div class='ez_cc_license_block'><a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png"/></a><br/>This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.</div><div class='ez_cc_license_block'><a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png"/></a><br/>This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.</div>]]></content:encoded>
			<wfw:commentRss>http://hollyghozi.com/index.php/2009/09/powerhub-jdbc-log/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cannot find modules error when try to install</title>
		<link>http://hollyghozi.com/index.php/2009/08/cannot-find-modules-error-when-try-to-install/</link>
		<comments>http://hollyghozi.com/index.php/2009/08/cannot-find-modules-error-when-try-to-install/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 13:33:47 +0000</pubDate>
		<dc:creator>hollyghozi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Landmark]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PowerHub]]></category>

		<guid isPermaLink="false">http://hollyghozi.com/?p=189</guid>
		<description><![CDATA[We&#8217;re installing PowerHub using its installer in Linux machine. The installer is built using InstallAnyWhere, that use JRE inside the installer. The problem happen when we try to install as a user which its home directory is not mounted. We tried to set the HOME to other directory by setting up HOME environment variable. But, [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re installing PowerHub using its installer in Linux machine. The installer is built using InstallAnyWhere, that use JRE inside the installer. </p>
<p>The problem happen when we try to install as a user which its home directory is not mounted. We tried to set the HOME to other directory by setting up HOME environment variable. But, we got:<br />
<code>No module find error</code></p>
<p>Then we try to debug the installation by:<br />
<code>sh -x setup.bin</code><br />
It come back with a lot of debug messages, and at the end we will see a line with:<br />
<code>CLASSPATH=/tmp/install.829388/jar/...<br />
exec /tmp/install.829388/jre/bin/java ....</code></p>
<p>What we did is to manipulate the user home by<br />
<code>$export CLASSPATH=/tmp/install.829388/jar/...<br />
/tmp/install.829388/jre/bin/java -Duser.home=/tmp/tmpdir ... </code><br />
This way, we will force the installer to use different HOME directory</p>
<div class='ez_cc_license_block'><a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png"/></a><br/>This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.</div><div class='ez_cc_license_block'><a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png"/></a><br/>This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.</div>]]></content:encoded>
			<wfw:commentRss>http://hollyghozi.com/index.php/2009/08/cannot-find-modules-error-when-try-to-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerHub: Installation Error with &#8216;/tmp does not have enough disk space&#8217;</title>
		<link>http://hollyghozi.com/index.php/2009/05/powerhub-installation-error-with-tmp-does-not-have-enough-disk-space/</link>
		<comments>http://hollyghozi.com/index.php/2009/05/powerhub-installation-error-with-tmp-does-not-have-enough-disk-space/#comments</comments>
		<pubDate>Mon, 18 May 2009 12:20:14 +0000</pubDate>
		<dc:creator>hollyghozi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Landmark]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PowerHub]]></category>

		<guid isPermaLink="false">http://hollyghozi.com/?p=173</guid>
		<description><![CDATA[When I&#8217;m installing PowerHub, I encounter the error message: WARNING: /tmp does not have enough disk space! Attempting to use /glb/home/s_peam01 for install base and tmp dir. Extracting the JRE from the installer archive... The included VM could not be extracted. Please try to download the installer again and make sure that you download using [...]]]></description>
			<content:encoded><![CDATA[<p>When I&#8217;m installing PowerHub, I encounter the error message:<br />
<code>WARNING: /tmp does not have enough disk space!<br />
         Attempting to use /glb/home/s_peam01 for install base and tmp dir.<br />
Extracting the JRE from the installer archive...<br />
The included VM could not be extracted. Please try to download<br />
the installer again and make sure that you download using 'binary'<br />
mode.  Please do not attempt to install this currently downloaded copy.</code></p>
<p>The work around is to set IATEMPDIR environment to location that has sufficient space<br />
<code>$ export IATEMPDIR=/glb/apps/3rdparty_test/tmp</code></p>
<div class='ez_cc_license_block'><a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png"/></a><br/>This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.</div><div class='ez_cc_license_block'><a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png"/></a><br/>This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.</div>]]></content:encoded>
			<wfw:commentRss>http://hollyghozi.com/index.php/2009/05/powerhub-installation-error-with-tmp-does-not-have-enough-disk-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java: JConsole&#8217;s TopThreads Plugin</title>
		<link>http://hollyghozi.com/index.php/2009/04/java-jconsoles-topthreads-plugin/</link>
		<comments>http://hollyghozi.com/index.php/2009/04/java-jconsoles-topthreads-plugin/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 04:40:23 +0000</pubDate>
		<dc:creator>hollyghozi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Landmark]]></category>
		<category><![CDATA[PowerHub]]></category>

		<guid isPermaLink="false">http://hollyghozi.com/?p=135</guid>
		<description><![CDATA[While, I was googling to find a tool to monitor our Java RMI Server (PowerHub), I found this cool plugin. The TopThreads plugin. By using this plugin, it&#8217;s easier for us to monitor which plugin that have consume cpu power. We&#8217;re able to find the culprit thread. And by following the stack trace that produce [...]]]></description>
			<content:encoded><![CDATA[<p>While, I was googling to find a tool to monitor our Java RMI Server (PowerHub), I found this cool plugin. The <a title="TopThread, JConsol Plugin" href="http://blog.luminis.nl/roller/luminis/entry/top_threads_plugin_for_jconsole" target="_blank">TopThreads</a> plugin. By using this plugin, it&#8217;s easier for us to monitor which plugin that have consume cpu power.</p>
<p>We&#8217;re able to find the culprit thread. And by following the stack trace that produce by the thread, we&#8217;re able to find which user workflow that causing the thread gone wild.</p>
<div class='ez_cc_license_block'><a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png"/></a><br/>This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.</div><div class='ez_cc_license_block'><a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png"/></a><br/>This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.</div>]]></content:encoded>
			<wfw:commentRss>http://hollyghozi.com/index.php/2009/04/java-jconsoles-topthreads-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerHub: Enable JConsole to monitor PowerHub</title>
		<link>http://hollyghozi.com/index.php/2009/03/powerhub-enable-jconsole-to-monitor-powerhub/</link>
		<comments>http://hollyghozi.com/index.php/2009/03/powerhub-enable-jconsole-to-monitor-powerhub/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 11:28:50 +0000</pubDate>
		<dc:creator>Holly</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Landmark]]></category>
		<category><![CDATA[PowerHub]]></category>

		<guid isPermaLink="false">http://hollyghozi.wordpress.com/?p=119</guid>
		<description><![CDATA[JDK provide Java Monitoring and Management Console (JConsole) tool to provide information on performance and resource consumption of application running in Java platform using Java Management Extension (JMX) technology. To enable JMX in PowerHub add lines below to $PE_HOME/bin/runServer: -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=8024 \ -Dcom.sun.management.jmxremote.authenticate=true \ -Dcom.sun.management.jmxremote.ssl=false \ Notice: 1. JConsole is part of JDK default [...]]]></description>
			<content:encoded><![CDATA[<p>JDK provide Java Monitoring and Management Console (JConsole) tool to provide information on performance and resource consumption of application running in Java platform using Java Management Extension (JMX) technology.</p>
<div id="attachment_122" class="wp-caption aligncenter" style="width: 460px"><a href="http://hollyghozi.wordpress.com/2009/03/20/powerhub-enable-jconsole-to-monitor-powerhub/jconsole1/" rel="attachment wp-att-122"><img src="http://hollyghozi.files.wordpress.com/2009/03/jconsole1.jpg" alt="JConsole remotely monitors JMX-enable Java Apps" title="JConsole remotely monitors JMX-enable Java Apps" width="450" height="333" class="size-full wp-image-122" /></a>
<p class="wp-caption-text">JConsole remotely monitors JMX-enable Java Apps</p>
</div>
<p>To enable JMX in PowerHub add lines below to $PE_HOME/bin/runServer:<br />
<code>-Dcom.sun.management.jmxremote \<br />
-Dcom.sun.management.jmxremote.port=8024 \<br />
-Dcom.sun.management.jmxremote.authenticate=true \<br />
-Dcom.sun.management.jmxremote.ssl=false \</code></p>
<p>Notice:<br />
1. JConsole is part of JDK default installation<br />
2. “-Dcom.sun.management.jmxremote” is minimum parameter to enable JMX for local console. But this is not advisable.<br />
3. Remote connect of JConsole can be achieve by setting the other three parameters<br />
4. Remote connect use port. Each Java Application should be started with a separate port. e.g: 8001, 8002, 8003,…</p>
<div class='ez_cc_license_block'><a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png"/></a><br/>This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.</div><div class='ez_cc_license_block'><a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png"/></a><br/>This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.</div>]]></content:encoded>
			<wfw:commentRss>http://hollyghozi.com/index.php/2009/03/powerhub-enable-jconsole-to-monitor-powerhub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

