Hot answers tagged

14

Hide user threads (shift + H) and close the process tree view (F5), then you can sort out the process of your interest by PID and read the RES column (sort by MEM% by pressing shift + M, or F3 to search in cmd line)


12

Since you weren't using your memory for anything better, its being put to use as disk cache. If you start services, they will just take memory from the cache. This is a good thing, not a sign that anything is wrong. See linuxatemyram


9

Duplicate .. htop is showing different threads as well. not just processes. top and ps show only processes.


8

There is top's secure mode, when it is invoked as top -s In that mode the user can't change the refresh delay of top, kill or renice processes. If you want to make it system wide instead of on a per-invocation basis, you may use the /etc/toprc file with the following contents: s 3.0 Only two lines: first one to set secure-mode, and the second to set ...


4

Seems a duplicate of this: http://stackoverflow.com/questions/33269339/htop-process-viewer-set-column-width In short, in current versions the column width is fixed. You can ask for this enhancement to the devs or implement it yourself :-) You can use ps to find the processes in control groups you're interested in.


4

VIRT does not have anything to do with used memory (virtual or otherwise), but with used address-space, which is not as related as you might think. Modern operating systems (including OSX) have a feature called demand paging which works by telling the operating system to map a certain region of virtual address space to a file (such as a shared library/DLL). ...


3

I edited the Sidekiq startup arguments. In GitLab <7.0.0 it's under scripts/background_jobs but in >7.0.0 it's under bin/background_jobs Change: function start_sidekiq { bundle exec sidekiq -q post_receive -q mailer -q system_hook -q project_web_hook -q gitlab_shell -q common -q default -e $RAILS_ENV -P $sidekiq_pidfile $@ >> $sidekiq_logfile 2&...


3

Sure, check this thread here: https://github.com/gitlabhq/gitlabhq/issues/2780 Just edit the sidekiq config.yml, note the concurrency option: https://github.com/mperham/sidekiq/blob/master/examples/config.yml


3

As the message reports, this a bug in kernel-level code. Those CPUs are stuck in a kernel code (vmx-cpu-0) that is not yield()ing control of the CPU for a long period of time. As far as what to do - open a ticket with VMware. vmx-cpu-0 looks like their code, but I'm not totally sure.


3

You still have memory to spare. The system isn't swapping out cause it hasn't needed to yet... but then again, I notice something odd - from what I can tell, you have no swap space set up. On one of my (linux) systems it reads CPU[|||||||||||||||||||| 63.2%] Tasks: 89, 114 thr; 1 running Mem[||||||||||||||||| 167/1001MB] Load average: 0....


2

Did you look at 00FAQ as was suggested by the error message? Question 8.6 describes exactly your situation and how to work around it. If you don't want to install the Kernel source on your machine, a workaround would be to install the lsof binary package pkg_add -r lsof


2

This is a known issue with ESX 4. Virtual machines display increased memory usage in vmware-guestd and vmwareservice.exe. The memory footprint of the process continues to increase until the available memory is drained and the process cannot allocate any memory. This issue is more prominent when the guest operating system has a large number of IP ...


2

Generally, 60MB is enough leeway. You can check with cat /proc/sys/vm/min_free_kbytes. That will tell you the amount of free RAM the server thinks it needs, and it's typically around 64MB. A bit less than that is fine -- unless you have some strange I/O storm, the amount of free RAM needed is extremely small. If you use NFS heavily or have some kind of ...


2

It's filled up with cache. Still available to programs if they need it, but currently allocated by the kernel. Take this graph of one of my VMs: 'Apps' is only a little bit, but a large part of the rest of the memory is filled with buffers and cache. It helps to put as much disk data in memory to speed it up. However, the way the Linux kernel does it (...


1

The red color indicates that the amount of VIRT or RES memory is in the area of gigabytes. The light blue color corresponds to megabytes, and therefore white color means kilobytes. This is, that the users has instantly a visual information, if he searches for processes, which consume a lot of memory. Notice that, the nice values (NI) are also red, when they ...


1

Htop does not know it is running on a kernel level VPS and is showing the CPU usage of the hardware, not just your VPS.


1

Since this is a java process half of the answer is in the screenshot you provided. This bit right here: -jar spigot.jar So when that java process was kicked off that spigot.jar file was in its current working directory (CWD). Now you just need to determine what the CWD is. There's many ways to do this, I'll cover two: Use /proc: ls -ld /proc/4910/cwd ...


1

Kernel processe is hidden by default in htop. You can use shift-k to show kernel processes. (red in cpu usage bar is for kernel usage)


1

I found that for Red Hat EL 5 and htop 1.0.3 I had to make the following code change to get the command to show up for root processes. I did not need to make this changes to Red Hat 6 EL. --- Process.c 2014-01-01 12:00:00.000000000 -0400 +++ Process.c.patched 2014-01-01 12:00:00.000000000 -0400 @@ -52,7 +52,7 @@ #define PROCESS_FLAG_CGROUP 16 #...


1

Should be in .config/htop/htoprc or something similar. I'd say you have this line in your config file shadow_other_users=1 You should put it at 0. Otherwise if you start htop with your user it will shadow other users' processes. Can you please post your htoprc file if this doesn't work?


1

I wouldn't worry at all about the small swap usage. It happens that kernel drops some data from memory to swap. You can control the behavior of kernel with the swappiness option: echo 60 > /proc/sys/vm/swappiness This control is used to define how aggressive the kernel will swap memory pages. Higher values will increase agressiveness, lower values ...


1

Htop show memory: MEN TOTAL, USED, BUFFERS AND CACHE. If you sum used, buffers and cache you will have result equals result of command free. Htop you need to consider all results because process can use any memory. Man htop describe memory is: M_SIZE (VIRT) Size in memory of the total program size. M_SHARE (SHR) The size of the ...


1

This would be trivial using a tool like monit. check system myhost if cpu usage (system) > 80% for 4 cycles then alert if cpu usage (user) > 80% for 5 cycles then alert if cpu usage (wait) > 90% for 5 cycles then alert


1

Memory is a hard thing, you cannot calculate used physical memory by just running ps/htop/top. Memory can be shared between processes. I recommend you to check usage with this script: http://www.pixelbeat.org/scripts/ps_mem.py


1

Yes, this is normal. Multiple PHP workers are set up (and if you get heavy traffic, more will usually be created as needed) so your web server can handle more than one PHP request at a time.


1

It's just the difference of whether you consider memory that contains discardable data as used or not. The memory is used in the sense that it contains information that may be useful. But it's free in the sense that the information can simply be discarded if the memory is needed. For example, say you run a program. The executable file that holds the program ...


1

If you think its IO load, use lsof to determine what hooks are into your local file system.


1

If you suspect an I/O hog process, you can use iotop to find it. Recent versions of htop also have per process I/O stats, but you might need to configure htop to show that.


1

Get htop, its a little easier to figure out whats going on using this tool. Also it would help to see the process table, paste output of ps aux.



Only top voted, non community-wiki answers of a minimum length are eligible