JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 20.04.2021, 00:00
Student im ersten Jahr Student im ersten Jahr is offline
Bandwidth Beast
 
Join Date: Nov 2020
Posts: 140
Default 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 00:06.
Reply With Quote
  #2  
Old 20.04.2021, 00:17
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,362
Default

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. :]
Reply With Quote
  #3  
Old 20.04.2021, 12:46
Student im ersten Jahr Student im ersten Jahr is offline
Bandwidth Beast
 
Join Date: Nov 2020
Posts: 140
Default

Quote:
your system does not have enough memory to perform the task
It tells me nothing: especially when I don't know how much physical memory a computer requires? 32 GB 64 GB 128 GB.
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**

**External links are only visible to Support Staff****External links are only visible to Support Staff**

Last edited by Student im ersten Jahr; 20.04.2021 at 13:01. Reason: Links
Reply With Quote
  #4  
Old 20.04.2021, 12:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,108
Default

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
Reply With Quote
  #5  
Old 20.04.2021, 13:08
Student im ersten Jahr Student im ersten Jahr is offline
Bandwidth Beast
 
Join Date: Nov 2020
Posts: 140
Default

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!
Reply With Quote
  #6  
Old 20.04.2021, 13:16
Student im ersten Jahr Student im ersten Jahr is offline
Bandwidth Beast
 
Join Date: Nov 2020
Posts: 140
Default

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**
Reply With Quote
  #7  
Old 20.04.2021, 13:20
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,108
Default

Quote:
Originally Posted by Student im ersten Jahr View Post
Do I really need to buy more RAM or is it a necessity, the cost of huge amounts of physical memory is not cheap!
No, but maybe you should put less load/links into your JDownloader -> less memory requirements!
In your case, it should be enough to use MUCH lower -Xms values, like -Xms256m
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 20.04.2021, 13:28
Student im ersten Jahr Student im ersten Jahr is offline
Bandwidth Beast
 
Join Date: Nov 2020
Posts: 140
Default

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 13:30.
Reply With Quote
  #9  
Old 20.04.2021, 13:34
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,108
Default

Everything is stored in cfg folder.
see https://support.jdownloader.org/Know...nkgrabber-list for downloadlist and linkcollector files
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 20.04.2021, 13:41
Student im ersten Jahr Student im ersten Jahr is offline
Bandwidth Beast
 
Join Date: Nov 2020
Posts: 140
Default

Thank you for your valuable comments on data portability.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 13:29.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.