메모리2 ubuntu 14 - 서버 메모리 사용확인 및 정리 우분투 서버를 오래 사용하다보면 간혹 메모리가 말도 안되게 사라져서 재기동을 하게 되는 경우가 생깁니다. 이럴때는 재기동을 하지 말고 메모리 사용량을 확인하고 만약 캐쉬 메모리가 많이 잡혀 있다면 이것을 해제해주면 됩니다. [메모리 사용량 확인] > ps -eo user,pid,ppid,rss,size,vsize,pmem,pcpu,time,cmd --sort -rss | head -n 11 [메모리 확인] > free -m [캐쉬 메모리 정리] sudo syncsudo sysctl -w vm.drop_caches=3 2018. 1. 22. 유니티3D 메모리 관리(Unity3D Memory) 유니티3D 메모리 관리(Unity3D Memory Management) C#의 메모리는 C와 다르며, 키워드는 stack과 heap이다stack은 순서가 있고, 빠르며 다만 제한적이고, heap은 랜덤이고, 사이즈가 크며 단 느리다. ▣ value Types and the Stack A stack is a pile of variables, just like a pile of plates, you can only remove the top one or add on the top but you cannot remove the bottom one or add at the bottom. The stack is used for function calls재귀함수를 사용한 무한루프에 빠졌을때 stack overflo.. 2014. 1. 18. 이전 1 다음