PDA

View Full Version : javaw memory problem


ldkline
12-10-2009, 11:04 PM
I am running resin 3.1.8 on a Windows XP workstation with 2Gb RAM. Resin seems to run a process called javaw.exe. In fact sometimes there are two instances of this process running. Usually one of the processes takes about 250Mb of memory and the other only about 30Mb. Occasionally however the first process will start consuming memory and has at times gone up to 1.2Gb. At that point my computer is pretty unusable. Killing the javaw.exe process helps but resin seems to spawn another one immediately.

I am running resin as a windows service. I typically start it up from the command line using "sc start resin".

Any suggestions about how to reduce the memory consumption would be welcome. Thanks.

nam
12-11-2009, 05:39 AM
javaw.exe should be the actual Resin server.
java.exe is the watchdog that watches over the Resin server.

You can change the watchdog JVM arguments that are passed to java.exe. For example:

<server-default>
<watchdog-arg>-Xmx64m</watchdog-arg>
</server-default>

If javaw is taking too much memory, then there may be a memory leak somewhere. Can you do a heap dump when this happens?