JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 31.03.2021, 03:56
MuzicSoulWorldly MuzicSoulWorldly is offline
Linkgrabbing Monster
 
Join Date: Feb 2017
Posts: 85
Default Importing lists lagging

I can't seem to import (from backup files) more than like 8,000 links, otherwise it gets slow and laggy and doesn't load the last round in. I've noticed that the memory usage of JDownloader isn't increasing, so how do I go about allocating more memory to JDownloader ?
Reply With Quote
  #2  
Old 31.03.2021, 04:15
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

If on Windows, check your JDownloader2.vmoptions file (in your install dir) and use a proper value for "Xmx":
stackoverflow.com/questions/14763079/what-are-the-xms-and-xmx-parameters-when-starting-jvm

-psp-
EDIT

E.g. if it is "-Xmx512m", change it to "-Xmx1g".
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?

Last edited by pspzockerscene; 31.03.2021 at 04:21.
Reply With Quote
  #3  
Old 31.03.2021, 04:57
MuzicSoulWorldly MuzicSoulWorldly is offline
Linkgrabbing Monster
 
Join Date: Feb 2017
Posts: 85
Default

Thank you so much. I've been trying to do these links all day long, can't believe how simple this made it, lol.
Reply With Quote
  #4  
Old 31.03.2021, 04:58
MuzicSoulWorldly MuzicSoulWorldly is offline
Linkgrabbing Monster
 
Join Date: Feb 2017
Posts: 85
Default

Quote:
Originally Posted by pspzockerscene View Post
If on Windows, check your JDownloader2.vmoptions file (in your **External links are only visible to Support Staff**...) and use a proper value for "Xmx":
stackoverflow.com/questions/14763079/what-are-the-xms-and-xmx-parameters-when-starting-jvm

-psp-
EDIT

E.g. if it is "-Xmx512m", change it to "-Xmx1g".

It was actually only 64M before I changed it, lol.
Reply With Quote
  #5  
Old 31.03.2021, 12:02
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,291
Default

@MuzicSoulWorldly:
most likely it was -Xms64m (Xms vs Xmx) that tells Java to minimum heap size of 64m, but
Xmx tells to allow x maximum memory heap size.
You should try to keep list size *small*, the more links in list, the more memory is required
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 31.03.2021, 16:20
MuzicSoulWorldly MuzicSoulWorldly is offline
Linkgrabbing Monster
 
Join Date: Feb 2017
Posts: 85
Default

Quote:
Originally Posted by Jiaz View Post
@MuzicSoulWorldly:
most likely it was -Xms64m (Xms vs Xmx) that tells Java to minimum heap size of 64m, but
Xmx tells to allow x maximum memory heap size.
You should try to keep list size *small*, the more links in list, the more memory is required

Well I don't like deleting my links though, lol. Also, the file didn't already have an -Xmx option, I had to type it in, it only has the -Xms option. So I'm curious why JDownloader didn't try requesting more memory on it's own. Actually, I thought -Xms was a soft max limit, not minimum. For Minecraft which uses Java too, you can set -Xms as a soft max whereby it can go over it but it tries to stay under it.
Reply With Quote
  #7  
Old 31.03.2021, 16:39
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,291
Default

With only Xms defined it depends on JVM default how much the Xmx value is by default and therefore it's recommended to manually set/increase it for use cases like yours (not deleting the links)
You can remove the Xmx from vmoptions and then check About dialog of JDownloader for memory stats. It will show current use/current allocated/maximum memory possible values
once first and second are *near* third value, it's time to increase max heap (Xmx) or remove some links from list
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 31.03.2021, 16:40
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,291
Default

Xms is the initial heap/memory size , not soft max limit. It can be used to define larger initial heap if you know that much memory is required from the beginning to avoid memory allocation/reallocation and slower startup times.
Eg an application that you know will require 2GB of memory for startup, it doesn't make sense to let java run again and again into *out of memory* situations for memory allocation/reallocation
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 31.03.2021 at 16:45.
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:21.
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 - 2024, Jelsoft Enterprises Ltd.