memory leak in Java apps

Bug #39813 reported by ArbitraryConstant
6
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Medium
Unassigned

Bug Description

Using an up to date (as of friday) Kubuntu Dapper and the latest JDK from Sun, I get a large memory leak with Java applications that causes Xorg to consume more and more memory until processes start to crash. xrestop confirms that the Java app's window is the one consuming ever-increasing amounts of memory. The application that caused me to notice this is proprietary and cannot be shared, however I have noticed that it is also easy to see this happening in Azureus, which consumes approximately 500k of additional memory per second.

While the official JDK is not supported but Kubuntu, I don't think this is a bug in either the JDK or the Java apps themselves, due to the fact that Linux users can run both my proprietary Java app and other apps like Azureus for more than a few hours on other distros.

Revision history for this message
Mike Perry (mike.perry) wrote :

I've delt with Java memory leaks before and I have not seen them spill into the underlying OS, however it still may be possible. The JVM is usually confined to a specific heapsize and cannot grow past it. It sounds like your propriatary program has a memory leak in it. Using a tool like JProfiler should help you find it. As for Azureus as it may seem like the memory of it is going up and down I bet it stays within its heap. Anything is possible though.

Can you give detailed specs of JVM and steps to get Azureus to crash/consume large amounts of memory on Dapper? Or perhaps some sample java program that demonstrates this? Are you getting exceptions?

Revision history for this message
Phil Bull (philbull) wrote :

Thanks for the report.

Could you provide some more information, please? How did you install the JDK? What version is it? When did you start getting this issue?

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 39813] memory leak in Java apps

As you say already: sun java is proprietary and cannot be supported by
us.

 status Rejected

Revision history for this message
ArbitraryConstant (anthony-spamtrap) wrote :

I did a little more checking, and it seems similar to this bug:

https://launchpad.net/distros/ubuntu/+source/eclipse/+bug/32176
https://bugs.eclipse.org/bugs/show_bug.cgi?id=128617

If it's an issue with the gtk-qt theme engine, then it can probably be reproduced in other apps as well.

Revision history for this message
ArbitraryConstant (anthony-spamtrap) wrote :

Disabling the theme engine stopped the leak, so it's deffinately a problem with software you can support.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 39813] Re: memory leak in Java apps

Then you have 3 options:

* This bug would be rejected as duplicate of that one
* This is another bug in gtk-qt, which we cannot debug because all
  software this report is about is closed source, so th bug would be
  rejected.
* This is a bug in either your app or the sun JVM. Both being closed
  source, we cannot debug it so the bug would be rejected.

Try switching themes (and delete your ~/.gtkrc) - if it helps: scream at
the gtk-qt developers to fix their broken software (there are dozens of
bugs open about it).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.