PDA

View Full Version : Java Memory Hog




onlymiah
Aug 3, 2013, 09:39 PM
Can anybody tell me why Java is consistently using over 1 GB of memory on my Macbook Pro?

I am at a loss as to figure out why it is doing this. :confused: I have attached a picture of memory usage. I have 702 MB free out of 8 GB!

Any suggestions would be helpful.



MisterMe
Aug 4, 2013, 11:06 AM
Can anybody tell me why Java is consistently using over 1 GB of memory on my Macbook Pro?

I am at a loss as to figure out why it is doing this. :confused: I have attached a picture of memory usage. I have 702 MB free out of 8 GB!

Any suggestions would be helpful.You have a fundamental misunderstanding of your memory. The 8 GB is your installed physical RAM. OS X is not Windows 95 or System 7. OS X is certified UNIX 03. Its virtual memory system is designed to consume all available physical RAM. Free RAM is wasted RAM. The fact that your RAM is consumed by your Java Virtual Machine is of no particular consequence. If the tasks consuming the RAM are inactive, then the OS reallocates the physical RAM to tasks that need it.

onlymiah
Aug 7, 2013, 10:12 AM
This does not help me much. I am having an issue with EVERYTHING being extremely bogged down on my Mac. Once I reboot and there is more free memory everything is snappy again (something I thought I got away from when I ditched Windows!)

It is not normal for me to experience the "spinning beach ball" and an app sitting in the dock bouncing up and down while it waits to open. I have an SSD and everything is usually pretty much instantaneous.

MisterMe
Aug 7, 2013, 10:25 AM
In my post above, I said that your OS tries to use all available physical RAM. However, you have ample RAM that is not allocated to any particular task. The fact that you have a lot of RAM allocated to Java should not be an issue. What is an issue, however, is that Java is running in the first place. Java does not run unless you have one or more Java-based applications running. The most popular Java-based applications that I know are Bittorrent clients. Are you running a Bittorrent client?

talmy
Aug 7, 2013, 10:29 AM
-Deleted-

MisterMe covered it.

Another Java app is CrashPlan, and it can consume lots of resources during its initial backup.

onlymiah
Aug 7, 2013, 10:29 AM
No, I am not. The only thing I can think of is that I run Crashplan, which I believe is java based. Even when it is not active java remains.

talmy
Aug 7, 2013, 10:32 AM
Crashplan runs in the background even when you have presumably closed it.