Hi,
For the RAM usage, linux adds cache to the RAM to open the program next time with speed. This caches get replaced or deleted if there are some other processes that wants to use RAM. Therefore, this should not worry you at most of the situations.
Are you getting a memory lock or full memory error? Like I said it is probably cache if it is not locking memory.
Thanks