Page 1 of 1

Memory leak in 10.2.1 when using Rule

Posted: Thu Dec 05, 2013 8:25 pm
by kingaj12
Hi

This occurs in both Performance Modeler and Server Explorer/Architect.

I have a sparse cube (only 250 rows) with 7 dimensions and 5 measures. When I add a rule to calculate a value for one of the measures and refresh the view I get a memory leak.

In the stderr log there are a number of Class Not Found reports of the type:
Dec 05, 2013 12:42:28 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /p2pd threw load() exception
java.lang.ClassNotFoundException: com.cognos.pogo.isolation.ServletWrapper
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
In addition it seems that a few threads are not stopped:
INFO: Stopping service Catalina
Dec 05, 2013 12:40:50 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/tm1web] appears to have started a thread named [Thread-14] but has failed to stop it. This is very likely to create a memory leak.
Dec 05, 2013 12:40:50 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/tm1web] created a ThreadLocal with key of type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@df234ecc]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@5a18b61c]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Stopping the TM1 services does not eliminate the leak. I have to reboot the machine to stop the leak.

I am happy to respond to queries: kingaj@us.ibm.com

Alan

Re: Memory leak in 10.2.1 when using Rule

Posted: Thu Dec 05, 2013 9:06 pm
by Duncan P
Could you be a little more specific about what exactly you are seeing? How did you come to the conclusion that it was a leak? What process do you think the leak is occurring in?

The error messages that you quote come from Tomcat which is hosting the PMPSVC which handles the communication between Performance Modeler and the TM1 server process. Could you describe what happens when you use Architect (and the PMPSVC component is not in the mix at all)?

Is it possible that what you are seeing is the result of TM1 caching the results of the calculation you requested? Have you used Performance Monitor and checked the stats cubes in Architect?

Is it possible for you to post the rule?

Questions, questions, questions ...

Re: Memory leak in 10.2.1 when using Rule

Posted: Fri Dec 06, 2013 12:50 pm
by tomok
Did anyone else notice the irony in this???
kingaj12 wrote:I am happy to respond to queries: kingaj@us.ibm.com

Re: Memory leak in 10.2.1 when using Rule

Posted: Fri Dec 06, 2013 4:36 pm
by David Usherwood
@kingja12, I'm thinking that you have written a rule without skipchecks and feeders and TM1 is not using the sparse algorithm, then Tomcat is assuming that TM1's lack of response means there is a memory leak. Can you advise?