#1
|
|||
|
|||
Memory leak
pc stats
Intel Duo Core 2 2.9 4gig's of ram 1 Tera hard drive x2 Windows 7 RTM Java version 1.6.0_15 Jdownloader vsrion 0.8.821 when ever i open jdownloader it starts with 126k ram used but after about 5-10 min of downloading u can sit there and watch it go up. it can get as high as 3.5 gigs of ram being used and want stop. that if i have the main window open or in the system tray. if u need anymore info. will be happy to supply, thx inadvance Last edited by Jiaz; 06.10.2009 at 17:49. |
#2
|
||||
|
||||
do you use 64bit os? if so , thats the cause of it
there are known java and win7 problems with 64bit os, also remember win7 is not fully supported by java at the moment
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
@alacard
could you try this please open JD full screen and bring up the windows task manager, highlight javaw.exe in the Processes tab and click the Minimise button in the top right of JD, you might have to do this a couple of times does this release the memory usage? this works in XP 32bit but I'm unsure if it does in W7 64bit |
#4
|
|||
|
|||
Quote:
@james3 No didnt work but thanks for the tip will have to remember that if I have the same problem on my xp pc. Edit: found a beta version of **External links are only visible to Support Staff**java (Java SE Runtime Environment 7 Preview Release, Milestone 4) that seems to fix the memory leak, been running jdownloader for 8+ hours with milestone 4 with no problems Last edited by alacard; 08.10.2009 at 05:30. |
#5
|
|||
|
|||
I'm encountering a memory leak with 0.9.246 on OSX 10.4.11 PPC with all available Java updates as provided by Apple (build 1.5.0_19-b02-306)
What I have found is that the memory leak only occurs if the Download tab is in front. If the download tab is in front, memory is gobbled up at about 177MB/hour. (It grew to 1GB in 6 hours before I noticed.) If I simply pick another tab, like settings, to be in front, memory usage doesn't seam to grow. Switching to another tab doesn't release the memory that has been lost, it simply stops the bleeding. This was with a multipart rapidshare download, if that makes a difference. |
#6
|
||||
|
||||
I have been running JD 0.9.421 and the memory leak is worse than it was in Pinky_5. I am seeing memory increases even when the program is minimized.
I did try the trick of minimizing and maximizing JD, but after about 10 times per JD tab, there was no memory returned. I am downloading the newest Java version for Windows (Java EE 5 SDK Update 8 (with JDK 6 U17) for Windows, English). I will see if that makes a difference. |
#7
|
|||
|
|||
I'm running jD v.0.9.334 and I'm not seeing any difference with previous versions, except my little beautiful jD v.0.4.936 that only needs around 10 MB, i.e., on average two to four times less than more recent versions.
|
#8
|
||||
|
||||
Quote:
i need more information on that, what os, what theme? how many links in downloadlist.
__________________
JD-Dev & Server-Admin |
#9
|
||||
|
||||
please update
__________________
JD-Dev & Server-Admin |
#10
|
||||
|
||||
Sorry to be so late getting back to you. I am on to a different problem.
However, I am on Windows XP sp3, up to date patches and IE 8. Java 6u16 just updated to 6u17 (no help). I found out that one has to install the JRE. Installing the JDK doesn't set the system JAVAPATH, so the old Java is used. I am one of the hogs with 19630 links. Using a variety of hosts (all as a free user). I use the "Windows style". I assume this is the JRE's built-in theme (chrome). Next time I will attach a log for you. ------------- Right now, JD comes up, but will not begin transfer. Do you know where I ask questions about / report that one? Again, 6u16 and 6u17 are both the same here. |
#11
|
||||
|
||||
Quote:
__________________
JD-Dev & Server-Admin |
#12
|
||||
|
||||
also note that its known that some firewall/antivirus are known to cause memleaks because of their onlinescanning tools
__________________
JD-Dev & Server-Admin |
#13
|
|||
|
|||
Hi,
sorry for my bad english. I installed Windows 7 32bit , java 6u17 and jd v 0.9.579 and I have the same problem : whenever i use Jd, memory usage increases from 35-40 % to 95-100% in less than 2 hours and my pc freezes. Even when I use jd but i don't download anything memory usage increases. I had the same configuration but Windows Xp Sp3 and no problem at all. I tried Windows 7 64 bit,java 6u15 and 6u16 ,i ran Jd in windows Xp Sp3 compatibilty mode with no success. |
#14
|
||||
|
||||
64bit or 32bit win7? because you name both?
__________________
JD-Dev & Server-Admin |
#15
|
|||
|
|||
Because now I'm using Windows 7 32 bit but I tried Wiindows 7 64 bit too.
|
#16
|
||||
|
||||
My problem may be similar. I have the Windows SDK (Software Development Kit) installed. It installs some different (debug-able) versions of a few OS DLLs, including much of the TCP-IP stack. There is even a security hole that allows people to blue screen my system if I have IPv6 (or IPv6 tunneling) activated.
Microsoft has never gotten the TCP-IP-Ethernet-ATM stack correct on any of their OS (dating back to Windows 3.31). They keep trying to leave in LANMAN and NetBIOS compatibility (both are huge security problems). You might try and see if you can find a 3rd party TCP stack that supports IPv4 and IPv6, but not NetBIOS over TCP. It would almost be like adding a smart firewall. ------------------------------ To Jiaz, How are network errors (time-outs, squelches of various types, bad headers, ICMP, etc.) handled in JD? If they generate exceptions that are not caught and recoded within the initial caller or call-back, that might cause a memory leak in the JVM. |
#17
|
||||
|
||||
there are no uncaught exceptions. every error gets caught at least in the singledownloadcontroller. such things do not create memleaks, because under win7 32bit same situation all stays fine. as long as firewall and others do too because we know of many such tools that also create memleaks (eg online webscanner)
__________________
JD-Dev & Server-Admin |
#18
|
||||
|
||||
The exceptions were just an idea, because of the ugotfile infinite loop. I was seeing some watchdog exceptions in one of the logs (when things weren't working at all).
I will have to check out the SDK and Process Explorer to make sure there are no extras being added to the program. The only reason I know that installing the SDK changes OS files is because it changes something in winsock to allow logging -- but that isn't supposed to be turned on. The person who is having trouble with Win7: I cannot remember if he is using a retail version. The Beta could have problems like mine. It is getting to be time for a new OS install (Win XP Home OEM with SP and patches slipstreamed). I will be more careful what I install and test for this kind of problem with JD as I reinstall things (like my security suite). Last edited by drbits; 11.11.2009 at 00:41. |
#19
|
||||
|
||||
the issues between java and win7 64bit exist since its release candidate 1. (boardsearch and supportchat). we can only hope and wait till microsoft or sun fix the cause.
__________________
JD-Dev & Server-Admin |
#20
|
|||
|
|||
I am having the same problem with the latest JD and 10.4.11 with the latest Java, on a TiG4. This problem also occurred while downloading from rapidshare, but I haven't had a chance to try any other hosts.
However, not having the download tab in front, hiding JD, or disabling the Host or Status columns (as mentioned in another thread), hasn't seemed to make a difference. I'm not using any virus software either. According to top, the CPU load is very low, but the virtual memory size is massive, even when the program is just waiting and not actually downloading anything. Quote:
|
#21
|
|||
|
|||
I would try another, older Java version.
|
#22
|
||||
|
||||
I am on Windows, so these suggestions may not be compatible with your version of Java (Java should just exit with an error message). -X options are not necessarilly on each implemenation of the JRE.
Things to try: 1) From the command line change into the JDownloader directory. Start JDownloader with Code:
java <options> -jar JDownloader.jar -Xmx512m Restrict the heap size to no more than 512 MB. You can set this as low as 128 MB if it works (the lower case m at the end means 1024*1024). -XX:+UseAdaptiveSizePolicy Changes how the JRE allocates memory -XX:+UseParallelGC Changes how the JRE runs the Garbage collector (especially useful if your computer is multi-processor or has hyperthreading. The suggestion is to try each of these individually (to see if they are accepted and to see if they do anything), and then to try them together and see if that helps. There are other options people are using on the PC, but they are probably not useful on your computer, because they control how the graphics card is used and I think Apple has that standardized. Please let us know if any of this helps. |
#23
|
|||
|
|||
That command isn't working, most likely because the application is jDownloader.app, which isn't a .jar file. It won't launch without specifying -jar either. It does start using "open jDownloader.app", but the man pages don't show any options for restricting memory usage.
|
#24
|
|||
|
|||
Is there a way to select which version it uses? Trying to downgrade Java is not good solution because it would effect everything that uses Java. Speaking of which, I'm not having this problem with any other Java applications, so that leads me to believe that there is a bug in JDownloader. Without adding any links, or doing anything with it, sitting idle it uses about 925M of virtual memory, 130M real memory, and has 26 threads.
|
#25
|
|||
|
|||
It's a problem with your JRE, because jD can only use 512 MB if you start it with the -Xmx512m parameter.
Most problems are caused by a virus software, but you don't have one. On Vista and W7 these memory leaks are caused by the 64 bits version. Using the 32 bits version solves the problem. If you don't want to use another version of the JRE, because you think your other application need a specific one, then you're stuck. jD can work with all versions including the JRE 1.5. |
#26
|
|||
|
|||
Quote:
As noted above, I haven't been able to start it with the -Xmx512m parameter. Putting aside that, imho, jD should be made to work with the latest version, which version is known to work? Nor am I sure how well it would be to try to downgrade to an earlier version. I'm currently at "Java 5 Update 19". Within Java Preferences, I can choose between J2SE 1.4.2 or J2SE 5.0 (there is no mention of a 1.5 anywhere), but only for applets executed from the browser or applications launched from Java Network Launching Protocol. Is JNLP used to launch jD?? |
#27
|
||||
|
||||
My last ditch attempt to help.
If the advice we have been giving you does not help, you may have to wait until some of the experts come back from vacation. I am only a member.
Quote:
To control the version of java being used by JDownloader, you can install Java to the JDownloader directory or you can change your $path to specify the java directory you want JDownloader to use. The latest version from Sun is Java J2SE JRE 1.6.0.17 (also called Java 6 update 17 or Java 6u17). JD has been tested with several versions of Java 1.5 and 1.6. I use 1.6.0.17. JD follows the "Java 5 standard" set by Sun. Java Network Launcher is not used. You can try using the JNLP to start jdownloader.jar or jdupdate.jar and tell us what happens. I am sorry, I know Windows and I know unix/linux. I am not familiar with the changes Apple made to OSX. I do not know the name of the Java executable for OSX. It should be just "java" with no quotes. You should be able to use the following from the shell (assuming ksh). Code:
cd /usr/bin/jdownloader set path=/usr/bin/java/java5 $path java -verbose -debug -jar jdownloader.jar >jdlog 2>jderrlog Because your build of Java is not a Sun build, it would be helpful if you could attach the output of java -version, java -h, and java -X (each should work, but could fail) and the the two log files to a message. If you have a rar program available, make a rar archive, use Go Advanced in this thread, and click on Manage Attachments to upload the rar file. If you do not have access to a rar program, please email a tgz or z or zip archive to dr.bits@gmail.com and I will convert the archive and upload it. I can also convert a sit (StuffIt) archive, but not easily. Please do not include anything executable, it might not reach me. The preceding paragraph will self destruct in two days. Last edited by drbits; 31.12.2009 at 03:47. Reason: Missing words |
#28
|
|||
|
|||
Funny. I'm not sure how it can destruct itself automatically....
|
#29
|
||||
|
||||
Quote:
Anyway, I did find the .jar buried inside the package: /jDownloader.app/contents/resources/Java. So I tried "java -Xmx512m -jar JDownloader.jar" and it launched with much verbosity. I did not try doing anything with the program from its GUI, but it seemed to be using about 900M of virtual memory. Sorry, but how to I exit java to get my command line back without shutting down JDownloader.jar?? Quote:
Quote:
java version "1.5.0_19" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306) Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing) The other two did work, listing commands. Quote:
|
#30
|
|||
|
|||
Can't you open another command console?
|
#31
|
|||
|
|||
I've been able to get the JD to limit its memory usage from the command line, but then it doesn't work. It can grab links, but fails to download any files. I've tried this numerous times with several different hosts. So until the memory leak or whatever else is fixed, the workaround has been to use JD when I'm not using the computer for anything else.
|
#32
|
|||
|
|||
Did you already provide a detailed jD log or JRE log of your problems?
Last edited by remi; 30.01.2010 at 12:14. |
|
|