Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-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 96FE2FAB for ; Thu, 21 Jun 2012 20:07:27 +0000 (UTC) Received: (qmail 50284 invoked by uid 500); 21 Jun 2012 20:07:26 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 50271 invoked by uid 500); 21 Jun 2012 20:07:26 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 50263 invoked by uid 99); 21 Jun 2012 20:07:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 20:07:26 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=FREEMAIL_REPLY,FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of deepak.agarwal@paxcel.net does not designate 209.85.160.172 as permitted sender) Received: from [209.85.160.172] (HELO mail-gh0-f172.google.com) (209.85.160.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 20:07:19 +0000 Received: by ghbg16 with SMTP id g16so990719ghb.31 for ; Thu, 21 Jun 2012 13:06:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :x-gm-message-state; bh=sQBZXL8xPy3bAoFmegPP8ZXTllQ8+K8ow9y4uKR8Hh4=; b=PbqPqiC8OaZIhW/upSOWi1ZMq72d0CJhcg1CBeJbwP8r/JSxUqWHy2tRoNf/h/fG6H sSJUxknRBmnLelvnH3PKDJI4SVP2eJIhYaa+aNumw9UWtPKK8zCdkYgK8q12LCgCTsJZ XWgRgNwgfx7k6RYJfaZch/eFLbZcYF4+z2W5w2ikO17dbnzhP9ouMrr+NpsJ2rNKrgKY EKdWkQpdKbCt7aT+AWCLN6709yN15EJjgsPvwjZCohowKwgGoVbAJ5d8DhTLVXLuoWAI U6BZCACgUx6KuuPotwpGnzlPfvGKOK3ejl2YPZiVHmw6EK0wgxl/+L1FTxYXAlH3abgP rZTA== Received: by 10.50.135.97 with SMTP id pr1mr8672346igb.49.1340309217832; Thu, 21 Jun 2012 13:06:57 -0700 (PDT) MIME-Version: 1.0 Sender: deepak.agarwal@paxcel.net Received: by 10.64.9.9 with HTTP; Thu, 21 Jun 2012 13:06:37 -0700 (PDT) In-Reply-To: References: From: Deepak Agarwal Date: Fri, 22 Jun 2012 01:36:37 +0530 X-Google-Sender-Auth: 3A8aD86-63OCpT8_Wl0gkSZmaro Message-ID: Subject: Re: Tables getting locked even for 3-4 users To: user@ofbiz.apache.org Content-Type: multipart/alternative; boundary=e89a8f923baad16fae04c3010ea3 X-Gm-Message-State: ALoCoQk4rJbQszBTjU8qpaj6TNjb/HO6crOjv+UoOgsox0cXLvf84rCQugl0EJQ6TBgFVvTwUbDL --e89a8f923baad16fae04c3010ea3 Content-Type: text/plain; charset=ISO-8859-1 Latest mysql with timestamp truncation problem. On Fri, Jun 22, 2012 at 1:31 AM, Deepak Agarwal wrote: > mysql latest version. > > > On Fri, Jun 22, 2012 at 1:18 AM, Mike wrote: > >> Postgresql/mysql? >> >> On Thu, Jun 21, 2012 at 12:04 PM, Deepak Agarwal > >wrote: >> >> > I actually did that. But, now I am facing issue while quickly >> > removing/adding items from/to shopping cart. May be I need to look >> database >> > closely. >> > >> > On Thu, Jun 21, 2012 at 11:32 PM, Mike wrote: >> > >> > > Here is what I would do: >> > > >> > > Update framework/webapp/config/serverstats.properties >> > > >> > > stats.persist.visit=false >> > > stats.persist.visitor=false >> > > >> > > I have ALL of the 'stats' set to 'false'. >> > > >> > > Restart ofbiz, and blow away the contents of server_hit and optionally >> > > visit: >> > > >> > > delete from server_hit; >> > > delete from visit; >> > > >> > > The 'server_hit' is probably your problem. And, if needed, rebuild >> the >> > > indexes of the database. >> > > >> > > There is probably another way, or maybe even a service (unknown to me) >> > that >> > > may keep these tables tightly trimmed. >> > > >> > > On Thu, Jun 21, 2012 at 10:48 AM, Deepak Agarwal < >> dagarwal82@gmail.com >> > > >wrote: >> > > >> > > > visit: 7400 >> > > > server_hit: 94000 >> > > > communication_event: 51 >> > > > >> > > > On Thu, Jun 21, 2012 at 10:44 PM, Mike >> wrote: >> > > > >> > > > > Take a look at visit, server_hit, and communication_event tables. >> > > > > >> > > > > select count(*) from visit; >> > > > > select count(*) from server_hit; >> > > > > select count(*) from communication_event; >> > > > > >> > > > > What do yo get? >> > > > > >> > > > > On Thu, Jun 21, 2012 at 9:02 AM, Deepak Agarwal < >> > dagarwal82@gmail.com >> > > > > >wrote: >> > > > > >> > > > > > Alright. I will try this. However, Basically database queries >> are >> > > > timing >> > > > > > out. I checked from 'Show processlist' command and I can see the >> > > > queries >> > > > > > are stuck. >> > > > > > >> > > > > > On Thu, Jun 21, 2012 at 9:22 PM, Mike >> > wrote: >> > > > > > >> > > > > > > Sounds like classic garbage collection. Java freezes while it >> > > sifts >> > > > > > > through memory looking for stuff to delete. The larger the >> > memory, >> > > > the >> > > > > > > longer it takes. >> > > > > > > >> > > > > > > -Xms2048M -Xmx2048M -server -Xincgc >> > > > > > > >> > > > > > > Try the above. The -Xincgc will continuously GC on a >> separate, >> > > slow >> > > > > > > running thread. Also, run a separate instance of OFBiz for >> > > > > > > frontend/back-end, connected to same DB. >> > > > > > > >> > > > > > > On Thu, Jun 21, 2012 at 8:47 AM, Deepak Agarwal < >> > > > dagarwal82@gmail.com >> > > > > > > >wrote: >> > > > > > > >> > > > > > > > Memory and CPU remain good. memory hardly reaches 1 GB and >> cpu >> > > few >> > > > > > > > percentage. >> > > > > > > > >> > > > > > > > On Thu, Jun 21, 2012 at 9:14 PM, Mike > > >> > > > wrote: >> > > > > > > > >> > > > > > > > > What does the "Memory Total" line say on the >> "WebToosl/Cache >> > > > > > > Maintenance" >> > > > > > > > > menu? >> > > > > > > > > >> > > > > > > > > On Thu, Jun 21, 2012 at 8:38 AM, Deepak Agarwal < >> > > > > > dagarwal82@gmail.com >> > > > > > > > > >wrote: >> > > > > > > > > >> > > > > > > > > > -Xms2048M -Xmx2048M -XX:MaxPermSize=1024m -server >> > > > > > > > > > >> > > > > > > > > > On Thu, Jun 21, 2012 at 9:03 PM, Mike < >> > mz4wheeler@gmail.com> >> > > > > > wrote: >> > > > > > > > > > >> > > > > > > > > > > What are the java memory settings for starting OFBiz? >> > > Mine: >> > > > > > > > > > > >> > > > > > > > > > > JAVA_VMOPTIONS="-Xms1280M -Xmx1524M -server -Xincgc" >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > On Thu, Jun 21, 2012 at 8:14 AM, Deepak Agarwal < >> > > > > > > > dagarwal82@gmail.com >> > > > > > > > > > > >wrote: >> > > > > > > > > > > >> > > > > > > > > > > > We are expereicing frequent table locks for Shipping >> > > table >> > > > , >> > > > > > > visit >> > > > > > > > > and >> > > > > > > > > > > > server_hit table. Even with 3-4 users working we are >> > > > getting >> > > > > > > > gateway >> > > > > > > > > > > > timeout because queries doesn't return . At db >> level it >> > > > shows >> > > > > > > > locked >> > > > > > > > > > the >> > > > > > > > > > > > table (and takes 40-50 sec to execute the update >> > query). >> > > > > > > > > > > > Servers are multi core, 8GB RAM, 10k RPM harddrive. >> I >> > > guess >> > > > > it >> > > > > > > is a >> > > > > > > > > > good >> > > > > > > > > > > > configuration. All the optimization has been done >> (like >> > > > table >> > > > > > > cache >> > > > > > > > > > > > increase, cache disable for ofbiz...etc). >> > > > > > > > > > > > >> > > > > > > > > > > > Any suggestions? Any body having the same problem ? >> > > > > > > > > > > > >> > > > > > > > > > > > -- >> > > > > > > > > > > > Thanks, >> > > > > > > > > > > > Deepak Agarwal, >> > > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > -- >> > > > > > > > > > > Thanks, >> > > > > > > > > > > Deepak Agarwal, >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > > -- >> > > > > > > > > Thanks, >> > > > > > > > > Deepak Agarwal, >> > > > > > > > > >> > > > > > > > > Paxcel Technologies Pvt Ltd. >> > > > > > > > > Hartron Complex, Sector 18, Gurgaon, India. >> > > > > > > > > E-Mail: deepak.agarwal@paxcel.net >> > > > > > > > > Mobile: +91 9910322604 >> > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > > -- >> > > > > > > Thanks, >> > > > > > > Deepak Agarwal, >> > > > > > > >> > > > > > > Paxcel Technologies Pvt Ltd. >> > > > > > > Hartron Complex, Sector 18, Gurgaon, India. >> > > > > > > E-Mail: deepak.agarwal@paxcel.net >> > > > > > > Mobile: +91 9910322604 >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > > -- >> > > > > Thanks, >> > > > > Deepak Agarwal, >> > > > > >> > > > > Paxcel Technologies Pvt Ltd. >> > > > > Hartron Complex, Sector 18, Gurgaon, India. >> > > > > E-Mail: deepak.agarwal@paxcel.net >> > > > > Mobile: +91 9910322604 >> > > > > >> > > > > >> > > > >> > > >> > > -- >> > > Thanks, >> > > Deepak Agarwal, >> > > >> > > Paxcel Technologies Pvt Ltd. >> > > Hartron Complex, Sector 18, Gurgaon, India. >> > > E-Mail: deepak.agarwal@paxcel.net >> > > Mobile: +91 9910322604 >> > > >> > > >> > >> >> -- >> Thanks, >> Deepak Agarwal, >> >> Paxcel Technologies Pvt Ltd. >> Hartron Complex, Sector 18, Gurgaon, India. >> E-Mail: deepak.agarwal@paxcel.net >> Mobile: +91 9910322604 >> >> -- Thanks, Deepak Agarwal, Paxcel Technologies Pvt Ltd. Hartron Complex, Sector 18, Gurgaon, India. E-Mail: deepak.agarwal@paxcel.net Mobile: +91 9910322604 --e89a8f923baad16fae04c3010ea3--