Class cache

Posted by oedev on 04-Jun-2018 02:19

We've recently started using classes in our application, but, when changing propath we receive the following error;

"WARNING: Propath change will cause library 'application.pl' to be closed which contains a running procedure.  Library will remain open. (2311)"

Looking at the KB, it appeared the issue was due to using static properties/methods;

"Once a member of a static class has been referenced, the only way to remove it from the r-code cache is to shutdown the session"

However, even after re-factoring our code the remove all static references, the error still appeared.

After turning on client logging, we saw the following 2 lines appear in the log file when a object is deleted manually in the code;

[18/06/01@14:37:02.806+0100] P-010836 T-015500 2 4GL DYNOBJECTS Deleted Progress.Lang.Object Handle:1965 (initialise getdocstorecords.p @ 1524) AWSUtil
[18/06/01@14:37:02.806+0100] P-010836 T-015500 3 4GL DYNOBJECTS Cached Progress.Lang.Object Handle:1965 (initialise getdocstorecords.p @ 1524) AWSUtil

i.e. a DELETED message followed by a Cached.

Looking into the cache further, it appears this can be controlled via a client start-up parameter reuseableobjects-;

documentation.progress.com/.../index.html

Having set this to zero on our application, the propath change error goes away.

Now obviously there is a potential performance impact here, but, is this expected behavior?

Thanks.

All Replies

Posted by Fernando Souza on 04-Jun-2018 08:20

No, it is not expected that we keep the cache under that scenario. Please, log a call with Technical Support.

Posted by oedev on 05-Jun-2018 06:36

Thanks

Logged as case 00447025

Posted by Akshay Guleria on 12-Mar-2019 08:30

Has there been any solution to this issue? I have had the same issue and using reuseableobjects as a startup param did not help at all.

Posted by Brian K. Maher on 12-Mar-2019 12:16

There has been no change at this time.
 
Can you please detail why you are needing to change the PROPATH at runtime?
 
Brian Maher
Principal Engineer, Technical Support
Progress
Progress
14 Oak Park | Bedford, MA 01730 | USA
phone
+1 781 280 3075
 
 
Twitter
Facebook
LinkedIn
Google+
 
 

This thread is closed