Large Dimension Build Cause Large Memory Usage

Post Reply
bradohare
Posts: 26
Joined: Wed Jul 23, 2008 3:11 pm

Large Dimension Build Cause Large Memory Usage

Post by bradohare »

Hello,

I'm currently in the process of creating a pretty large dimension (approx 1.9 million elements). I'm sourcing the dimension from an Oracle database (using an Oracle 11g 32 bit client). The behavoir occuring is a larger than normal (in my opinion) swell in memory as the recordset iterated over (it's approx 1.3 records). Specifically, prior to running the process the instance is around 1GB in memory however after running the process the instance has increased to almost 100 GB. While watching the task manager when the process is in the metadata tab the memory is increasing at a rate of almost 200 MB - 300 MB/sec in size. To help isolate what could be a potential problem I've done the following:

- Removed the dimension from any existing cube
- As a starting point, I've completely cleared the dimension of all elements (except one)
- In my process I'm not establishing any of the parent/child relationships. In other words, the process is only adding the elements (the 1.9 to the dimension) to the dimension
- I created a flat file with the same result set that is returned from my query. When I run the process with the flat file the increase in memory is from 1GB to around maybe 2 GB (i.e. seems reasonable)
- I then modified the process to do nothing in TM1 except build a text file representing the dataset being pulled from the database. Just spinning through the 1.3 million records led to an 80 GB increase in memory

Once, I stop and restart the service the instance reverts to original size. With that being said, I started the performance monitor expecting the server stats to have a whole bunch of memory placed into Garabage However that wasn't the case, despite having a consumption of the tm1sde.exe of nearly 100GB my StatsForServer showed only 4 or 5 GB consumed.

The one additional caveat to this is both the database and Tm1 database reside on amazon web services, and I don't have a means of determining where their respective data centers reside. I would think that sort of thing could impact performance from an execution time persepctive but I would think it would not have such a large impact on memory.

Any thoughts?

Thanks,
Brad
BrianL
MVP
Posts: 264
Joined: Mon Nov 03, 2014 8:23 pm
OLAP Product: TM1
Version: 9.5.2 10.1 10.2 PA2
Excel Version: 2016

Re: Large Dimension Build Cause Large Memory Usage

Post by BrianL »

Sounds like a memory leak bug with TM1 and the Oracle driver. You'll probably have to work with IBM support to resolve.
u970700
Posts: 13
Joined: Wed Nov 24, 2010 3:27 am
OLAP Product: TM1
Version: PAL 2.0.9.2
Excel Version: Excel 2016
Location: Darwin, Australia

Re: Large Dimension Build Cause Large Memory Usage

Post by u970700 »

Oracle database (using an Oracle 11g 32 bit client)
I'm assuming you are on TM1 64bit, so shouldn't you be using the Oracle 64bit client instead?

Just going through the process of building a new dev server using the above, and a few of the dimensions from our source system are 1 million+ as well.

Cheers.

Ray
TM1 9.5.2 FP3, Windows 2008 R2 64bit, Excel 2003 SP3
Post Reply