Server Hangs when running process
- 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
Server Hangs when running process
Hi,
When I execute a process that transfers data from an external file to a TM1 cube, it hangs and does not do anything and stops anybody login or use TM1. Then I have to kill the TM1 service and restart.
I could not find anything in the tm1smsg.log and tm1s.log files about this problem and it does not create an error log file for the process as well. I simplified the process by removing text data items, leaving only numeric data items, but it did not help.
What might be happening? How can I diagnose the problem?
Regards,
When I execute a process that transfers data from an external file to a TM1 cube, it hangs and does not do anything and stops anybody login or use TM1. Then I have to kill the TM1 service and restart.
I could not find anything in the tm1smsg.log and tm1s.log files about this problem and it does not create an error log file for the process as well. I simplified the process by removing text data items, leaving only numeric data items, but it did not help.
What might be happening? How can I diagnose the problem?
Regards,
- 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: Server Hangs when running process
Firstly I would try upgrading up to 9.1 sp4 at the earliest to see if you still have the problem,
Jim.
Jim.
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
- 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: Server Hangs when running process
I am afraid, upgrade is not possible for this problem.
- 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: Server Hangs when running process
Assuming there is something wrong with eiter the data source or with the process settings,
- why is just a data upload process for one cube capable of crashing the whole TM1 server?
- why do all users have to stop using TM1 just because I am uploading a small set of data for just one cube?
- am I missing anything here or is this the way TM1 is delt with?
- why is just a data upload process for one cube capable of crashing the whole TM1 server?
- why do all users have to stop using TM1 just because I am uploading a small set of data for just one cube?
- am I missing anything here or is this the way TM1 is delt with?
- rkaif
- Community Contributor
- Posts: 328
- Joined: Fri Sep 05, 2008 6:58 pm
- OLAP Product: IBM Cognos TM1
- Version: 9.1 or later
- Excel Version: 2003 or later
Re: Server Hangs when running process
The SQL statement which you are using within the process may need optimization. Have you tried running the same SQL statement within the DB itself (any other IDE than TI Process like SQL plus if you are using Oracle).
What are you your Hardware specs? number of Processors? Total RAM? and the RAM still available?
Which back-end database you are using?
Is this problem with a specific TI Process or with every other process?
What are you your Hardware specs? number of Processors? Total RAM? and the RAM still available?
Which back-end database you are using?
Is this problem with a specific TI Process or with every other process?
Cheers!
Rizwan Kaif
Rizwan Kaif
-
- Site Admin
- Posts: 6667
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Server Hangs when running process
I wouldn't. The OP is on 32 bit. 9.1 is so memory hungry compared to earlier versions that I wouldn't think of going to 9.1 or higher unless you have either (a) a very small model or (b) have done extensive testing to ensure that you're not going to be bouncing your head against the memory ceiling on a daily basis. There's a reason that I upgraded to 9.0 and not higher.jim wood wrote:Firstly I would try upgrading up to 9.1 sp4 at the earliest to see if you still have the problem,
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Site Admin
- Posts: 6667
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Server Hangs when running process
The OP said that the data source was a file, not an ODBC connection.rkaif wrote:The SQL statement which you are using within the process may need optimization. Have you tried running the same SQL statement within the DB itself (any other IDE than TI Process like SQL plus if you are using Oracle).
mce wrote:When I execute a process that transfers data from an external file to a TM1 cube,
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Site Admin
- Posts: 6667
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Server Hangs when running process
It doesn't appear to be crashing it but rather hanging. Given that the data source is a file connection shouldn't be an issue; the process will either find the file or it won't and if it doesn't it would just abort. That makes it unlikely that the data source is the actual problem.mce wrote:Assuming there is something wrong with eiter the data source or with the process settings,
- why is just a data upload process for one cube capable of crashing the whole TM1 server?
Because TM1 can't know in advance that you're updating only one cube. It can't even know in advance which cube you are updating; for example for all TM1 knows you may have code in there that retrieves the cube name from the data source or from a lookup of a control cube. Accordingly it (in versions like 9.0 anyway) locks the server so that the update can be done without anyone getting in the way of that or them getting out of date data.mce wrote: - why do all users have to stop using TM1 just because I am uploading a small set of data for just one cube?
When this sort of thing happens it's usually because there's an endless loop in the TI code; a While statement which doesn't have an increment, for example. It may be an idea to post the process file so that we can check it for that; easier than speculating.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- 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: Server Hangs when running process
What everyone seems to have missed except Alan in the last post is that mce is running version 9.0. I'll make it more explicit for mce's benefit - in 9.0 there is no object locking model only server wide locks. Therefore it is perfectly normal (and expected) for all logged on users to experience a "hang" for the duration of a TI process running and for no new users to be able to log in while a process runs.mce wrote:Hi,
When I execute a process that transfers data from an external file to a TM1 cube, it hangs and does not do anything and stops anybody login or use TM1. Then I have to kill the TM1 service and restart.
I could not find anything in the tm1smsg.log and tm1s.log files about this problem and it does not create an error log file for the process as well. I simplified the process by removing text data items, leaving only numeric data items, but it did not help.
What might be happening? How can I diagnose the problem?
Regards,
Quite likely there is no "problem" at all other than mce is executing a long running process without realising that hanging users and preventing new connections is an expected outcome from doing this!
Does the process really "hang" (that is fail to finish) or would it actually complete successfully if allowed to run? How large is the source text file and how many records does it contain? If the file is very large then quite a long duration for the process would be expected.
If the process does complete but takes some time then the solution is clear - only run the process after hours so users don't get locked out. On the other hand if the process genuinely does fail to complete in an infinite time then chances are there is a problem with some while loop logic somewhere in the process so analysing any while loops would be a good place to start.
- 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: Server Hangs when running process
Thanks for the responses.
- My data source contains numeric and text data items and has less than 1000 records.
- I initially used an ODBC connection to the Exel file to load data, but after having this issue I converted it into a text file and tried the same, and had the same issue.
- When I ignored the text formatted data items from process, it was running successfully and quickly.
- I found out that when I try typing data to one of those text formatted cells in the cube, the server hangs again. This was explaining that the issue was not to do with the process or data source.
- I checked the rules for that cube, and removed all rule statements that was using the text formatted elements (although they were all right) that was causing the hang. Then tried typing again and it did not help.
- I am now trying to investigate why the server hangs when I type data in a text formatted cell, although it was working all fine previously and no change has been done to that cube.
- Do you have any ideas that might help me in this?
Regards,
- My data source contains numeric and text data items and has less than 1000 records.
- I initially used an ODBC connection to the Exel file to load data, but after having this issue I converted it into a text file and tried the same, and had the same issue.
- When I ignored the text formatted data items from process, it was running successfully and quickly.
- I found out that when I try typing data to one of those text formatted cells in the cube, the server hangs again. This was explaining that the issue was not to do with the process or data source.
- I checked the rules for that cube, and removed all rule statements that was using the text formatted elements (although they were all right) that was causing the hang. Then tried typing again and it did not help.
- I am now trying to investigate why the server hangs when I type data in a text formatted cell, although it was working all fine previously and no change has been done to that cube.
- Do you have any ideas that might help me in this?
Regards,
- 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: Server Hangs when running process
More notes,
- There are multiple text formatted data items in the measure dimension of this cube. Most of them working fine when typing data. But only few of them causes the server hang when typing data.
- I have the same cube in test server having the same rules and same cube structure. It does not have such an issue.
- Do you think it should fix the problem if I delete and re-create the cube?
- There are multiple text formatted data items in the measure dimension of this cube. Most of them working fine when typing data. But only few of them causes the server hang when typing data.
- I have the same cube in test server having the same rules and same cube structure. It does not have such an issue.
- Do you think it should fix the problem if I delete and re-create the cube?
- 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: Server Hangs when running process
The issue is disappeared when I delete the following feeder that was related to the string element:
The rule for that feeder was the one below:
I am re-working the feeder statement.
I did not know that such a feeder would cause the server hang and it did not until I try changing the values in string source cells.
Is there a rule in TM1 that we should not have feeders targeting input string cells haivng the same string cells as the source?
Code: Select all
['Live','Base','Name']=> ['Live','Name'];
Code: Select all
['Live','Name']=S:IF(ATTRS('Oth_Periods',!Oth_Periods,'ActPlan')@='Plan', DB('MyCube',!Oth_Scenarios,'Base',!Dim_Divisions,!Dim_Positions,'Name'),STET);
I did not know that such a feeder would cause the server hang and it did not until I try changing the values in string source cells.
Is there a rule in TM1 that we should not have feeders targeting input string cells haivng the same string cells as the source?
-
- 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: Server Hangs when running process
Your feeder statement has a circular reference and is recursively feeding itself!
Once a numeric feeder has fired it is switched off however string feeders are different they will continue to fire on every source string change. I would not have thought that a circular reference in a string server would cause a server to hang (the rule equivalent of a never ending while loop maybe?...) but perhaps this is your problem.
Edit: on a second look the area statement of the feeder might be muddled. Are "Live" and "Base" both members of the same dimension? If so you definitely don't want Live to feed itself. The correct (simplified) feeder would be ['Base'] => ['Live']
Once a numeric feeder has fired it is switched off however string feeders are different they will continue to fire on every source string change. I would not have thought that a circular reference in a string server would cause a server to hang (the rule equivalent of a never ending while loop maybe?...) but perhaps this is your problem.
Edit: on a second look the area statement of the feeder might be muddled. Are "Live" and "Base" both members of the same dimension? If so you definitely don't want Live to feed itself. The correct (simplified) feeder would be ['Base'] => ['Live']
- 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: Server Hangs when running process
Thanks for your comments. I will keep in mind not to let strings feed themselves to avoid circular issues.
Base and Live are in different dimensions.
Base and Live are in different dimensions.