How much RAM is not much??
Hi all,
My server shows the following amount of RAM and is running really slow. Do you think I should add some RAM to it? Code:
[root@mail ~]# free -m |
there can be other things, not only the ram. it looks acceptable. you may also have a lot of [defunct] processes, network or hark disk problem. Maybe /tmp is almost full...
|
Quote:
Code:
[root@mail tmp]# df -h /tmp |
Quote:
---------- Post added 05-02-13 at 08:12 AM ---------- Quote:
What is the output of top? |
Quote:
Finding out why a computer is slow can be very difficult. First you need a good understanding of what you mean by "running really slow". What did you measure or observe? What activity took longer than you think it should have? |
Quote:
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND |
Memory and swap look good. That's not the source of the problem.
What is the load average on your system? Post the output of the "uptime" command to display this. Obtain this load average data when your system is running slow, not when it's running OK. We also need to know how many CPU's/cores your system has, to interpret the load average numbers. Get the number of CPU's/cores like this: "cat /proc/cpuinfo | grep processor | wc -l" |
It's also sometimes helpful to know how many processes are running on your system, to see if it's way out of the norm. Post the output of "ps -e | wc -l"
|
Quote:
Code:
[root@mail tmp]# uptime |
Load averages of 0.3 on a four core CPU are inconsequential. Your system is not even breathing hard. 194 processes is nothing either. All of this output you have posted so far looks good. Nothing I would be the slightest bit concerned about
but your system is still running slow. Can you describe what you mean by "slow"? For example, are characters not echoing back in a timely manner when you type on the command line? Is the system slow to boot? Can you give an example of a common process that is taking "too long", and how long that is taking? |
Grabbing at straws here...
Overloaded with network activity? Post output of "netstat -an |wc -l" Too many open files? Post output of "lsof | wc -l" |
Thanks, by slow I mean the Zimbra mail server responds very slowly to my users. It takes a long time for the user to be able to open, delete the email. I heard Zimbra might have a problem with JAVA.
This is the output you requested: Code:
[root@mail tmp]# netstat -an |wc -l |
That is not a high number for network activity.
Thus far, I don't see anything at the system level that would account for slow performance. One thing we haven't investigated yet is disk access performance. This could be an issue if Zimbra uses a relational database for storage (I don't know anything about Zimbra). But generically speaking, databases can put demands on disk access if they are heavily used. However, with the number of network connections you listed, I'm not sure you qualify as "heavily used". That "netstat -an | wc -l" returns an artificially high number... it includes UDP as well as TCP, ESTABLISHED connections, LISTEN'ers, TIME_WAIT connections, etc. So the returned number is much higher than the true network activity we need to be concerned with. I was just using it for an estimate, a ballpark figure that I could easily cut in half (or more). I would start investigating the application itself. Maybe there is some config setting where you can specify the max number of simultaneous network connections allowed. If you have more users coming in simultaneously than Zimbra is configured to handle, large delays could be a result. That's just a guess on my part, because I have seen this type of problem with other applications that are configured with lower resources than they need to do their jobs. Since you mentioned Java, is there a setting where you can specify how much memory it is allowed to use? Could be that while your server has plenty of memory at the system level, there is not enough memory being allocated to some java process at the application level. Java is a giant pig when it comes to resource usage. At this point, I think your issue is at the application level, not the server level. I hope some other folks will respond to this thread. Some who might be familiar with this Zimbra software you are using. I am only able to give you generic advice based on my experience, and I've pretty much exhausted that. |
maybe there's a problem on the client end. they're obviously running processes at the time login to mail server.
|
A sign of too slow disk access is a high percentage of %wa in top. (Third line from the top). If this percentage is is high then either the disk is slowing down response, or the network is. This percentage indicates "waiting for I/O"
What is high? I noticed that when it is more than 10% for 10-20 seconds the machine feels slow and there might be a disk problem. If someone has better figures, please post. jlinkels |
All times are GMT -5. The time now is 02:32 AM. |