LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-10-2012, 03:35 PM   #1
WoAnerges
Member
 
Registered: Apr 2012
Posts: 50

Rep: Reputation: Disabled
Question process is always using not more than 49.1 %MEM


So, if you read the title, you are, probably, guessing, what is my concern about.
How do I make my highest priority process to utilize more memory, than it does.

I am having 16GB of MEM.

This is, what process is showing.
8PR -12NI 9.9gVIRT 7.7gRES S 178%CPU 49.1%MEM java
It is always on 49.1%MEM.

Process is starting with a command:
nice -n -12 java -Xincgc -Xmx9G -jar -server hacktheplanet.jar nogui
 
Old 05-10-2012, 03:46 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,565

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
It's not going to use more memory than it needs. If you see a spike in i/o wait then you know the app is trying to allocate memory that your server doesn't have available.
 
1 members found this post helpful.
Old 05-10-2012, 04:08 PM   #3
WoAnerges
Member
 
Registered: Apr 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
Seriously, it just hangs on 49,1%MEM for a several hours now.
It does not move. I want it to utilize all the potential.
 
Old 05-10-2012, 04:09 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,565

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Seriously, Linux is awesome at memory management and it will give the resources to a process if they are available. Just because it is sitting at 49% does not mean there is a problem. If you look at top do you see any i/o wait or load on the server at all?
 
1 members found this post helpful.
Old 05-10-2012, 04:20 PM   #5
WoAnerges
Member
 
Registered: Apr 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
I see this:
load average: 0.46, 0.48, 0.53
Mem: 16463864k total, 16374960k used, 88904k free, 315796k buffers
Cpu(s): 14.9%us, 0.8%sy, 0.0%ni, 84.1%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%

Does it look like a load for you? I just tried to perform a memory intense task in my process and memory usage level didn't even move.
That is very strange. I guess, even very demanding tasks on my server don't need more memory, than allocated, or something like that.
But this 49,1. Why such a random number? How did it calculated it to be on 49,1%MEM?
I want to understand from mathematical perspective, why exactly this amount of mem is used.
 
Old 05-10-2012, 04:36 PM   #6
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,565

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
You can start looking deep into the proc files for the process if you really want to. It's very possible that a big part of that 49.1% is cached dirty memory. So your process may only be using 5-10% but the Linux kernel has not cleaned the rest of that memory and released it as no other apps have requested any memory.

Your top output looks well within optimal ranges, almost perfect.

My advice is don't fix whats not broke, but if you really want to figure it out start hacking into the /proc/ directory and looking at the proc files for that process(not fun at all).
 
  


Reply

Tags
jar, java, memory, priority, utilization


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
High mem usage, nothing in process list Brandon.Wamboldt Linux - Server 4 06-03-2009 06:06 AM
Finding the Process ID of a Process While Initiating the Process senthilmuthiah Linux - Newbie 7 04-02-2009 10:37 AM
CPU and MEM of a PROCESS narendra1310 Linux - Newbie 1 08-29-2008 09:39 AM
Check process mem usage? Zeno McDohl Linux - Newbie 8 03-17-2008 04:53 PM
how to use 2G+mem/process on i386 edenCC Linux - Software 1 04-25-2007 08:08 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration