<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>dbcp &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/dbcp/</link>
	<description>Feed of posts on WordPress.com tagged "dbcp"</description>
	<pubDate>Fri, 18 Jul 2008 21:24:02 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Dibromochloropropane (DBCP) in Fresno, CA ]]></title>
<link>http://marlalk.wordpress.com/?p=173</link>
<pubDate>Sat, 07 Jun 2008 23:49:05 +0000</pubDate>
<dc:creator>marlalk</dc:creator>
<guid>http://marlalk.wordpress.com/?p=173</guid>
<description><![CDATA[BLOG MOVED.  PLEASE SEE LINK BELOW:
http://pesticidesinfresnoca.blogspot.com/2008/03/dibromochlorop]]></description>
<content:encoded><![CDATA[<p>BLOG MOVED.  PLEASE SEE LINK BELOW:</p>
<p><a href="http://pesticidesinfresnoca.blogspot.com/2008/03/dibromochloropropane-dbcp-in-fresno-ca.html">http://pesticidesinfresnoca.blogspot.com/2008/03/dibromochloropropane-dbcp-in-fresno-ca.html</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[TRUTH behind broken/leaking pipes in Fresno]]></title>
<link>http://marlalk.wordpress.com/?p=106</link>
<pubDate>Wed, 28 May 2008 21:17:09 +0000</pubDate>
<dc:creator>marlalk</dc:creator>
<guid>http://marlalk.wordpress.com/?p=106</guid>
<description><![CDATA[First question &#8230;.. do you have clamped sewer/water lines on your property?  Located 6&#8243;-]]></description>
<content:encoded><![CDATA[<div><span style="font-size:medium;font-family:Arial;">First question ..... do you have clamped sewer/water lines on your property?  Located 6"-8" beneath dirt and/or cement.  One place to look is next to any pipes connected to outside walls - the ones leading to a vent on the roof and on the ground.  Before assuming that clamped lines are from "repairs" or "improvements" by the previous owner, take a closer look.  Dig a little more and see if the clamped lines continue beneath the structure.  If so, you know that this entailed major construction - there should be permits and inspections on file at City Hall.  Go look.</span></div>
<div><span style="font-size:medium;font-family:Arial;"> </span></div>
<div><span style="font-size:medium;font-family:Arial;">During your trip to City Hall, pick up a copy of your sewer layout as well - pick it up for the entire block.  </span></div>
<div> </div>
<div><span style="font-size:medium;font-family:Arial;">Most likely you will find no record for any of this.  Unless the sewer layouts have been altered since the discovery of this operation, you may also find that your parcel does not line up to the sewer layout.  Also measure the distance between manholes and verify those measurements to the sewer layout.  Any changes indicate massive reconstruction took place.  Yet why are there no records on file?  Not even for the replaced/relocated water and sewer lines in alleys, etc.  </span></div>
<div> </div>
<div><span style="font-size:medium;font-family:Arial;">The truth is that it was not authorized.  By now, structures throughout Fresno are no longer standing as they were when built.  For 45+/- yrs, a barbaric operation has been taking place - altering of the city sewer, water and power lines.  In order to cover up evidence of the removal of various structures and shifting/expanding of others, plat/parcel maps are being altered as quickly as the changes are made.  That includes street widening.  From the outside, it appears that things have always been this way.  With disclosure laws being kicked aside, no one sees or questions anything.</span></div>
<div> </div>
<div><span style="font-size:medium;font-family:Arial;">Replacement and repair of sewer and water lines can be quite costly.  Some of us have been set up to incur these horrendous costs.  Imagine if those same people learned the truth behind such expenses - linked to felony altering of the public water/sewer lines.  A Restraining Order was issued against me for uncovering and reporting this operation.  Official records prove that the Dept. of Public Works committed perjury to discredit their own records as well as my findings.  Including the technique of loosening clamped pipes in order to condemn property, file fraudulent mold lawsuits and insurance claims, force owners into foreclosure, etc.</span></div>
<div> </div>
<div><span style="font-size:medium;font-family:Arial;">I foresee some class-action lawsuits against the City of Fresno for their felony actions, cover-up and continued efforts to deceive the public.  Not to mention the trail of illness, infections, asthma, amputation and death that follow deliberate exposure to raw sewage and unknown pesticides (eradication of sewer roaches, sewer rats, mosquito infestations) that accompany this operation.  </span></div>
<div> </div>
<div><span style="color:#000080;font-family:Arial;"><span style="font-size:medium;color:#000000;">Is it really such a coincidence that the City of Fresno is the only one in the entire nation to react to MRSA by increasing benefits for themselves.  (While prohibiting reports of what is contributing to the nightmare!)</span>  </span></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Causes of Java PermGen Memory Leaks]]></title>
<link>http://ampedandwired.wordpress.com/?p=19</link>
<pubDate>Fri, 09 May 2008 03:57:41 +0000</pubDate>
<dc:creator>Charles Blaxland</dc:creator>
<guid>http://ampedandwired.wordpress.com/?p=19</guid>
<description><![CDATA[I&#8217;ve been hunting down PermGen memory leaks lately with YourKit profiler. It&#8217;s been an i]]></description>
<content:encoded><![CDATA[<p>I've been <a href="http://ampedandwired.com/2008/05/05/finding-permgen-memory-leaks-with-yourkit/">hunting down PermGen memory leaks</a> lately with <a href="http://www.yourkit.com/">YourKit</a> profiler. It's been an interesting experience, tracking down these little buggers is frequently harder than you might think.</p>
<p>To save others the pain, I've documented all the problems I've found, and how I solved them, in this blog entry. I'll keep updating this as I find new ones.</p>
<h3>Java Bean Introspection</h3>
<p>The Java bean introspector keeps a cache that doesn't get flushed. It's hard to know if this is a problem for you without profiling - your application probably doesn't use the introspector, but some libraries that you use might.</p>
<p>To fix this problem you need to create a <a href="http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html">ServletContextListener</a> in your app and add the following clean-up code to the "<em>contextDestroyed</em>" method.</p>
<p>[sourcecode language='java']<br />
Introspector.flushCaches();<br />
[/sourcecode]</p>
<p>If you're using <a href="http://springframework.org/">Spring</a>, you should add the <a href="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/util/IntrospectorCleanupListener.html">IntrospectorCleanupListener</a> to your web.xml instead (this calls Instrospector.flushCaches() for you, as well as doing some additional cleanup).</p>
<h3>Commons Pool Eviction Timer</h3>
<p>In old versions of <a href="http://commons.apache.org/pool/">commons pool</a>, the eviction timer was not being cleaned up when the webapp shut down. <a href="http://issues.apache.org/jira/browse/POOL-97">This issue</a> has been fixed in the <a href="http://commons.apache.org/pool/changes-report.html#a1.4">version 1.4 of commons-pool</a>, so if you use commons-pool, make sure you're using at least version 1.4.</p>
<p>As a side note, if you're using <a href="http://commons.apache.org/dbcp/index.html">commons-dbcp</a> (which uses commons-pool) you should also make sure you're using at least version 1.2.2, as it <a href="http://commons.apache.org/dbcp/changes-report.html#1.2.2">fixes a swag of issues</a> some of which we've seen in our production systems.</p>
<h3>MySQL Connector/J Statement Cancellation Timer</h3>
<p>Version 5.1.6 (and earlier) of the MySQL JDBC driver (Connector/J) has a problem whereby the statement cancellation timer in the ConnectionImpl class is never cancelled, resulting in the timer thread hanging around even after you've unloaded your app. If you use the MySQL JDBC driver this will be a problem for you.</p>
<p>I've <a href="http://bugs.mysql.com/bug.php?id=36565">raised a bug report</a> with the MySQL folks. In the meantime you can create a <a href="http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html">ServletContextListener</a> in your app and add the following clean-up code to the "<em>contextDestroyed</em>" method.</p>
<p>[sourcecode language='java']<br />
try {<br />
    if (ConnectionImpl.class.getClassLoader() == getClass().getClassLoader()) {<br />
        Field f = ConnectionImpl.class.getDeclaredField("cancelTimer");<br />
        f.setAccessible(true);<br />
        Timer timer = (Timer) f.get(null);<br />
        timer.cancel();<br />
    }<br />
}<br />
catch (Exception e) {<br />
    System.out.println("Exception cleaning up MySQL cancellation timer: " + e.getMessage());<br />
}<br />
[/sourcecode]</p>
<h3>JDBC Driver Manager</h3>
<p>The JDBC Driver Manager is notorious for causing PermGen memory leaks. When a JDBC driver starts up it gets registered with the global <a href="http://java.sun.com/javase/6/docs/api/java/sql/DriverManager.html">DriverManager</a>, but never de-registered. If you are using any sort of JDBC driver, this will be a problem for you.</p>
<p>To fix this problem you need to create a <a href="http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html">ServletContextListener</a> in your app and add the following clean-up code to the "<em>contextDestroyed</em>" method.</p>
<p>[sourcecode language='java']<br />
try {<br />
    for (Enumeration e = DriverManager.getDrivers(); e.hasMoreElements(); ) {<br />
        Driver driver = (Driver) e.nextElement();<br />
        if (driver.getClass().getClassLoader() == getClass().getClassLoader()) {<br />
            DriverManager.deregisterDriver(driver);<br />
        }<br />
    }<br />
}<br />
catch (Throwable e) {<br />
    System.out.println("Unable to clean up JDBC driver: " + e.getMessage());<br />
}<br />
[/sourcecode]</p>
<h3>DOM4J ThreadLocal leaks</h3>
<p>Older versions of DOM4J store data in ThreadLocal variables that never get cleaned up. This problem has been fixed in recent versions of DOM4J. If you're using DOM4J make sure you use at least version 1.6.1.</p>
<h3>Xerces XML Libraries</h3>
<p>Tomcat uses the SAXParser to read in configuration files. If you include <a href="http://xerces.apache.org/">Xerces</a> in your webapp's WEB-INF/lib directory Tomcat will use this rather than the one in the JDK. This is bad because Tomcat maintains a reference to this parser, which will prevent your webapp's ClassLoader from being collected.</p>
<p>The fix is to remove the xerces and XML parser API libs from your webapp. If you're running Java 5 or better these are included in the JRE so you don't need them. If you're using an older JRE, put the jars into the container's shared library folder ("common/lib" in Tomcat).</p>
<h3>Quartz Scheduler ShutdownHook</h3>
<p>The <a href="http://www.opensymphony.com/quartz/">Quartz</a> <a href="http://quartz.sourceforge.net/javadoc/org/quartz/plugins/management/ShutdownHookPlugin.html">ShutdownHookPlugin</a> registers a hook with the Java runtime that doesn't get cleaned up if you simply unload your webapp (it will only get cleaned up when you shut down the JVM).</p>
<p>The solution is to not use the ShutdownHookPlugin at all. If you're using the <a href="http://static.springframework.org/spring/docs/2.5.x/reference/scheduling.html#scheduling-quartz">Spring Quartz wrappers</a>, you simply configure the Spring bean factory to clean up Quartz <a href="http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-lifecycle-disposablebean">when the bean factory is destroyed</a>. Otherwise it's a simple job to add a <a href="http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html">ServletContextListener</a> to clean up Quartz when your application shuts down.</p>
<h3>Tomcat and Commons Logging</h3>
<p>Earlier versions of Tomcat had a problem with leaking PermGen memory when a webapp included <a href="http://commons.apache.org/logging/">commons-logging</a> in its WEB-INF/lib. Later versions fixed this problem, so make sure you're running at least version 5.5.16.</p>
<h3>Other Resources</h3>
<p>Here are some other resources that you might find useful in finding/fixing your PermGen leaks:</p>
<ul>
<li><a href="http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669">Spring Wiki</a></li>
</ul>
<p>Good luck!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CA Water "shortage" or water "diversion?"]]></title>
<link>http://marlalk.wordpress.com/?p=4</link>
<pubDate>Mon, 28 Apr 2008 04:44:54 +0000</pubDate>
<dc:creator>marlalk</dc:creator>
<guid>http://marlalk.wordpress.com/?p=4</guid>
<description><![CDATA[
Fresno, CA       Water tampering / apparent diversion of water. Beneath the surface i.e., und]]></description>
<content:encoded><![CDATA[<div class="post-body entry-content">
<p><span style="font-family:trebuchet ms;"><strong>Fresno, CA      </strong> Water tampering / apparent diversion of water. Beneath the surface i.e., under the streets, homes (old and NEW construction), lawns, sidewalks is evidence of a 45+/- yr operation that is now being tied into the "infrastructure upgrade." Ringleader is Swieso, a former employee of the City of Fresno. This is behind the decades of sewage back spills, forged/fraudulent paperwork, and talk of re-routing water for development at Friant. He personally gave me a tour of the vacant lots he owned in the area where development has been prohibited, and boasted that those who told him it was impossible to get around the water laws, would soon be shocked at what he accomplished. He has been conspiring with various city employees in overriding the Planning Dept. while plat/parcel maps are altered at title companies to reflect the illegal changes to property lines. This explains the mystery of why Fresno is the shambles it is - it is also why there are no older records.<br />
</span><span style="font-family:trebuchet ms;"><br />
Reporting this to the City of Fresno resulted in great panic - they went as far as to have a Restraining Order issued against me in order to keep this covered up. Kerry Trost (sr risk analyst) has the audacity to call ME a "liar" about the city's own (unaltered) records, which verify exactly what is taking place! Add perjury.The City of Fresno's equipment was setting next to my family's 3 properties for several days - they did not leave until the sewer and water lines in the alley were replaced. Unauthorized! If you cannot imagine what that entailed to the connecting properties, the evidence is all here. Additionally, one neighbor left dead (after being exposed to raw sewage, foot amputation); one never seen again; forged/fraudulent legal documents on 3 out of 4 properties; sewer/water lines switched with corroded lines now clamped together; mold, termites, new walls (trash), change of property lines, and DENIAL OF ALL! I endured ongoing illnesses and continue to suffer excruciating bouts of foot cellulites after exposure to raw sewage. Despite evidence of medical crisis, risk analyst refused to test the soil - "not her job." But LYING about the cause behind sewage back spills was? She was the last person seen speaking (lying) to my other neighbor who was never seen again. She also lied about the countless photographs taken - before, during and after. (Much more.)</span></p>
<p><span style="font-family:Trebuchet MS;">What is being done with our water source?  This appears to go beyond Fresno - the public is entitled to answers; we are entitled to be safe.  We are not safe.  The City is withholding public information - massive cover-up.</span></p>
<div></div>
<p><span style="font-family:trebuchet ms;"></p>
<div><span style="font-family:trebuchet ms;">For more information see <a href="http://www.myspace.com/marlalk2">http://www.myspace.com/marlalk2</a> (MySpace requires free registration)  </span></div>
<div><span style="font-family:trebuchet ms;">Also see <a href="http://cellulitisinfresno.googlepages.com/home">http://cellulitisinfresno.googlepages.com/home</a> regarding cellulitis / staph / MRSA following raw sewage discharges as this operation is carried out. </span></div>
<div><a href="http://pesticidesinfresnoca.blogspot.com/2008/03/dibromochloropropane-dbcp-in-fresno-ca.html">http://pesticidesinfresnoca.blogspot.com/2008/03/dibromochloropropane-dbcp-in-fresno-ca.html</a> re: DBCP / Pesticides behind raw sewage discharges</div>
<div><a href="http://blog.myspace.com/index.cfm?fuseaction=blog.view&#38;friendID=329258147&#38;blogID=358274066&#38;Mytoken=81935ED3-5375-4C01-97D49D9323A6CF9822705848">http://blog.myspace.com/index.cfm?fuseaction=blog.view&#38;friendID=329258147&#38;blogID=358274066&#38;Mytoken=81935ED3-5375-4C01-97D49D9323A6CF9822705848</a> re: water quality</div>
<div><a href="http://waterinfresnoca.blogspot.com/">http://waterinfresnoca.blogspot.com/</a>  Fresno's water quality</div>
<p></span></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Tomcat 6 using JNDI global DBCP]]></title>
<link>http://maxi326.wordpress.com/?p=31</link>
<pubDate>Thu, 03 Apr 2008 12:14:43 +0000</pubDate>
<dc:creator>maxi326</dc:creator>
<guid>http://maxi326.wordpress.com/?p=31</guid>
<description><![CDATA[This setting gives me a hard time.
I have gone through Tomcat 6 document about JNDI and JDBC so many]]></description>
<content:encoded><![CDATA[<p>This setting gives me a hard time.</p>
<p>I have gone through Tomcat 6 document about JNDI and JDBC so many times.</p>
<p>But I get this work by reading many forums.</p>
<p>I think the documents provided by tomcat is confusing and maybe out of sync. to the current version.</p>
<p>I am going straight to the solution.</p>
<p>Add this in your tomcat\conf\server.xml, the parameters are set according to your situation</p>
<pre>&#60;GlobalNamingResources&#62;

    &#60;!-- Editable user database that can also be used by

         UserDatabaseRealm to authenticate users

    --&#62;	&#60;Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"

               maxActive="100" maxIdle="30" maxWait="10000"

               username="root" password="" driverClassName="com.mysql.jdbc.Driver"

               url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/&#62;

&#60;/GlobalNamingResources&#62;</pre>
<p>Add this to your tomcat\conf\context.xml</p>
<pre>&#60;ResourceLink name="jdbc/TestDB" global="jdbc/TestDB" type="javax.sql.DataSource"/&#62;</pre>
<p>Nothing needs to be done to you per-web web.xml.</p>
<p>It is not what tomcat documentation mention in server.xml &#60;host&#62;&#60;context&#62;...&#60;/context&#62;&#60;/host&#62;</p>
<p>Maybe that works for per-web-jndi setting but not for global one.</p>
<p>This look like easy setting, but it takes me lots of time.</p>
<p>P.S. I am newbie to tomcat, haha.</p>
<p>One more thing, If you are using Spring HibernateDaoSupport.</p>
<p>The value for  jndiName for Tomcat is different from other like JBoss.</p>
<p>JBoss :    java:jdbc/TestSpring</p>
<p>Tomcat: java:comp/env/jdbc/TestSpring</p>
<p>that is</p>
<pre>&#60;bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"&#62;
        &#60;property name="jndiName"&#62;
            &#60;value&#62;java:comp/env/jdbc/TestSpring&#60;/value&#62;
        &#60;/property&#62;
    &#60;/bean&#62;</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[[a-ha! moment] Finalmente ho capito la configurazione di DBCP]]></title>
<link>http://xplayer.wordpress.com/?p=28</link>
<pubDate>Tue, 05 Feb 2008 13:01:13 +0000</pubDate>
<dc:creator>stoner</dc:creator>
<guid>http://xplayer.wordpress.com/?p=28</guid>
<description><![CDATA[Questo post e&#8217; piu&#8217; che altro indirizzato a me stesso nel futuro, ma ovviamente se potes]]></description>
<content:encoded><![CDATA[<p>Questo post e' piu' che altro indirizzato a me stesso nel futuro, ma ovviamente se potesse servire ad altri, ora o nel futuro, ne saro' contento.</p>
<p>Ho finalmente capito il significato dei parametri di configurazione di DBCP!<br />
I miei dubbi riguardavano in particolare i parametri <i>minIdle</i>, <i>maxIdle </i>e <i>maxActive</i>.</p>
<p>Le connessioni aperte in un dato istante possono potenzialmente essere comprese tra zero e <i>maxActive</i>.</p>
<p>Quando il n. di connessioni aperte e' compreso tra <i>maxIdle </i>e <i>maxActive</i>, tutte le connessioni ritornate al pool saranno immediatamente chiuse dal pool.</p>
<p>Quando il n. di connessioni aperte e' compreso tra <i>minIdle </i>e <i>maxIdle</i>, tutte le connessioni ritornate al pool saranno soggette all'eventuale evictor (che si attiva con la prop <i>timeBetweenEvictionRunsMillis</i>). Questo significa che quando l'evictor parte, chiudera' tutte le connessioni in eccedenza (rispetto a <i>minIdle</i>), ovviamente secondo le impostazioni dei parametri <i>numTestsPerEvictionRun </i>e <i>minEvictableIdleTimeMillis </i>(quest'ultima in particolare indica quando tempo una connessione 'in eccesso' puo' rimanere idle nel pool prima di essere considerata 'chiudibile' dall'evictor thread).</p>
<p>Quando il n. di connessioni aperte e' compreso tra zero e <i>minIdle</i>, tutte le connessioni ritornate al pool saranno lasciate nel pool. In altre parole non si dovrebbe mai scendere al di sotto di <i>minIdle </i>connessioni aperte verso il db.</p>
<p>Ora, magari questo puo' sembrare scontato a voi, ma a me no!  DBCP ha una documentazione piuttosto fumosa, e in particolare faccio ancora fatica a capire la differenza tra i vari parametri di configurazione... per esempio, cosa si intende per abandonedConnection? E come si distingue da una normale connessione idle?</p>
<p>Comunque intanto mi godo il mio <i>a-ha! moment</i> :)</p>
]]></content:encoded>
</item>

</channel>
</rss>
