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,793

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.

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

SAS AI and Machine Learning Courses

The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.

Get started

Article Tags