On 23 Apr 2001 23:50:01 -0400, Tavin Cole wrote:

> CC'ing this to devl..
> 
> Folks, apparently we have a problem again with the datastore eating infinite
> CPU cycles while doing key searches.  Mark J. Roberts has also confirmed this.
> 
> It would seem this is related to the new tree-based store, but who knows..
> 
> -- 
> 

well I noticed when I did my development that the wait() commands sucked
up oodles of time by calling while(!done){wait();}.  The JVM decided
that spending 100% cpu time doing that call was the best way to do
things.  by adding a sleep command the CPU usage drops, and there is no
noticeable decrease in performance.

while(!done){wait();sleep(1000);}

owen

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl
>From - Tue Apr 24 09:42:36 2001
Return-Path: <devl-admin at freenetproject.org>
Received: from hawk.freenetproject.org (postfix@[4.18.42.11])
        by funky.danky.com (8.9.3/8.8.7) with ESMTP id XAA02661
        for <danello at danky.com>; Mon, 23 Apr 2001 23:57:53 -0400
Received: from hawk.freenetproject.org (localhost [127.0.0.1])
        by hawk.freenetproject.org (Postfix) with ESMTP
        id A09B3580DE; Mon, 23 Apr 2001 21:39:08 -0700 (PDT)
Delivered-To: devl at freenetproject.org
Received: from server5.generalmail.com (server5.fpw.ch [194.209.117.20])
        by hawk.freenetproject.org (Postfix) with ESMTP id 348E757D97
        for <devl at freenetproject.org>; Mon, 23 Apr 2001 21:38:14 -0700 (PDT)
Received: from localhost ([194.209.117.3]) by server5.generalmail.com
          (Post.Office MTA v3.5 release 215 ID# 0-58584U1100L100S0V35)
          with ESMTP id com for <devl at freenetproject.org>;
          Tue, 24 Apr 2001 05:54:43 +0200
Received: from tavin by localhost with local (Exim 3.12 #1 (Debian))
        id 14ruVE-0008Kl-00
        for <devl at freenetproject.org>; Tue, 24 Apr 2001 00:32:40 -0400
From: Tavin Cole <[email protected]>
To: devl at freenetproject.org
Subject: Re: [freenet-devl] Re: [freenet-tech] Java's using my whole processor
Message-ID: <20010424003239.T386 at niss>

Reply via email to