I've written a command-line utility in Visual Basic 2005 that queries ReqPro 2003.06.15.734.000 through the RPX API to produce a set of requirements metrics reports as Excel spreadsheets.
The utility accomplishes this task, except that once processing is finished, the Reqpro40.Application object takes a long time to close its connection (at the call to CloseProject below). It seems the more documents I query (e.g. about 6100 requirements in 11 documents), the longer it takes to close the connection, to the point that it appears to be stalled and my user has to kill the application process.
The relevant code appears in the following snippet:
Option Explicit On
Public Sub Main()
Dim rpApp As New Application
Dim rpProject As Project
Dim ipdsMetricsReport As ReqMetricsReport
rpProject = GetProject(rpApp)
ipdsMetricsReport = New ReqMetricsReport(rpProject)
rpApp = Nothing
The program starts out at about 30Mb memory usage as reported in the Task Manager. As it runs, the program creates a new VB object for each document, then a new VB object for each applicable requirement in the document, after some filtering on requirement and document properties. Memory usage for the program's process goes up to about 376 Mb during the requirements processing in this case for approx 6100 requirements.
Once processing is finished and the program hits the CloseProject() call, memory starts decrementing a few 10's of Ks at a time, almost as if the ReqPro server is closing down the connection one requirement object at a time! I don't know how to confirm this through the API, or whether it's poor application design on my part in the way I use the ReqPro objects through the API.
Any suggestions as to how I might debug or resolve this problem would be appreciated.
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
2 replies Latest Post - 2013-02-14T10:37:46Z by SystemAdmin
Pinned topic CloseProject() or CloseServer() stalls
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-02-14T10:37:46Z at 2013-02-14T10:37:46Z by SystemAdmin
Re: CloseProject() or CloseServer() stalls2009-02-05T23:06:04Z in response to SystemAdminI've been having the exact same issue so thanks for your post because I wouldn't have looked at the mem usage. I have an open trouble ticket but IBM is already hinting they can't support it. I have found that closeProject, setting the reqPro app object = nothing and sweep method will start the memory de-allocation but its really really slow. Did you ever resolve this?
Re: CloseProject() or CloseServer() stalls2013-02-14T10:37:46Z in response to SystemAdminI face problems with the closeserver method, it does not work.
The closeproject method works with the callback (Rqcallback class) object as parameter, but not without.
This might be an issue for the ReqPro Team, maybe the closeserver method has to be rewritten, so that it uses the callback ?