Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 71562 invoked from network); 30 Nov 2010 09:15:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 09:15:33 -0000 Received: (qmail 34797 invoked by uid 500); 30 Nov 2010 09:15:33 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 34636 invoked by uid 500); 30 Nov 2010 09:15:32 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 34622 invoked by uid 99); 30 Nov 2010 09:15:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 09:15:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 09:15:31 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAU9FA1n008370 for ; Tue, 30 Nov 2010 09:15:11 GMT Message-ID: <13270285.21181291108510782.JavaMail.jira@thor> Date: Tue, 30 Nov 2010 04:15:10 -0500 (EST) From: "Mark Struberg (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1898) TestQueryMultiThreaded fails with OOME "unable to create new native thread" In-Reply-To: <32329543.2191291048750668.JavaMail.jira@thor> 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/OPENJPA-1898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Struberg updated OPENJPA-1898: ----------------------------------- Attachment: OPENJPA-1898.patch reduce parallel threads from 1000 to 800. Now it's not very likely that any user hits the default 1024 threads limit, but we still have enough parallel loops running > TestQueryMultiThreaded fails with OOME "unable to create new native thread" > --------------------------------------------------------------------------- > > Key: OPENJPA-1898 > URL: https://issues.apache.org/jira/browse/OPENJPA-1898 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.0.1 > Reporter: Mark Struberg > Attachments: OPENJPA-1898.patch > > > here comes the stacktrace: > java.lang.OutOfMemoryError: unable to create new native thread > at java.lang.Thread.start0(Native Method) > at java.lang.Thread.start(Thread.java:597) > at org.apache.openjpa.slice.TestQueryMultiThreaded.testHeavyLoad(TestQueryMultiThreaded.java:236) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at junit.framework.TestCase.runTest(TestCase.java:154) > reducing the thread count to 800 should help to prevent this problem. This might be caused to the 1024 processes ulimit on most linux installations. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.