How to release the memory

After the stock market closed, how can I release the memory, and the data is saved to disk.

thank you.

for saving data, see
http://code.kx.com/wiki/DotQ/DotQDotdpft
http://code.kx.com/wiki/DotQ/DotQDothdpf

for reducing heap size, see

http://code.kx.com/wiki/DotQ/DotQDotgc

thanks