Linux Application Memory usage


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Linux Application Memory usage
# 1  
Old 05-08-2018
Linux Application Memory usage

Hello

We are in the process of migrating few of our applications in our linux boxes to new linux box to streamline our applications . In this context , i would like to know how we can calculate a particular application is used .?

This data will then be used to select which applications need to be moved to the new box . Could some one please let me know how we can get this information ?

Regards
Ron T
# 2  
Old 05-08-2018
Hi Ron T.,
I have no idea how migrating an application is going to streamline that application. Can you shed some light on how this might happen?

With this in mind.. How would one calculate a particular application (as you requested):
Quote:
In this context , i would like to know how we can calculate a particular application is used .?
You must know a lot more about your applications than the nothing you have told us. Based on what you have told us, I have no idea how we could help you calculate anything??? Nor, do I have any idea what you might be trying to calculate???

Can you provide any more details that might help us help you?
# 3  
Old 05-08-2018
Linux Application Memory usage

Hi Don-

In the existing boxes , we are running short of memory and the we have same applications running for multiple countries . we decided ,to remove few applications from the existing boxes and going forward the boxes will be country specfic i.e one box will have only one country applications .

Thanks
Ron T
# 4  
Old 05-08-2018
Quote:
Originally Posted by ron5174
Hi Don-

In the existing boxes , we are running short of memory and the we have same applications running for multiple countries . we decided ,to remove few applications from the existing boxes and going forward the boxes will be country specfic i.e one box will have only one country applications .

Thanks
Ron T
This is all very interesting. But, I don't see how it relates to the questions raised in this thread.

What does:
Quote:
i would like to know how we can calculate a particular application is used .?
mean?

If you are creating one box for each country to be processed, doesn't that mean that each application will be running on each box? If you don't have enough memory to run all of your applications on one box; how does creating multiple boxes each of which is running all of those applications reduce the amount of memory you need?
# 5  
Old 05-08-2018
In future one box will have one country applications & all applications of that country is not going to run in one box. We now need to calculate memory usage of each of the applications & for this what would be the best way to go forward ?
# 6  
Old 05-08-2018
Let me see if my understanding comes close. On one single server, you have several different (database?) applications, each of which is running on different datasets for different countries; it now becomes overloaded and causes problems, probably performance wise. Can you quantify the problem?
So you have APP_A running on DB1, APP_A running on DB2, APP_A running on DB3, then APP_B running on DB4 (or is it DB1 again?), APP_B running on DB5 / DB2, etc.
You might use tools like vmstat, ps, or top to extract memory consumption for processes, and there might be others as well. Use with care, and take a few snapshots over time to account for load variations.
The difficulty of answering your question lies in e.g. shared memory, as multiple application instances might work from one single code copy in memory, and database systems tend to utilise shared memory as well for effectiveness.
I'm afraid there's no easy, general way to get at your desired numbers; you might want to hire an expert for this analysis.
# 7  
Old 05-09-2018
Ok. It depends US & Canada share the same Db where as for e.g Mexico has a different DB . I am currently using the below command to see the memory usage

ps aux --sort rss

so does this give a approximate memory usage , the box size is 32 GB . Here what should i choose VSZ or RSS ?

Thanks
Ron T
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Swap memory usage is high in Linux

Hi , There is one following alert . Message : cdm:Average (2 samples) swap memory usage is now 91%, which is above the warning threshold (90%) Here is my findings. Output of TOP command in Linux server. top - 14:21:44 up 6 days, 4:48, 1 user, load average: 2.55, 2.06,... (3 Replies)
Discussion started by: Maddy123
3 Replies

2. UNIX for Advanced & Expert Users

Memory Usage(Physical) in one Word? Suse Linux.

Experts, I have been trying to figure out what is the total physical memory used from this output: And what is the free memory available for the application or any programs. The answer has to be in this format: 1. Physical Memory Used= xx.xx% 2. Physical Memry available= yy.yy% ... (5 Replies)
Discussion started by: rveri
5 Replies

3. UNIX for Dummies Questions & Answers

Any way to force memory usage with an application under Mono?

I'm running CentOS 5.5 and Mono 2.10 on a VPS in which I have root access too. I have a large java app that is set to use no more than 3GB of ram where I have 4GB of ram in total. I have another app that has to use Mono but it ends up using up all the physical ram and running into the swap... (3 Replies)
Discussion started by: seriosbrad
3 Replies

4. UNIX for Advanced & Expert Users

linux memory buffers & cache usage

18:45:47 # free -m total used free shared buffers cached Mem: 96679 95909 770 0 1530 19550 -/+ buffers/cache: 74828 21851 Swap: 12287 652 11635 Hi all. The below output is from a RHEL 4.5... (0 Replies)
Discussion started by: drummerrob
0 Replies

5. Shell Programming and Scripting

Memory Usage Monitor on Linux/SunOS Servers

ok, so i'm trying to write a shell script (not perl) that monitors memory usage on a server. but i'm confused as to what fields exactly determines that yes, memory is low on a particular server. it sounds simple enough, but it really isn't. what do I look for in the field below? ... (1 Reply)
Discussion started by: SkySmart
1 Replies

6. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

7. Linux

Memory Usage on Linux server

Hi , As I am new to Linux server, I am facing some doubts like: On linux server virtual memory usage goes to 99%, but I have Threshold limit of 95%. So it crossed the threshold limit and alarmd. Yesterday I moniterd the server using TOP command, and found some of Tibco process was consuming... (4 Replies)
Discussion started by: Jaywantmm
4 Replies

8. UNIX for Dummies Questions & Answers

Memory Usage on Linux server

Hi , As I am new to Linux server, I am facing some doubts like: On linux server virtual memory usage goes to 99%, but I have Threshold limit of 95%. So it crossed the threshold limit and alarmd. Yesterday I moniterd the server using TOP command, and found some of Tibco process was consuming... (1 Reply)
Discussion started by: Jaywantmm
1 Replies

9. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

10. Red Hat

Linux memory usage

What's the best way to find out how much memory is being used/available? I tried using free, but I didn't quite understand the output. Can someone explain it? $ free total used free shared buffers cached Mem: 16304536 16256376 48160 0 ... (6 Replies)
Discussion started by: junkmail426
6 Replies
Login or Register to Ask a Question