Quote:
Originally Posted by NevemTeve
Code:
strace <executable>
might show something (not for beginners, though)
|
I tried, strace, mmap2 failed with ENOMEM return code.
mmap2(NULL, 955544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 12, 0) = -1 ENOMEM (Cannot allocate memory)
955544 is this bytes? or Kb? or Mb? I guess it should be bytes which comes around 933 Kb.
Does it mean the system does not have enough virtual memory or its user limit set for individual user id?
I did use, limit to identify what are the resource limits.
cputime unlimited
filesize unlimited
datasize unlimited
stacksize unlimited
coredumpsize unlimited
memoryuse unlimited
vmemoryuse unlimited
descriptors 1024
memorylocked 32 kbytes
maxproc 192801
vmemoryuse is nothing but, virtual memory is 'unlimited', so it is not clear why mmap2 is unable to allocate memory?
Please note, the same application if i run with 64-bit binaries, I dont see this 'mmap2 ENOMEM' error.