From owner-freebsd-ports@FreeBSD.ORG Fri Sep 17 09:15:58 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D39771065673 for ; Fri, 17 Sep 2010 09:15:58 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5A1948FC17 for ; Fri, 17 Sep 2010 09:15:57 +0000 (UTC) Received: by bwz15 with SMTP id 15so3094882bwz.13 for ; Fri, 17 Sep 2010 02:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=GjI6c6GKyXpsA4lX+Wy/QoQBcYR0CoQ7GF7LcVwu/0Q=; b=c4V3eyzJX8fZBDfiiiPKRwZTH4HXLWCgVFlGJwq51T7rBBDxNOAAU928tguaiOsxV3 VXV12/dDQi3scEzpucTyJFZxtuDYq/KEVlCdCP7EmelBgRp9uhrpzpRxrWoNORpcHy+5 QhD4ukKMw2qCzaIaS/F+OKyZM7mDswmEazUwM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Ox4gLylRnSnDJn7yVwlyysghYypFysalpuNlglHFrRe14zBOgxoim7POgjl1alhWWm 7Tj3ercz9KJzTQS5bbKFdkMH0EgNen0XWvvMpcIqs2moAYMm1yoYQTeCGLjyYt9WSKJP F8+M359+uplfZG6Mr4FlntZD0TuoWb71uwRbY= Received: by 10.204.39.203 with SMTP id h11mr3789267bke.8.1284714956348; Fri, 17 Sep 2010 02:15:56 -0700 (PDT) Received: from [192.168.0.52] ([85.105.64.2]) by mx.google.com with ESMTPS id 11sm3435626bkj.23.2010.09.17.02.15.54 (version=SSLv3 cipher=RC4-MD5); Fri, 17 Sep 2010 02:15:55 -0700 (PDT) Message-ID: <4C9330C2.7090704@gmail.com> Date: Fri, 17 Sep 2010 12:11:30 +0300 From: Kaya Saman User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.12) Gecko/20100824 Thunderbird/3.0.7 MIME-Version: 1.0 To: Jeremy Chadwick References: <4C926418.2050407@gmail.com> <4C9328B9.4010100@gmail.com> <20100917085621.GA48570@icarus.home.lan> In-Reply-To: <20100917085621.GA48570@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Fwd: Tomcat6 port keeps locking up?? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2010 09:15:58 -0000 Thanks a lot Jeremy for the response!! On 17/09/2010 11:56, Jeremy Chadwick wrote: > [...] > You should probably spend a bit of time in a debugger (specifically a > Java debugger) figuring out if your code is spinning or not. Debugging > anything under Tomcat/Java is a PITA, and I say that from experience. > I would advocate you open up a bug/report with the Apache folks and > provide them this information, especially if the only thing you're > seeing problems with is Tomcat (and not other software). > > For example -- at my workplace we run Solaris 10, with Tomcat heavily > used for different purposes (mainly a translation layer between HTTP and > Cisco ICR protocols). For years we saw a problem where a Tomcat thread > would take up 100% CPU (ex. on a 4-core machine, 25% CPU) when a Cisco > PG would disconnect/reconnect repetitively (common during network > problems). The problem turned out to be two fold: a bug in Tomcat, and > some improper code on our part, resulted in Tomcat spinning. We did not > open up a SunSolve case because there wouldn't have been a point to it. > Hmm... it's the Xwiki application I'm using which works fine on the OpenSolaris homesite although running a different OS and proper programmers there with the experience to deal with such things!! I'll try though and see what happens. > >> Otherwise I will have to start looking at migrating this service >> away from BSD and much more costlier option of Nexenta based on >> OpenSolaris, but hogs RAM as uses ZFS natively meaning min 4GB >> unlike my FreeBSD build with ZFS and UFS2 using 4GB for that many >> processes and 7 jails! >> > I don't think you understand how Solaris's VM behaves with ZFS. It > behaves very differently than FreeBSD. On Solaris/OpenSolaris with ZFS, > you'll see the ARC taking up as much memory as possible -- but unlike > FreeBSD (AFAIK), when a userland or kernel application requires more > memory, the Solaris kernel dynamically releases portions of the ARC. > > We use ZFS on Solaris 10 exclusively at my day job (thousands of x86 > servers). When we moved to ZFS, we had to adjust our system memory > monitors to take into consideration ARC usage. > > What I'm trying to say: on Solaris with ZFS, don't let "I don't see any > free memory in top or prstat" equate to "there isn't any free memory > available for applications". Solaris handles this situation very, > *very* well; we have never seen any userland applications get starved > for memory as a result of using ZFS on all of our machines. > > Thanks for explaining!! :-) Actually with everyone claiming that OpenSolaris/Solaris needs min. 4GB memory to run a basic system it kinda confuses me a little. Also since I am currently in a job where I can only use MS products there's no one to ask either, even though my personal projects are all UNIX based. It's just hard sometimes to work alone on EVERYTHING which is often how I'm left... anyhow!! I'll look into this situation and see if it is possible to migrate over to Nexenta using Glassfish and MySQL instead of the Postgresql and Tomcat6 setup I have currently. Best regards, Kaya