TM1 Garbage Memory
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
TM1 Garbage Memory
Hi,
What might be the reason to have big proportion of the allocated memory to TM1 is in Garbage and not used by any of the cubes even just after restarting the TM1 service?
Any comments would really be appreciated.
Regards
What might be the reason to have big proportion of the allocated memory to TM1 is in Garbage and not used by any of the cubes even just after restarting the TM1 service?
Any comments would really be appreciated.
Regards
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: TM1 Garbage Memory
Using multithreaded feeder loading (MaximumCubeLoadThreads>1).
Bear in mind that the calculation cache (and probably the stargate caches) will make use of the garbage. NB the TM1 instance never hands memory back to Windows.
Bear in mind that the calculation cache (and probably the stargate caches) will make use of the garbage. NB the TM1 instance never hands memory back to Windows.
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Re: TM1 Garbage Memory
Thanks David. This explains then. MaximumCubeLoadThreads=22
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: TM1 Garbage Memory
22!
How many physical cores do you actually have?

How many physical cores do you actually have?
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Re: TM1 Garbage Memory
We have 24 cores.
- wissew
- Posts: 54
- Joined: Tue Jun 17, 2008 7:24 pm
- OLAP Product: TM1
- Version: 9.5.2; 10.2.2; 11
- Excel Version: 2003 SP3 - 2013
- Location: Beaverton, OR
Re: TM1 Garbage Memory
SWEET!!!
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: TM1 Garbage Memory
Shame TM1 makes so little use of modern multi core technology. You can buy lots of servers, of course - that works well - but then the server to server integration is hardly there (replication - hah!).
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Re: TM1 Garbage Memory
Data updates and report queries can obviously utilize multi core as far as locking issues are handled properly. Obviously there a lot to be done on the locking area.
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: TM1 Garbage Memory
Calculation is still single threaded - and when data is changed, the calculation cache is cleared for the cube in question and all dependent cubes. Multi user locking is better than it used to be but for modelling apps with little input and lots of calculation, the architecture could be a lot better.
- wissew
- Posts: 54
- Joined: Tue Jun 17, 2008 7:24 pm
- OLAP Product: TM1
- Version: 9.5.2; 10.2.2; 11
- Excel Version: 2003 SP3 - 2013
- Location: Beaverton, OR
Re: TM1 Garbage Memory
What's the ram on the server?
- mce
- Community Contributor
- Posts: 352
- Joined: Tue Jul 20, 2010 5:01 pm
- OLAP Product: Cognos TM1
- Version: Planning Analytics Local 2.0.x
- Excel Version: 2013 2016
- Location: Istanbul, Turkey
Re: TM1 Garbage Memory
You are right. I meant to say that read queries from multiple users and write operations in batch update mode by multiple processes can utilize multiple cores. It would certainly be much better if it was able to utilize multiple cores for the same query but I think that is a very hard requirement to achieve and not sure if it would get any priority in near feature considering the existence of much more important requirements and more svere issues with TM1.David Usherwood wrote:Calculation is still single threaded - and when data is changed, the calculation cache is cleared for the cube in question and all dependent cubes. Multi user locking is better than it used to be but for modelling apps with little input and lots of calculation, the architecture could be a lot better.
- ioscat
- Regular Participant
- Posts: 209
- Joined: Tue Jul 10, 2012 8:26 am
- OLAP Product: Contributor
- Version: 9.5.2 10.1.1 10.2
- Excel Version: 07+10+13
- Contact:
Re: TM1 Garbage Memory
Hello, community!
achieved same trouble with garbage memory from MaximumCubeLoadThreads 4,5 GB for cubes and 5 GB for garbage. Now I've disables this option but garbage is still not 0. Now it's about 2,5 GB. Is this OK? How much garbage should just restarted model have?
Also found that consolidatechildren may cause large memory use but we don't use this function in model.
achieved same trouble with garbage memory from MaximumCubeLoadThreads 4,5 GB for cubes and 5 GB for garbage. Now I've disables this option but garbage is still not 0. Now it's about 2,5 GB. Is this OK? How much garbage should just restarted model have?
Also found that consolidatechildren may cause large memory use but we don't use this function in model.
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: TM1 Garbage Memory
There'll be all kinds of stuff like feeders or security going on in there. 2.5GB does seem very high but without knowing exactly what options you have set in your CFG it's hard to say what is causing it.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
- ioscat
- Regular Participant
- Posts: 209
- Joined: Tue Jul 10, 2012 8:26 am
- OLAP Product: Contributor
- Version: 9.5.2 10.1.1 10.2
- Excel Version: 07+10+13
- Contact:
Re: TM1 Garbage Memory
GroupsCreationLimit=10
[TM1S]
PerformanceMonitorOn=T
AllowSeparateNandCRules=T
ReevaluateConditionalFeeders=T
ServerLogging=F
SecurityPackageName=Kerberos
IntegratedSecurityMode=5
UseSSL=F
ServerName=<***>
DataBaseDirectory=<***>
LoggingDirectory=<***>
AdminHost=<***>
PortNumber=<***>
Language=ENG
SaveTime=
DownTime=
ProgressMessage=True
AuditLogOn=F
AuditLogMaxFileSize= 200 MB
AuditLogUpdateInterval=60
PersistentFeeders=F
ParallelInteraction=T
JobQueueThreadPoolSIze = 12
MaximumUserSandboxSize=1024
CalculationThresholdForStorage=100000000000000000000000000000000000000000000000000
ServerCAMURI=<***>
ClientCAMURI=<***>
#ServerCAMURI=<***>
#ClientCAMURI=<***>
ClientPingCAMPassport=110
CAMPortalVariableFile = portal\variables_TM1.xml
#IdleConnectionTimeOutSeconds=7200
DefaultMeasureDimension=T
#MaximumCubeLoadThreads=2
ViewConsolidationOptimizationMethod=TREE
#Optional CAM parameters
#CAMSSLCertificate=
#CAMSSLCertRevList=
#SkipSSLCAMHostCheck=TRUE
[TM1S]
PerformanceMonitorOn=T
AllowSeparateNandCRules=T
ReevaluateConditionalFeeders=T
ServerLogging=F
SecurityPackageName=Kerberos
IntegratedSecurityMode=5
UseSSL=F
ServerName=<***>
DataBaseDirectory=<***>
LoggingDirectory=<***>
AdminHost=<***>
PortNumber=<***>
Language=ENG
SaveTime=
DownTime=
ProgressMessage=True
AuditLogOn=F
AuditLogMaxFileSize= 200 MB
AuditLogUpdateInterval=60
PersistentFeeders=F
ParallelInteraction=T
JobQueueThreadPoolSIze = 12
MaximumUserSandboxSize=1024
CalculationThresholdForStorage=100000000000000000000000000000000000000000000000000
ServerCAMURI=<***>
ClientCAMURI=<***>
#ServerCAMURI=<***>
#ClientCAMURI=<***>
ClientPingCAMPassport=110
CAMPortalVariableFile = portal\variables_TM1.xml
#IdleConnectionTimeOutSeconds=7200
DefaultMeasureDimension=T
#MaximumCubeLoadThreads=2
ViewConsolidationOptimizationMethod=TREE
#Optional CAM parameters
#CAMSSLCertificate=
#CAMSSLCertRevList=
#SkipSSLCAMHostCheck=TRUE
-
- MVP
- Posts: 600
- Joined: Wed Aug 17, 2011 1:19 pm
- OLAP Product: TM1
- Version: 9.5.2 10.1 10.2
- Excel Version: 2003 2007
- Location: York, UK
Re: TM1 Garbage Memory
Off topic but I would put your CalculationThresholdForStorage down to a more sensible value. Most programs use the C function atoi to interpret strings as integers and the documentation for it says this
If the converted value would be out of the range of representable values by an int, it causes undefined behavior.
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: TM1 Garbage Memory
I'd also switch performance monitor off. I'm not sure if that would account for some of the garbage.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
- ioscat
- Regular Participant
- Posts: 209
- Joined: Tue Jul 10, 2012 8:26 am
- OLAP Product: Contributor
- Version: 9.5.2 10.1.1 10.2
- Excel Version: 07+10+13
- Contact:
Re: TM1 Garbage Memory
just deleted all files from data folder to test garbage - and get non zero garbage memory value. is it normal? shouldn't it be zero?
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: TM1 Garbage Memory
Oh dear, oh dear. I thought we had gotten a bit further than this. What exactly would you think that any FILES would have to do with anything? Remember the TM1 server is completely in memory, the data directory files only represent a static copy of the database at a point in time. Also be very careful with deleting any files in the data directory while the server is in session as this can cause instability (i.e. crashes).ioscat wrote:just deleted all files from data folder to test garbage - and get non zero garbage memory value. is it normal? shouldn't it be zero?
- ioscat
- Regular Participant
- Posts: 209
- Joined: Tue Jul 10, 2012 8:26 am
- OLAP Product: Contributor
- Version: 9.5.2 10.1.1 10.2
- Excel Version: 07+10+13
- Contact:
Re: TM1 Garbage Memory
wow, lotsaram, of course I stopped service, then deleted files and started server again. So, as I suppose, I got "Game over" TM1 server. As you can see, there is only about 9 MB of memory used.
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: TM1 Garbage Memory
Well I think if you meant that you were starting a server from an empty data directory there were maybe clearer or better ways of phrasing it.
Some garbage memory is normal. It just means that TM1 has requested more memory from the OS that what it currently requires. I don't know why you would be concerned about it.

Some garbage memory is normal. It just means that TM1 has requested more memory from the OS that what it currently requires. I don't know why you would be concerned about it.