BookmarkSubscribeRSS Feed

How to retrieve information about memory utilization on the LASR server?

Started ‎09-13-2019 by
Modified ‎09-13-2019 by
Views 4,457

Question

How to retrieve information about memory utilization on the LASR server?

Answer

Now you know how to get the list of LASR servers, but what about memory utilization? Is there is a way to get information about that programmatically? The answer is yes. Here is an example of a SAS program that you can use to retrieve memory utilization from the LASR server. Do not forget to change LASR_PORT, LASR_HEAD_NODE_FQDN, and MIDDLE_TIER_URL.

 

LIBNAME LASRLIB SASIOLA TAG=VAPUBLIC  PORT=LASR_PORT HOST="LASR_HEAD_NODE_FQDN"  SIGNER="http://MIDDLE_TIER_URL/SASLASRAuthorization" ;

%let sizecols = InMemorySize UncompressedSize 
                CompressedSize TableAllocatedMemory
                InMemoryMappedSize ChildSMPTableMemory
                VirtualMemory ResidentMemory AllocatedMemory;
%let countcols = NumberRecords UseCount RecordLength ComputedColLength;

data tablemem;
    set lasrlib._T_TABLEMEMORY;
run;

data lasrmem;
	set lasrlib._T_LASRMEMORY;
run;

proc print data=lasrmem;
    title "LASR Server Memory Usage";
    format &sizecols.  sizekmg9.2;
    format &countcols. 8.;
    sum _numeric_;
run;

proc print data=tablemem;
    title "LASR Server Table Memory Usage";
    format &sizecols.  sizekmg9.2;
    format &countcols. 8.;
    sum _numeric_;
run;

 

More information about memory management in the LASR server is available here.

Version history
Last update:
‎09-13-2019 11:07 AM
Updated by:
Contributors

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags