#1
|
|||
|
|||
Troubleshoot Java Memory Leaks
Sometimes have memory leaks in Java when using Jdownloader - especially this is the sudden spurt when I try to execute an update that was found "New Update". It asks, "Can I install", and then, from Java: Fatal error
Code:
E:\JDownloader\gc.log Code:
Java HotSpot(TM) 64-Bit Server VM (25.271-b09) for windows-amd64 JRE (1.8.0_271-b09), built on Sep 16 2020 19:14:59 by "" with MS VC++ 15.9 (VS2017) Memory: 4k page, physical 20908164k(5160788k free), swap 29294872k(1198488k free) CommandLine flags: -XX:+HeapDumpOnOutOfMemoryError -XX:InitialHeapSize=1073741824 -XX:MaxHeapSize=7516192768 Last edited by Student im ersten Jahr; 20.04.2021 at 01:06. |
#2
|
||||
|
||||
misguided assumption djmak...
your system does not have enough memory to perform the task 1GB initial heap and ~7GB max heap. update is its own program and its own memory allocation. It uses the same as the program, thus you need to have it available, else failure.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#3
|
|||
|
|||
Quote:
Some people don't know that the more physical memory, the large or page pool size of exchange must be. So why don't I see any error in the system when I set the recommended virtual memory to 1.5x Physical Memory. So for 32 GB you need to set 48 GB of virtual memory. Of course, setting very large virtual memory on a very fast next-generation SSD drive does not slow down your computer at all. On ordinary HDD, this is only noticeable very large slowdowns. Now I only use fast SSD, HDD (disk) is a thing of the past. Then I never see a errors (resources exhausted). But how do you imagine taking up so much space on an SSD? The total size is insufficient for the applications and services used. If there really aren't any memory leaks, how do you understand this extensive article on memory leaks in Java or a program written in Java? **External links are only visible to Support Staff****External links are only visible to Support Staff** https://postimg.cc/gallery/yBwFksJ Last edited by Student im ersten Jahr; 20.04.2021 at 14:01. Reason: Links |
#4
|
||||
|
||||
You tell Java to use minimum 1Gbyte of memory and allow max 7GB
Your system is already heavily used! 20908164k(5160788k free), swap 29294872k(1198488k free) only 5GB memory free and nearly 30GB of swap! Now JDownloader wants to update and thus starts another process but Java no longer can allocate minimum 1Gbyte of consequent memory and thus fails to launch. SWAP IS NO MEMORY!
__________________
JD-Dev & Server-Admin |
#5
|
|||
|
|||
Virtual memory is not physical memory, it is an obvious fact! Nevertheless, virtual memory is still used if users don't have more PHYSICAL memory [RAM].
A process named javaw.exe uses most of the virtual memory or is in competition with other processes. The xms and Xmx parameters may be faulty. But only increasing -Xmx prevents JD2 crashes and high CPU usage. I have no other knowledge what to do about it. Do I really need to buy more RAM or is it a necessity, the cost of huge amounts of physical memory is not cheap! |
#6
|
|||
|
|||
Interesting information. This applies to Linux, but is there an alternative to Windows?
**External links are only visible to Support Staff****External links are only visible to Support Staff** |
#7
|
||||
|
||||
Quote:
In your case, it should be enough to use MUCH lower -Xms values, like -Xms256m
__________________
JD-Dev & Server-Admin |
#8
|
|||
|
|||
I want to transfer all JD2 settings to another installation.
Filters, Rules, Advanced Plugin Settings, Advanced JD2 Settings, Accounts, just everything but no links in the cfg folder. How to do it? Download List:90k LinkList: 257k Is it enough to copy the installation folder and delete all the zip archives in the cfg folder? Last edited by Student im ersten Jahr; 20.04.2021 at 14:30. |
#9
|
||||
|
||||
Everything is stored in cfg folder.
see https://support.jdownloader.org/Know...nkgrabber-list for downloadlist and linkcollector files
__________________
JD-Dev & Server-Admin |
#10
|
|||
|
|||
Thank you for your valuable comments on data portability.
|
Thread Tools | |
Display Modes | |
|
|