Kbase P149132: Is it needed to delete persistent procedures within WebSpeed/application server agents?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  24/02/2010 |
|
Status: Verified
GOAL:
Is it needed to delete persistent procedures within WebSpeed/application server agents?
GOAL:
Does Openedge runtimeremove persistent procedures from WebSpeed/application server agents automatically?
GOAL:
Does Openedge runtime clean up sessions and persistent procedures on each call to WebSpeed/application server agents?
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.x
Progress 9.x
FIX:
It's extremely important for to delete persistent procedures started on a WebSpeed/application server agents, to avoid memory issues and many other related problems due to excessive procedures loaded in memory. In WebSpeed/Application server, is very easy to loose track of the persistent procedures because the developer could be tempted to think that after a request is done, the agent will get cleaned. This premise is not true. The developer faces two options in this scenario. One is to delete all loaded procedures in the end of the request by himself, or using a custom web-disp.p/disconnect procedure, or let the procedures running to be reused in the next request, and verify before starting a procedure if it's already running. The session handle offers methods and properties to make easier the tracking of what is loaded in the session.