RE: memory usage

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. 
Thanks.

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
could
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
to
the binary. Or maybe you fork other java processes?

java.lang.OutOfMemoryError:
 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.launchServlet(ServletWrapper.java:294)
 at
org.w3c.jigsaw.servlet.ServletWrapper.launchServlet(ServletWrapper.java:370)
 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 17:26:56 UTC