From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 08:56:39 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF4CC16A4CE for ; Wed, 23 Feb 2005 08:56:39 +0000 (GMT) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 324C843D39 for ; Wed, 23 Feb 2005 08:56:39 +0000 (GMT) (envelope-from tedm@toybox.placo.com) Received: from tedwin2k (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) j1N8ueb90020; Wed, 23 Feb 2005 00:56:40 -0800 (PST) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Brian John" , Date: Wed, 23 Feb 2005 00:56:40 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <421BE0A2.905@fusemail.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Subject: RE: java applications taking up too much memory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 08:56:39 -0000 Hi Brian, First you should ask on the freebsd java mailing list, not here. Second, 200MB of ram isn't that big anymore these days for a server, you might consider your system needs more? Java isn't know for small programs. Java's strength is it's write-once, run-anywhere feature, and as a result it's going to be much more resource consumptive than a compiled C program. Last, most of this will probably be swapped out, so what you want to pay attention to in top is the Swap: line. When your app starts, you should see swap loaded up - what you should be concerned with is if you see a lot of in-and-out on the ram allocated, also you might try running systat -vmstat you will get a better idea of what your system is doing that way rather than just looking at top's output. Ted > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Brian John > Sent: Tuesday, February 22, 2005 5:47 PM > To: freebsd-questions@freebsd.org > Subject: java applications taking up too much memory > > > Hello, > It seems that my java applications are taking up a ton of > memory. Even > one small jar that I start at startup takes up almost 200 MB! > > I start it like this: > java -Xms4m -Xmx8m -jar /home/brian/serverWatcher/serverwatcher.jar & > and it looks like this in top: > 76750 brian 20 0 159M 10840K kserel 0:03 0.00% 0.00% java > > I start Azureus like this: > azureus -Xmx128m > and it looks like this in top: > 59636 brian 20 0 503M 228M kserel 2:37 0.00% 0.00% java > > I only have 512M of memory on this machine. Does anyone have any idea > how I can make these apps take up less memory? > > Thanks > > /Brian > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >