Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 60987 invoked from network); 12 Dec 2002 17:54:26 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Dec 2002 17:54:26 -0000 Received: (qmail 15075 invoked by uid 97); 12 Dec 2002 17:54:55 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 14984 invoked by uid 97); 12 Dec 2002 17:54:54 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 14888 invoked by uid 98); 12 Dec 2002 17:54:54 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Authentication-Warning: localhost: leo set sender to leop@engr.arizona.edu using -f Subject: RE: Memory issues From: Leo Przybylski To: Tomcat Users List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Message-Id: <1039715480.3924.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 12 Dec 2002 10:51:20 -0700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, 2002-12-12 at 10:03, Shapira, Yoav wrote: > Hi, > What OS (and version) and JDK version you're using? > > It could be that your OptimizeIt version is too old (it's Borland, not > Inprise, for a while now) to run with the JDK you're using? I like > OptimizeIt, been using it since 4.0, and it's a good tool. The system is Redhat 7.2 with default SMP kernel. I'm using jdk1.3.1_06 (Borland states this should be fine in retrospect to jdk1.4.1). I am only using the trial version for profiling right now. We are evaluating and may purchase the full version. > > If you're using linux, the thread memory usage is cumulative not > separate, despite the display of the "top" command. So you don't have > 57*64, but 57 threads sharing 64MB. This has been discussed on this > list many times: search the archives for more info on linux memory > usage. > > >of memory" error. Perhaps that is what I am noticing. I still do not > >know why I am getting it though. > > Your profiler should tell you where memory is allocated. > > >> Could it be that you simply need more than the default 64MB memory? > >I don't know. The machine has 1GB of physical and 2GB virtual memory. > >With the total of java processes at 64MB each and 57 of them running, > my > >machine is almost depleated. > > See above regarding interpretation of thread memory usage. > > The heap is shared among all threads in the JVM, so what you specify as > -Xmx is not per-thread and your machine physical memory will not be > depleted. Thank you. I will read up on this. I had no idea. I had been using vmstat, top, and /proc to get information related to how much memory I am using. All this time, I did not realize they were inaccurate because they were indiscriminant of shared memory. When gtop reported there was 1GB resident for java, it made our system administrators drop a pantload and they flamed me. -Leo > > Yoav Shapira > Millennium ChemInformatics > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: