Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B0D86AC8 for ; Thu, 30 Jun 2011 14:05:51 +0000 (UTC) Received: (qmail 25358 invoked by uid 500); 30 Jun 2011 14:05:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 25314 invoked by uid 500); 30 Jun 2011 14:05:50 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 25276 invoked by uid 99); 30 Jun 2011 14:05:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 14:05:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 14:05:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C523343C656 for ; Thu, 30 Jun 2011 14:05:28 +0000 (UTC) Date: Thu, 30 Jun 2011 14:05:28 +0000 (UTC) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Message-ID: <678645900.5533.1309442728804.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-4200) client side OutOfMemoryError running derbnetclientmats:jdbcapi/derbyStress MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057832#comment-13057832 ] Kathey Marsden commented on DERBY-4200: --------------------------------------- Yes if I make each one of the strings slightly different IBM also fails after about 200 instantiations. $ java -Xmx16M -cp . GCWontWait i = 0 i = 100 i = 200 JVMDUMP006I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError " - please wait. > client side OutOfMemoryError running derbnetclientmats:jdbcapi/derbyStress > -------------------------------------------------------------------------- > > Key: DERBY-4200 > URL: https://issues.apache.org/jira/browse/DERBY-4200 > Project: Derby > Issue Type: Bug > Components: Network Client > Affects Versions: 10.5.2.0 > Environment: java version "1.5.0" > Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20070806 (SR5a)) > IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20070426 (JIT enabled) > J9VM - 20070420_12448_lHdSMR > JIT - 20070419_1806_r8 > GC - 200704_19) > JCL - 20070725 > SUSE linux running on vmware. > Reporter: Kathey Marsden > Assignee: Mamta A. Satoor > Attachments: heapdump.20090428.084024.25679.phd, javacore.20090428.084024.25679.txt, vmware10_5_SR10HeapDump.phd, vmware10_5_SR7HeapDump.phd, windows10_5_HeapDump.phd > > > On the nightly run for 4/27 - 10.5.1.2 - (769232), I saw client jdbcapi/derbystress.java run out of heap space. The test has not failed like this before on the same machine with the same JVM, and the one checkin on that day DERBY-3991 could not account for this failure. > I will attach the javacore and heapdump. Taking a quick look at the heap dump, it seems to have a lot of client side Statement objects, which seems to be just the leak the test is checking for. Note: the test runs with 64MB heap. It would be interesting to run with other jvms and force a gc() and a heap dump at this point in the test and see if we still have a lot of Statement objects or if this is a specific platform/JVM issue. > The trace at the time of failure was : > 1XMCURTHDINFO Current Thread Details > NULL ---------------------- > 3XMTHREADINFO "main" (TID:0x0808D300, sys_thread_t:0x0805CBC8, state:R, native ID:0x0000644F) prio=5 > 4XESTACKTRACE at org/apache/derby/client/am/Cursor.allocateCharBuffer(Bytecode PC:77(Compiled Code)) > 4XESTACKTRACE at org/apache/derby/client/net/NetStatementReply.parseSQLDTARDarray(Bytecode PC:77(Compiled Code)) > 4XESTACKTRACE at org/apache/derby/client/net/NetStatementReply.parseQRYDSC(Bytecode PC:10(Compiled Code)) > 4XESTACKTRACE at org/apache/derby/client/net/NetStatementReply.parseOpenQuery(Bytecode PC:104(Compiled Code)) > 4XESTACKTRACE at org/apache/derby/client/net/NetStatementReply.parseOPNQRYreply(Bytecode PC:14(Compiled Code)) > 4XESTACKTRACE at org/apache/derby/client/net/NetStatementReply.readOpenQuery(Bytecode PC:6(Compiled Code)) > 4XESTACKTRACE at org/apache/derby/client/net/StatementReply.readOpenQuery(Bytecode PC:7(Compiled Code)) > 4XESTACKTRACE at org/apache/derby/client/net/NetStatement.readOpenQuery_(Bytecode PC:11(Compiled Code)) > 4XESTACKTRACE at org/apache/derby/client/am/Statement.readOpenQuery(Bytecode PC:6(Compiled Code)) > 4XESTACKTRACE at org/apache/derby/client/am/Statement.flowExecute(Bytecode PC:581(Compiled Code)) > 4XESTACKTRACE at org/apache/derby/client/am/Statement.executeQueryX(Bytecode PC:3(Compiled Code)) > 4XESTACKTRACE at org/apache/derby/client/am/Statement.executeQuery(Bytecode PC:3(Compiled Code)) > 4XESTACKTRACE at org/apache/derbyTesting/functionTests/tests/jdbcapi/derbyStress.testDerby3316(derbyStress.java:156) > 4XESTACKTRACE at org/apache/derbyTesting/functionTests/tests/jdbcapi/derbyStress.main(derbyStress.java:57(Compiled Code)) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira