Severe memory leak in RooWorkspace?

Hi,

I observe a severe growing memory usage when using RooWorkspace (RooFit v3.60, ROOT 6.06/02) in a loop. The following code

#include "RooWorkspace.h"

void testworkspace()
{
	for (int i=0; i<1000; ++i)
	{
		if (i%10==0) cout <<i<<endl;

		RooWorkspace w("w");
		
		w.factory("a[10,-100,200]");
		w.factory("b[20]");
				
		w.factory("prod::N(a,b)");  // comment this line
	}	
}

finally uses 345 MB of memory. If commenting the line with prod::N, it ends up with only 50MB. Does anybody have an idea what’s going wrong?

Best regards and thanks,
Klaus

1 Like

@moneta maybe you can help here please?

HI,

This looks to me to be a memory leak in RooWorkspace. Can you please file a JIRA item ?

Thank you

Lorenzo

Hi Lorenzo,

probably yes, if you tell me what a JIRA item is, and where I can file one … :wink:

Best,
Klaus

Hi Klaus,

You can file Jira issue here https://sft.its.cern.ch/jira/projects/ROOT/

Cheers,
Oksana,

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.