#1
|
|||
|
|||
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 ?
|
#2
|
||||
|
||||
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 Last edited by pspzockerscene; 31.03.2021 at 04:21. |
#3
|
|||
|
|||
Thank you so much. I've been trying to do these links all day long, can't believe how simple this made it, lol.
|
#4
|
|||
|
|||
Quote:
It was actually only 64M before I changed it, lol. |
#5
|
||||
|
||||
@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 |
#6
|
|||
|
|||
Quote:
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. |
#7
|
||||
|
||||
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 |
#8
|
||||
|
||||
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. |
Thread Tools | |
Display Modes | |
|
|