back to forum.

Topic: How to configure Java heap space

Topic by
diddy81

2011-03-10
16:05

How to configure Java heap space

Hi,
DataCleaner shows an error message that it ran out of memory. Where can I configure the Java heap space?
Thanks,
Diddy

Reply by
beno

2011-03-11
09:01
If you are running the .exe version of DC then you need to make an alternative launcher, a cmd or bat file. It should contain this as a starting point:
@echo off
set DATACLEANER_HOME=%~dp0
cd /d %DATACLEANER_HOME%
echo Using DATACLEANER_HOME: %DATACLEANER_HOME%

call java -Xmx1024m -jar DataCleaner.jar

And in the bottom line you can see the heap space, it's by default 1024 megs.

Reply by
kasper

2011-03-11
10:07
I would like to add a comment to that ...

Which features are you using DataCleaner for? We did quite a lot of testing to make sure that the application could not run out of memory, so it surprises me a bit that you got it to do that. Of course there are always limits and if you eg. keep your result windows open and run new jobs again and again, then you can rather quickly build up a big memory footprint.

A way to tweak it is actually by editing the "conf.xml" file that is located in the root of your datacleaner directory. Find this element in it (line 54):
<in-memory />
And change it to eg:
<in-memory max-rows-threshold="400" />
This will mean that DC only keeps up to 400 rows in memory for measure samples ("drill to detail" datasets).

Reply by
kasper

2011-03-11
10:09
Btw the default value for that property is 1000.

Reply by
diddy81

2011-03-11
12:14
Thanks a lot Kasper for your reply! I think actually that my PC ran out of memory. I closed another program that I had assigned 1GB of memory and then everything was working fine.
BTW: The new version is really amazing! Thanks a lot for your hard work!

You need to be logged in to participate

In order to post your own comments on this topic, you need to be logged in.

Username:

Log in by clicking the login link at the top of the screen