force process to release memory


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting force process to release memory
# 1  
Old 06-06-2005
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 and larger. I found a command line utility for the PC that allows you to target the process running and force it to release it's un-used memory back to the OS. But we also are releasing our product for Mac OS X and need to find a way to achieve this on the Mac as well. Does anyone know of a way using a utility or AppleScript/Shell script to make this happen? Thanks a ton for any advice on this!

-Jason Kringen
[EMAIL=[/EMAIL]

Last edited by bhargav; 06-07-2005 at 01:23 AM..
# 2  
Old 06-06-2005
Jason,

First off welcome to Unix.com. Secondly please read the rules, and don't post your email address to, this is to avoid email abuse, and for other security reasons.

I have a quesion with regard to your original question. In this application, do you create multiple instances of the flash player from within a main java application, for example each time a new flash item is opened?

If this is he case then it is more likely than not that the problem lies within the main code, not correctly finalizing objects. That being said you may have better luck by using the extended options, such as agressive heap in java. Do java -X to get the list of extended options.
# 3  
Old 06-07-2005
This is actually a known issue with the Macromedia Flash Player. We've been talking to there engineers about this and they acknowledge it but have no solution. So our only hope is to force that flash player's process to release it's un-used memory. The PC has a really nice command line utility to do this, but the mac has nothing it appears. I've even talked to apple directly and they were no help. So I'm hoping someone on here can tell me how to write an OS level script that do accomplish the same result of forcing an app. to release it's memory. Any ideas are great at this point. Thanks! Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

Hi Experts, Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing. Why memory utilization on solaris always looks high? I have statement about memory on solaris, is this true: Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies

2. Emergency UNIX and Linux Support

CPU and memory utilization of a process, by process name

Can someone please help me with a script that will help in identifying the CPU & memory usage by a process name, rather than a process id.This is to primarily analyze the consumption of resources, for performance tweaking. G (4 Replies)
Discussion started by: ggayathri
4 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. Red Hat

How to Force KILL State -D Process/PID?

Hi Expert, I am not able to kill certain user process as root. I have tried using: pkill -u uname skill KILL -u uname kill -9 PID *** I have not using killall yet, since this server has more than 100 users online atm. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND... (1 Reply)
Discussion started by: regmaster
1 Replies

5. AIX

Process consuming most memory

How can i find the processes that is consuming most memory? I tried TOPAS and SVMON and this didn't gave me the desired result. (1 Reply)
Discussion started by: shabu
1 Replies

6. UNIX for Dummies Questions & Answers

How to force core dump of a process

We have an application that terminates with segmentation violation errors in the logs. No source code is available since this is a third party software that is way past its maintenance life cycle. Under these circumstances is there a way to force a core dump of the process for further analysis?? ... (3 Replies)
Discussion started by: Un1xNewb1e
3 Replies

7. AIX

Process using the most memory

Hi:- Is there an easy way to find out which process is consuming the most memory on an AIX server? Thanks, (5 Replies)
Discussion started by: janet
5 Replies

8. Shell Programming and Scripting

Memory in Use by a process

How do I find the amount of memory being consumed by a particular process on AIX 5L.. Thank you (0 Replies)
Discussion started by: khopdi
0 Replies

9. UNIX for Dummies Questions & Answers

Memory used by a process

Hello all 'top' command shows the top 15 processes in terms of CPU usage. Is there any other command in UNIX ,that will show the top processes in terms of memory usage ? or is there a command, that will give me the memory usage of a particular process ,if I pass the process id as a... (3 Replies)
Discussion started by: luft
3 Replies

10. UNIX for Dummies Questions & Answers

Memory used by a particular process

how to get memory used by a particular process in unix? (3 Replies)
Discussion started by: superprogrammer
3 Replies
Login or Register to Ask a Question