Re: java.lang Out of Memory Errors?
- --- In email@example.com, "James Dempsey" <jdempsey@a...> wrote:
> ----- Original Message -----
> From: "jamng" <jamng@y...>
> Sent: Saturday, January 03, 2004 8:57 AM
> > Hello,
> > I'm on Windows XP running the latest version of Java that I
> > downloaded and installed yesterday.
> > In the pcgen.bat window I'm seeing a java.langOut of Memory error
> > regularly and when that happens pcgen stops working.
> > I did a search for this error but didn't see any hits.
> > Any idea on what this error means and how to fix it?
> > I've got 1GB of RAM in the machine so I would think that'd be
> Java by default limits itself to 64Mb of memory maximum. You can
> the amount it uses by using the command line switch -Xmx256, butsetting the
> value to the maximum amount of RAM (in Mb) you want it to use. Don'tgo too
> near your actual amount of RAM though or it will swap like crazy. Sochange
> your bat file to use this:This can also speed PCGEN up significantly even if you aren't having
> java -jar pcgen.jar -Xmx256
> and it should fix it.
memory errors. At least it did for me.
> In the 5.7 releases, this command will already be present in thebatch file,
> but commented out.
> James Dempsey
> PCGEN Code Monkey