Hi,

Thanks. I was more thinking of a better way of querying my data. I'm new to Jess and do not know all the tricks yet. Is there some way to query my data without using facts like "Related" ("Related" maybe just using Ancestor)? Can I make complex queries in Jess that allow pattern matching in the query? So far I have only seen simple queries like you find in the Jess manual (just get all the facts "X" where variable "var" equals something).

kind regards,
Gerwin

Jason Morris wrote:
On Dec 15, 2007 12:37 PM, Gerwin van Doorn <[EMAIL PROTECTED]> wrote:

This works fine for a small example but when I read in my GEDCOM file of
2700 people a huge amount of (Related ?id1 ?id2) facts are generated and
java gives an out of memory error.

Hi Gerwin,

I'm not an expert on performance tuning, but have you tried increasing
the Java heap size for your JVM?

There is a rule of thumb that says:

-Xmx = 1/4 of total Memory;
-Xmin =1/2 of -Xmx

Therefore, if you have 4 GB of RAM on your dev box, you could start
your JVM with the following:

java -Xmin512m -Xmx1024m <class-name>

Two things to mention if you're on Windows:

* You should be able to squeeze 1.3 to 1.6 GB of heap from Windows.
Windows had (has!?) a limitation of approximately 1.6 GB for the
memory that it can allocate to a JVM.  Heap needs contiguous space,
and well... Windows is notorious for fragmentation.  If you're on
LINUX or UNIX, this isn't an issue AFAIK.

* Apparently was a known issue in Java 1.5 that allocating too large a
heap (i.e. larger than half of a system's physical memory) would cause
certain apps to fail.  I'm not sure if this was resolved in Java 1.6
and you don't mention what Java version you're running.

If you need more heap than 1.6 GB, I've read that you'll need to go to
64 bits, possibly on LINUX or UNIX.

Anybody else know for sure about this??

Hope this helps.

Cheers,
Jason

-----------------------------------------------------------
Jason Morris
Morris Technical Solutions LLC
http://www.morris-technical-solutions.com

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to