You can set the memory size of your JVM, it can even be larger than your actual
physical memory.
On Jul 20, 2013, at 5:12 AM, Davide Rossi wrote:
> Hi everybody,
> I have two large datasets, each of which is about 2GB of memory. Now, I
> have to query both datasets in one single query because the informations I
> have to retrieve are divided in these datasets so I have to navigate their
> union. The problem is that I have only 1GB of memory on my JVM so when I
> try to do
> firstDataset.addNamedModel("second", secondModel)
> or
> firstModel.add(secondModel)
> I have an OutOfMemoryError. So, I would like to know if is possible solve
> this memory problem avoiding store all the informations in only one dataset
> (I must store the informations in two datasets).
>
> Thanks for your answers
> regards
> Davide