Hi Norman,
In the first case, you're passing a parameter to your Java VM, whereas in
the second case, you're passing a parameter to jess.Main.
Frank
On Thu, 25 Jan 2001, Gyhra, Norman (Student Assistant) wrote:
> Java seems to very picky with the order
> of the command line arguments:
>
> working:
> java -Xmx256m jess.Main
>
> non-working:
> java jess.Main -Xmx256m
>
> Maybe worth an addition to the manual ?
> Thanks for the help.
>
> Regards,
> Norman Gyhra
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Donnerstag, 25. Januar 2001 18:46
> To: Gyhra, Norman (Student Assistant)
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: JESS: OutOfMemory Error
>
>
> Use -Xmx256m .
>
> ms == initial heap size
> mx == maximum heap size
>
> The maximum has to be >= the initial size. These options do indeed do
> something -- Jess might still be running out of memory, but it should
> be running out at ~256M instead of at ~70M.
>
> I think Gyhra, Norman (Student Assistant) wrote:
> [Charset iso-8859-1 unsupported, filtering to ASCII...]
> > Hi !
> >
> > Jess 5.1
> > Java 1.3
> > 512MB RAM
> > fact file -> 18MB
> >
> > loading it via (load-facts) causes this:
> >
> > Exception in thread "main" java.lang.OutOfMemoryError
> > <<no stack trace available>>
> >
> > I tried the -Xms256MB option in the Java cmdlien, but it
> > doesn_t do anything.
> > During the loading process I was checking memory usage
> > in NT task manager and it showed 70MB memory usage
> > for java.exe when it bailed out.
> > I have had much larger fact bases before, so the 70MB
> > itself cannot be the problem. However, it works with smaller
> > fact files...
> >
> > My code:
> > (batch templates.jess)
> > (set-fact-duplication TRUE)
> > (reset)
> > (printout t "loading facts" crlf)
> > (load-facts "Facts.jess")
> > (printout t "go" crlf)
> > (run)
> > (printout t "done" crlf)
> >
> > templates.jess contains ONLY deftemplate definitions.
> > Any ideas?
> >
> > Regards,
> > Norman Gyhra
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> > in the BODY of a message to [EMAIL PROTECTED], NOT to the
> > list (use your own address!) List problems? Notify
> [EMAIL PROTECTED]
> > ---------------------------------------------------------------------
> >
>
>
>
> ---------------------------------------------------------
> Ernest Friedman-Hill
> Distributed Systems Research Phone: (925) 294-2154
> Sandia National Labs FAX: (925) 294-2234
> Org. 8920, MS 9012 [EMAIL PROTECTED]
> PO Box 969 http://herzberg.ca.sandia.gov
> Livermore, CA 94550
>
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
>
>
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------