Tag Info

New answers tagged

2

The “missing” memory is serving as cache (mentioned in the top output at the end of the line that starts with the swap). You can use free to see this in a different form: $ free total used free shared buffers cached Mem: 1048576 640072 408504 0 0 533872 -/+ buffers/cache: 106200 ...


0

free -m will allow you to check how much the overal RAM usage fluctuates on your system. However, to monitor the memory and CPU usage of a particular process, I would recommend top (or htop) and ps. With htop, you can monitor the RES column of a process to get an accurate estimation of how much physical memory space is taken by running the application (it ...


0

You can use pmap which shows the memory map of a process: pmap -p pid For more information about it see the man page man pmap or have a look at pmap(1): report memory map of process - Linux man page.


3

Try: pidof bash | xargs ps -o rss,sz,vsz To find the memory usage of your current bash shell (assuming you're using bash). Change bash to whatever you're investigating. If you're after one specific process, simply use on it's own: ps -o rss,sz,vsz <process id> From the man page: RSS: resident set size, the non-swapped physical memory that a task ...


1

Your swap area is highly undersized. A large part of the RAM reported to be free is in fact currently unusable because it serves as a backing store to other programs memory reservations. Just add some swap, it can be a simple file, and you'll be able to launch your JVM.


1

You can have available RAM but still run out of swap. I believe this could be what you are experiencing. Investigate with swap -s. As a second idea the problem may be due to the fact that there isn't enough contiguous memory available although it would seem fairly odd if the OS cannot find 10 GB contiguous free memory when there seems to >100 GB free.


1

As far as I know that's not possible. And I think it is a much more complicated problem to solve than it looks at first if we take the complexity of memory management into account. It may be even hard to clearly write down what it means to "set 50MB aside". But in Linux, there is something that may well solve your problem much more elegant: The OOM killer - ...


0

Try with the following instead: java -Xms512m -Xmx512m -d64 HelloWorldApp or java -Xms1024m -Xmx1024m -d64 HelloWorldApp May also be because it is too high.


0

Create a script something like checkmemory.sh and place the following code: #!/usr/bin/ksh #memory calculator um=`svmon -G | head -2|tail -1| awk {'print $3'}` um=`expr $um / 256` tm=`lsattr -El sys0 -a realmem | awk {'print $2'}` tm=`expr $tm / 1000` fm=`expr $tm - $um` echo "\n\n-----------------------"; echo "System : (`hostname`)"; echo ...


1

With gawk, from its man page about arrays, you can read a details explanation. In most other languages, arrays must be declared before use, including a specification of how many elements or components they contain. In such languages, the declaration causes a contiguous block of memory to be allocated for that many elements. Usually, an index in the ...


4

Per the gawk manual, which is a good general awk language reference: An important aspect to remember about arrays is that array subscripts are always strings. That is, awk arrays are always associative, and numeric keys are stringified. Only the keys that are in use are stored in the array (and maybe some extra space for the future). Numeric indices ...


3

The manufacturer sold you the 2GB USB stick as 2 Gigabytes, meaning 2000000000 bytes. Your computer is showing the stick in units of Gigibytes. 1 Gigibyte is 1024 x 1024 x 1024 bytes, which is 1073741824 bytes. If you divide your 2000000000 by 1073741824 you'll end up with 1.86264514923095703125 or, rounded to two decimal places 1.86 GiB. In other words, ...


0

The difference is the space used by the file system. There is a space overhead for both metadata and the file system's internal structure. This is true of virtually all file systems whether they are Windows or Linux file systems. On linux, storage devices such as your ssd are treated as a block devices and there is a command 'dd' that will address entire ...



Top 50 recent answers are included