W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 1999

RE: memory usage

From: lacall <lacall@micron.com>
Date: Wed, 14 Apr 1999 15:42:52 -0400 (EDT)
Message-ID: <B1272D4045CBD111A96E0020AFFBF32D03DB7C9A@ntxchange03.micron.com>
To: www-jigsaw@w3.org
Thanks for the reply.  I am using WinNT 4.0 SP3, jdk1.2, and jigsaw 2.0.2.  
I tried different small memory limits as you did, and jigsaw got outofmemory
exceptions, as you say. But when I raised the memlimit to 10 or 20MB, and
ran, it crashed after a while with an invalid instruction. So this makes me
think maybe the memory leak or other error is in my JNI code--I'll run some
tests to see if that's the problem. 

Luke Call
EDM Group
Micron Technology, Boise 

-----Original Message-----
From: Christopher William Turner [mailto:cwturner@cycom.co.uk]
Sent: Wednesday, April 14, 1999 11:10 AM
To: www-jigsaw@w3.org
Cc: 'www-jigsaw@w3.org'
Subject: Re: memory usage

I use Win98 , jdk1.2 and my own compilation based on jigsaw2.0.1
I  too have a complex servlet but was unable to affect my windows
"resources" (whatever microsoft means by that) which stayed at 79% free. I
take CPU usage to 100% very easily.

I tried "java -Xmx2m ...." (2 megabytes) and jigsaw still ran and served an
html page ok but
when it hit my servlet it provoked an OutOfMemoryException (which I
So java limits seem to work.

Perhaps your "java" is actually some script which doesn't pass the right
the binary. Or maybe you fork other java processes?

 at java.io.InputStreamReader.<init>(InputStreamReader.java:90)
 at java.io.InputStreamReader.<init>(InputStreamReader.java:74)
 at TradeStore.loadTrade(TradeStore.java:155)
 at TradeEnumeration.nextElement(TradeStore.java:32)
 at TradeStore.getCachedTrades(TradeStore.java:77)
 at TradescanServlet.init(TradescanServlet.java:352)
 at org.w3c.tools.r

lacall wrote:

> Jigsaw is using up all the memory on my PC (160MB, 200+ of swap), and this
> is probably just my a problem of my own ignorance. I am running jigsaw
> this command line:
>     java -Xmx30m org.w3c.jigsaw.Main -root C:\jigsaw\Jigsaw
> which I thought might limit it (especially since the default value for
> is 16MB). The servlet I'm running is complex, but should I be doing
> something else to control the RAM usage?
> Many thanks!
> Luke Call
> EDM Group
> Micron Technology, Boise

Chris Turner, http://www.cycom.co.uk/
Received on Wednesday, 14 April 1999 17:26:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:26 UTC