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


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Any way to force memory usage with an application under Mono?
# 1  
Old 03-01-2011
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 eventually killing the server.

Is there anything I can do to limit the amount of ram that the app under Mono will use?

Thanks!
# 2  
Old 03-01-2011
Well, JAVA is limited in VM but not in RAM, but if it needs 3G for a working set . . . . Do you run out of swap? Can you make more? Does nice help at all? With too little RAM, someone will be stuck thrashing, all will page more, but the system should survive if swap is not exhausted.
# 3  
Old 03-01-2011
Well what happened was the server stopped responding completely, as in I couldn't even connect to the terminal via SSH. This is after I started up the second app under Mono. This app is semi-known to have the occasional memory leak (it's pretty rare).

Once the server started working again, on its own, everything returned to it's current state without having to restart any of the background services. Which confused me.

I'm still a novice to linux and I am unsure how to check the logs to find out if I ran out of swap. Also, I am unable to make more swap, the size is defined by my hosting package.
# 4  
Old 03-08-2011
When swap is exhausted, the machine is not friendly to new processes, so I usually leave a VNC desktop running with multiple xterms so I can hook up and see. When the swap hog dies, the swap is returned. Memory leaks do not confuse UNIX, they just make the app use excessive VM = swap. There are several ways to make more swap and install it, if you have root. You can make big flat files on any writable device and add them to swap, or add whole raw devices (partitions). I would Google for the methods, since I am not root very often these days. Having swap on many devices may make it faster.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

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... (7 Replies)
Discussion started by: ron5174
7 Replies

2. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies

3. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

4. 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

5. Solaris

Memory usage in Solaris - memory not freed?

Hi, I'm running a multi-process software system on a Solaris 8 machine. When I monitor the memory usage, I see that the free memory is dropping rapidly, but I can't detect a process that uses this memory. I'm using "top" to get the free memory and the memory usage of processes. Thanks. (3 Replies)
Discussion started by: gewurtz
3 Replies

6. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

7. 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

8. HP-UX

How can I get memory usage or anything that show memory used from sar file?

Refer from title: How can i get memory used or anything that can show memory from sar file example on solaris:- we can use sar with option to show memory used at time that sar crontab run. on HP-UX, it not has option to see memory used. But i think it may be have some parameter or some... (1 Reply)
Discussion started by: panithat
1 Replies

9. Shell Programming and Scripting

force process to release memory

Hey everyone! I've got a pretty big problem with our application that we're releasing in a couple weeks. The app is developed with Flash and Java, and the problem is that the Flash Player gobbles up OS memory and then never releases it back to the OS...it just keeps gobbling it up getting larger... (2 Replies)
Discussion started by: JKringen
2 Replies

10. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
Login or Register to Ask a Question