Linked Questions

1130 votes
17 answers
444k views

What exactly is POSIX? I have read the Wikipedia article but I still don't understand.
claws's user avatar
  • 54.6k
754 votes
19 answers
1.1m views

I have this tail recursive function here: def recursive_function(n, sum): if n < 1: return sum else: return recursive_function(n-1, sum+n) c = 998 print(recursive_function(...
quantumSoup's user avatar
  • 28.4k
473 votes
12 answers
501k views

Is there a way for a Python program to determine how much memory it's currently using? I've seen discussions about memory usage for a single object, but what I need is total memory usage for the ...
rwallace's user avatar
  • 34.1k
306 votes
8 answers
300k views

I have a problem with a Java application running under Linux. When I launch the application, using the default maximum heap size (64 MB), I see using the tops application that 240 MB of virtual ...
Mario Ortegón's user avatar
138 votes
12 answers
143k views

So I am looking at a heap with jmap on a remote box and I want to force garbage collection on it. How do you do this without popping into jvisualvm or jconsole and friends? I know you shouldn't be in ...
eyberg's user avatar
  • 3,270
179 votes
6 answers
67k views

From the official documentation (source): process.memoryUsage() Returns an object describing the memory usage of the Node process measured in bytes. var util = require('util'); console.log(...
Mahn's user avatar
  • 16.7k
185 votes
6 answers
98k views

On POSIX systems, termination signals usually have the following order (according to many MAN pages and the POSIX Spec): SIGTERM - politely ask a process to terminate. It shall terminate gracefully, ...
Mecki's user avatar
  • 135k
64 votes
10 answers
124k views

I was trying to figure out how much memory I can malloc to maximum extent on my machine (1 Gb RAM 160 Gb HD Windows platform). I read that the maximum memory malloc can allocate is limited to ...
Vikas's user avatar
  • 1,462
122 votes
2 answers
47k views

This question is meant to fill the vacuum of good free information on the subject. I believe that a good answer will fit into one big SO answer or at least in a few answers. The main goal is to give ...
Ciro Santilli OurBigBook.com's user avatar
131 votes
4 answers
191k views

My app was killed by the oom-killer. It is Ubuntu 11.10 running on a live USB with no swap and the PC has 1 Gig of RAM. The only app running (other than all the built in Ubuntu stuff) is my program ...
Corey Velan's user avatar
  • 1,471
65 votes
10 answers
88k views

Tools like 'ps' and 'top' report various kinds of memory usages, such as the VM size and the Resident Set Size. However, none of those are the "real" memory usage: Program code is shared between ...
Hongli's user avatar
  • 19k
51 votes
1 answer
102k views

I have a CentOS server. System is nginx/php-fpm. It has 16GB RAM. CPUs : 8 CPU Frequency: 2660.203 MHz Why am I getting this error in my error log? php-fpm/error.log: [02-Aug-2014 17:14:04] WARNING: [...
Çağrı Can Bozkurt's user avatar
32 votes
6 answers
92k views

I need to get the memory usage of the current process in C. Can someone offer a code sample of how to do this on a Linux platform? I'm aware of the cat /proc/<your pid>/status method of getting ...
scotts's user avatar
  • 4,097
20 votes
4 answers
17k views

The following problem occurs on a machine running Ubuntu 10.04 with the 2.6.32-22-generic kernel: Setting a limit for the Resident Set Size (RSS) of a process does not seem to have any effect. I ...
BrainCore's user avatar
  • 5,450
8 votes
4 answers
6k views

I just executed a program that mallocs 13 MB in a 12 MB machine (QEMU Emulated!) . Not just that, i even browsed through the memory and filled junk in it... void large_mem(void) { #define ...
raj's user avatar
  • 3,811

15 30 50 per page