PDA

View Full Version : Application getting slower after running some duration.




newformac
Jun 16, 2011, 02:46 AM
Hi all,

when i run my application its working fine but after spending some time over it , its becomes slower and my machine also respond slowly.

please tell me how can i resolve this.

thanks in advance.



robbieduncan
Jun 16, 2011, 04:51 AM
Use the debugging tools to find out why. In particular look at using Instruments (http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Introduction/Introduction.html).

mobilehaathi
Jun 16, 2011, 07:07 AM
Perhaps you have a memory leak? What is your memory usage like over time?

abledocmd
Jun 27, 2011, 11:37 PM
Open your Activity Monitor in Utilities folder
Observe the System Memory (bottom bar choice) & Sort the CPU by ascending.

When your machine slows you may be able to identify which application is acting up. You might also see that your RAM is exhausted due to a known bug causing a memory leak.

If RAM is exhausting, a restart will clear it or run Disk Utility. A side effect DU is to clear portions of the Inactive RAM. Usually that occurs within the first few seconds or moments.

More RAM will help delay the issue but is not a total solution.
A commercial utility called iFreememory may also help clear RAM.
Free, however, is the Terminal command "Purge". It requires Xcode Developer tools installed on your machine. Xcode comes with your Mac on the installation disk. Open Utility>Terminal and type "purge" and return key.
Again, it helps but does not fix the underlying problem.

jiminaus
Jun 28, 2011, 02:50 AM
Open your Activity Monitor in Utilities folder
Observe the System Memory (bottom bar choice) & Sort the CPU by ascending.

When your machine slows you may be able to identify which application is acting up. You might also see that your RAM is exhausted due to a known bug causing a memory leak.

If RAM is exhausting, a restart will clear it or run Disk Utility. A side effect DU is to clear portions of the Inactive RAM. Usually that occurs within the first few seconds or moments.

More RAM will help delay the issue but is not a total solution.
A commercial utility called iFreememory may also help clear RAM.
Free, however, is the Terminal command "Purge". It requires Xcode Developer tools installed on your machine. Xcode comes with your Mac on the installation disk. Open Utility>Terminal and type "purge" and return key.
Again, it helps but does not fix the underlying problem.

It's the OP's program that is causing the system to slow down. The solution is for the OP to diagnose and cure the root cause. I fear the OP may be the root cause.

newformac
Jul 1, 2011, 04:53 AM
thanks