Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 32076 invoked from network); 25 Jun 2007 06:41:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2007 06:41:52 -0000 Received: (qmail 2533 invoked by uid 500); 25 Jun 2007 06:41:45 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 2503 invoked by uid 500); 25 Jun 2007 06:41:45 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 2492 invoked by uid 99); 25 Jun 2007 06:41:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jun 2007 23:41:44 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [69.147.74.248] (HELO web62110.mail.re1.yahoo.com) (69.147.74.248) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 24 Jun 2007 23:41:40 -0700 Received: (qmail 85087 invoked by uid 60001); 25 Jun 2007 06:41:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=MypuTLJf/XdhX/1vhwr6yaconLu9TEMG+tFMeqrTQgvIQ7lB8AZz/FJVF5AQtlE+cLqluBVGx2QgP1em7+cc4h37cYhccyrN2I1V0WW6kh8sYikrr/Jj0OkpszVSGOVuqzfPijsOuL2Hv56vxCeIRFsTdR43PhH5ZuI6FKcaeE4=; X-YMail-OSG: XZN3FyAVM1nBwneoBs7m759B_jYn235UYoQXH_FDk5B2iJ5Pdt2wMNm_2JNBojE96GfPP7lGQge4w6olUvnyXae33bt69VJNHJqoUI5ZVv9iORen88PNznbKxP3Tnwwo Received: from [66.196.126.39] by web62110.mail.re1.yahoo.com via HTTP; Sun, 24 Jun 2007 23:41:19 PDT X-Mailer: YahooMailRC/651.29 YahooMailWebService/0.7.41.16 Date: Sun, 24 Jun 2007 23:41:19 -0700 (PDT) From: Balazs Michnay Subject: Re: [OT] Serious memory leak To: Struts Users Mailing List MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-262152370-1182753679=:84909" Message-ID: <472709.84909.qm@web62110.mail.re1.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-262152370-1182753679=:84909 Content-Type: text/plain; charset=ascii I was wondering about one more thing... Somewhere I read that the GC can only collect objects that were instantiated with the "new" keyword. Does it mean the the following two String creations differ when it comes to garbage collection? 1) String myString = "This is my string"; 2) String myString = new String("This is my string"); If the second one can only be garbage collected, this would explain my uncollectable char[] objects, because mostly I simply use the 1) version. If you say this really does count when it comes to garbage collection, I'd rewrite my code and see what happens. Thanks a lot, MB. ----- Original Message ---- From: Christopher Schultz To: Struts Users Mailing List Sent: Wednesday, June 20, 2007 2:29:29 PM Subject: Re: [OT] Serious memory leak -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Balazs, Balazs Michnay wrote: > Thanks a lot, these changes really did help, now MySQL reports that > only one connection is used all over the website. I really do > appreciate your help. No problem. Another good tip is to set your connection pool size to 1 when working in development (and maybe even test). This will allow your connection pool to be exhausted any time there is a potential for deadlock (from the cp, that is). Good luck, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGeR2o9CaO5/Lv0PARAspgAJ4yMYS06yOQ5CLE29ezyf1D5oaLhQCfWXuu GHdfh1DPw+q/1WXEByma8L4= =8bHg -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org ____________________________________________________________________________________ The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php --0-262152370-1182753679=:84909--