GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Query Tool retains large result sets after connection closure, causing excessive memory usage · Issue #10890 · pgadmin-org/pgadmin4 Backlog Labels DescriptionDescriptionWe observed significant memory retention in pgAdmin 4 v9.13 running in server mode. The Gunicorn worker retained PostgreSQL query results through Explicitly closing just two retained cursors reduced the worker's RSS by approximately 2.12 GiB, without restarting pgAdmin. Repeated Environment
Observed behaviorDirect inspection of the running Gunicorn worker revealed:
Of the 54 retained cursors, 50 belonged to sessions inactive for at least 30 minutes. Experimental confirmationWe selectively closed two cursors associated with closed database connections, removed their references from the corresponding First cursor cleanup:
Second cursor cleanup:
Total RSS reduction: approximately 2.12 GiB. The reduction persisted after cleanup. A subsequent inspection also confirmed that the first cursor and its 2,589,520 rows were no longer retained. This directly demonstrates that retained query results accounted for a substantial portion of the worker's memory consumption. Related cleanup exceptionThe logs also contained 175 Relevant traceback: In Consequently, a decryption exception can prevent the remaining connection cleanup operations from running. Additionally, The connection between these decryption exceptions and the specific retained result sets has not been conclusively established. Relevant code
Expected behavior
Reproduction statusObserved repeatedly in a long-running, multi-user pgAdmin instance using Query Tool with large result sets. A minimal standalone reproduction has not yet been established. The memory retention and its release through targeted cursor cleanup were confirmed directly in the running process. Related issuePossibly related to #6120, which reported a similar The present report adds direct evidence of substantial SQL result memory retention in v9.13. ActivityMetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |