LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-22-2011, 05:26 PM   #16
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886

Quote:
Originally Posted by amunro View Post
Have you looked at the picture? The process does not show up at ALL on the 'top' command. Something is using up 1gb of pysical RAM and is not showing up!
Yes, I have looked at that picture. Do you really think you have only 25 processes running on that system? Sort your processes by Res and it will show the processes that are using the most of the RAM. If you sort by a criteria that is not related to memory the process you search can be #26 and will not show up.
If you don't even consider to try what is recommended to you, why are you asking in the first place?
 
Old 05-22-2011, 07:46 PM   #17
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by paulsm4 View Post
Dude - you DON'T HAVE A MEMORY PROBLEM!!!!!!!!
We can't know that from the info posted.

The "virtualization" is hiding too much info.

Quote:
if you WANTED to "optimize" memory usage, the ONE process in question is Java.

Which, in your "top" output, is using 1.484GB virtual, and 860MB of resident memory.
The OP has said that is reasonable. I don't want to speculate whether that is right or wrong.

Quote:
You've got free RAM. You're using zero swap.
Do you know enough about this specific type of "virtualization" to justify that faith you're putting in that free RAM stat? I don't. Anything we know from non virtual Linux and true virtual Linux can be wrong when applied to this not quite virtual method of sharing a system.

As for using zero swap, that is incredibly unlikely, given all the other stats. I am pretty sure that the "virtualization" is simply stopping the tools from being able to see things like swap use.

Quote:
Please LISTEN to what the others are trying to tell you.
Now you're giving good advice.

Quote:
1. As you've been told repeatedly, "top" doesn't show *all* processes
That info seems to be bouncing off the OP to no effect. I don't know a better way to phrase it.

If top was showing 25 processes and you then sort by RES, top will still be showing you only 25 processes, but it won't be the same 25 processes (merely sorted differently). It will be the 25 processes using the most memory.

I don't know how much of the memory use will show up that way. Maybe no more than we've already seen (but that's unlikely). Maybe very close to the total implied by free. Maybe significantly more than the total implied by free (even if the stats were real, there are many reasons any of those might happen).

I think this, not really virtual, shared system is showing you very distorted statistics for any system wide total (obviously not a true system wide total, but also not an accurate measure of your share).

But until you look at the understandable use of memory by processes, you're not ready to even start thinking about more complicated aspects.

Last edited by johnsfine; 05-22-2011 at 07:56 PM.
 
Old 05-22-2011, 10:13 PM   #18
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Johnsfine -

As far as the physical host server is using physical RAM - we simply don't know.

But everything I've read seems to indicate the OP is worried about seeing 1++GB used in "top", and believing there might be some way to use less. It sounds like the OP is also concerned there might be some rogue process eating RAM.

Neither concern is warranted - "top" shows a perfectly happy system.

ALTERNATE CONCERN:
Maybe the underlying physical host is underpowered. Maybe the OP has control over the physical host and the virtualization software - maybe he doesn't.

But that's a separate question. As far as his Linux server: THERE IS NO PROBLEM!

PS:
The OP was also given a couple of "ps" commands to try, in addition to "top".

PPS:
Quote:
The "virtualization" is hiding too much info.
That's in incorrect statement.

The "virtualization" hides ALL info. If you suspect the physical host, you must look at the physical host. You can't really tell ANYTHING about whether the physical host might be CPU-bound, I/O bound or memory-bound from inside the VM itself...

PPS:
The advice about JConsole (or equivalent) is also good advice. Whatever resources the VM is using, they appear to be Java-related.

Last edited by paulsm4; 05-22-2011 at 10:16 PM.
 
Old 05-23-2011, 04:04 AM   #19
amunro
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Ok thankyou! I was just confused at why the pysical memory didn't add up

I am clearly just picking hairs trying to make my system run better!

Last edited by amunro; 05-23-2011 at 04:08 AM.
 
Old 05-23-2011, 09:23 PM   #20
amunro
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by paulsm4 View Post
Amunro -

Dude - you DON'T HAVE A MEMORY PROBLEM!!!!!!!!

And if you WANTED to "optimize" memory usage, the ONE process in question is Java.

Which, in your "top" output, is using 1.484GB virtual, and 860MB of resident memory.

You've got free RAM. You're using zero swap. Please LISTEN to what the others are trying to tell you. You have a Happy System. Relax. Chill

PS:
Two other suggestions to set your mind at ease:

1. As you've been told repeatedly, "top" doesn't show *all* processes - just the most *significant* ones. Here's a command to see all processes, sorted by Resident Set Size:
Code:
ps -eaF --sort=-rss
2. Investigate JConsole (or equivalent for your Java version):

Ok I think I understand now. As I am using zero swap, my pysical RAM usage is quite high. I am slowly getting closer to my RAM limit, and need to create a swapfile incase it crashes. How would I go about doing this, and will this decrease the performance of my server as a result?

Thanks!
 
Old 05-23-2011, 09:50 PM   #21
amunro
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Damn. After getting so far, i got to swapon: /swapfile1: Operation not permitted. Looks like my host has restricted it so I am stuck with zero swap!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I have a memory issue? DotHQ Linux - Server 5 10-28-2008 05:06 PM
Inactive memory issue, Freebsd (memory leak?) JasperB *BSD 7 08-12-2008 04:19 AM
Memory Issue? janetg SUSE / openSUSE 4 07-17-2006 09:16 AM
Memory issue jax79sg Programming 7 09-30-2004 01:14 AM
memory issue sachin_keluskar Linux - Hardware 1 07-27-2004 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration