Help Center > > Developer Guide> Resource Load Management> Memory Management> Job-Level Memory Control

Job-Level Memory Control

Updated at: Sep 17, 2021 GMT+08:00


GaussDB(DWS) can control memory at job level. This helps you more efficiently utilize memory resources than work_mem does.


The cluster has been installed and works properly.

Memory Parameters

You can set query_mem for a session to control memory available for jobs.


The database administrator can manage the logical memory of the database by taking the following steps:

  1. Set query_mem to 500MB.

    set query_mem='500MB';

  2. Execute the job.

If query_mem exceeds the upper limit of memory available in the resource pool or is less than 256 MB, query_mem will not take effect. Available memory for jobs is still controlled by work_mem.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel