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

Re: memory usage

From: Christopher William Turner <cwturner@cycom.co.uk>
Date: Wed, 14 Apr 1999 13:08:04 -0400 (EDT)
Message-ID: <3714CA73.466153AC@cycom.co.uk>
To: lacall <lacall@micron.com>
CC: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
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 intended).
So java limits seem to work.

Perhaps your "java" is actually some script which doesn't pass the right option
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.jigsaw.servlet.ServletWrapper.initialize(ServletWrapper.java:408)
 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 with
> 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 -Xmx
> 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 13:10:24 UTC

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