Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BDC6C7314 for ; Sun, 11 Dec 2011 17:32:48 +0000 (UTC) Received: (qmail 11217 invoked by uid 500); 11 Dec 2011 17:32:48 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 11193 invoked by uid 500); 11 Dec 2011 17:32:48 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 11185 invoked by uid 99); 11 Dec 2011 17:32:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Dec 2011 17:32:48 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.210.43] (HELO mail-pz0-f43.google.com) (209.85.210.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Dec 2011 17:32:39 +0000 Received: by daec6 with SMTP id c6so1357729dae.16 for ; Sun, 11 Dec 2011 09:32:17 -0800 (PST) Received: by 10.68.72.39 with SMTP id a7mr25857440pbv.96.1323624737311; Sun, 11 Dec 2011 09:32:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.43.197 with HTTP; Sun, 11 Dec 2011 09:31:56 -0800 (PST) In-Reply-To: References: From: Erlend Birkenes Date: Sun, 11 Dec 2011 18:31:56 +0100 Message-ID: Subject: Re: Reengineer Database Schema hangs on the last table. To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=f46d040f9ce8488ab004b3d466f8 X-Virus-Checked: Checked by ClamAV on apache.org --f46d040f9ce8488ab004b3d466f8 Content-Type: text/plain; charset=ISO-8859-1 I'm still having trouble with this. I had to generate again because I messed it all up trying to get inheritance to work the way I want. It takes a VERY long time to generate the ObjEntities. Several hours. Something must be wrong here somewhere. Has nobody else experienced this? As I said before, the process isn't using any CPU this whole time and it's status in Gnome System Monitor is Sleeping and the Waiting Channel is futex_wait_queue_me. Google tells me this inticates that it is in queue waiting for a lock. I don't know if that means anything or not, but it looks strange. Some other java processes also tend to be in futex_wait_queue_me a lot of the time, but still seems to work, so I don't know. I opened the process in jconsole and jvisualvm and most of the threads are waiting for a synchronized List. jconsole has the abiity to detect deadlocks, but doesn't detect one here. I also tried it in Windows in case it was a Linux bug, but it was the same situation there. So what is taking so long? Is it constanty making small database queries while building the ObjEntities? -Erlend 2011/12/6 Erlend Birkenes > Ok, never mind. It finished at last, it just took a very long time. I > think it took a couple of hours, but I'm not sure. I was in a meeting and > when I got back it was done. I know I had it running for over an hour > earlier though. > > The schema has around 310 tables with around 2500 columns total, resulting > in a map.xml of 1MB. > > Is it expected that it should take this long? I've generated it both with > Hibernate Tools and with our own generator and both took less than a minute. > > > > Best regards, > > Erlend Birkenes > Dataloy Systems AS > Phone: +47 98 81 41 57 > > > > 2011/12/6 Erlend Birkenes > >> Hi >> >> I am trying to reengineer our database with the Cayenne Modeler. It seems >> to work fine at first, all the DbEntities are created, but after creating >> the last DbEntity nothing happens. The dialog still shows Importing table >> 'name of last table'. >> No ObjEntities are created, no cpu is used, there is no error message and >> nothing in the log. I've waited a long time (left it during lunch) to see >> if something happens after a while, but nothing does. >> >> Anyone have any idea what could be wrong? And how can I enable more >> verbose logging in the Modeler? >> >> >> -Erlend >> > > --f46d040f9ce8488ab004b3d466f8--