#801
|
|||
|
|||
VMMap is a process virtual and physical memory analysis utility:
Screenshot: https://i.postimg.cc/k9h2RsXh/Screen...t-05-30-PM.jpg |
#802
|
|||
|
|||
How to set Heap correctly?
When update, for example, "Event Scripter" or "Core Update" or plug-ins, some error during the restart, but during the second attempt always starts correctly.
Code:
------------------------Thread: 365:org.jdownloader.updatev2.restart.WindowsRestarter.log----------------------- --ID:365TS:1563567340243-19.07.19 22:15:40 - [org.appwork.utils.logging2.InputStreamLogger(readInputStreamToString)] -> Error occurred during initialization of VM --ID:365TS:1563567340244-19.07.19 22:15:40 - [org.appwork.utils.logging2.InputStreamLogger(readInputStreamToString)] -> Unable to allocate 163840KB bitmaps for parallel garbage collection for the requested 5242880KB heap. My Parameters to run: "C:\Program Files\Java\jre1.8.0_191\bin\javaw.exe" -Xms2G -Xmx5G -jar C:\JD\JDownloader.jar Physical memory still available, so I do not know what the problem is? screen: https://i.postimg.cc/HWyGt2Jd/Screen...t-10-16-PM.jpg Still need to increase -Xmx? Download List: 70K LinkGrabber List: 63K 19.07.19 22.17.14 <--> 19.07.19 22.32.09 jdlog://0992186935451/ |
#803
|
|||
|
|||
I had a similar problem with some recent updates.
If the problem persists, I will publish the logs. https://i.postimg.cc/CM9XzvmT/Screen...t-12-11-AM.jpg |
#804
|
||||
|
||||
That error is not caused by JDownloader. Java fails to start. Most likely because your system is out of memory
__________________
JD-Dev & Server-Admin |
#805
|
|||
|
|||
This is not an error of out of memory, because the last pid with this type of error is from July 19.
JVM initialization fails with parallel GC probably should use parameter start??? -XX:-UseParallelGC https://board.jdownloader.org/showthread.php?t=81097 |
#806
|
|||
|
|||
Expected results: The JVM should not attempt to allocate memory beyond that required to accommodate the specified maximum heap size when using the parallel garbage collector.
|
#807
|
||||
|
||||
something made your JVM fail to start and it's not JDownloader. It's up to you what parameters/JVM settings you set.
__________________
JD-Dev & Server-Admin |
#808
|
||||
|
||||
JVM does NOT create hs_err files when not started Invalid combination of parameters or failing to start does NOT create hs_err files
__________________
JD-Dev & Server-Admin |
#809
|
|||
|
|||
Closing or running the application works correctly. Only in some specific conditions during the upgrade with the required restart it encounters an error.
It's just that the error does not appear during the second attempt - running with still the same parameters. The process may also be busy or working in the background, which may prevent a proper restart when trying to update. The first attempt may fail, but the second may not. |
#810
|
||||
|
||||
Quote:
Because your system runs out of memory and JVM fails to start Quote:
The answer is very simply. You specify the parameter -Xms2g which makes JVM allocate minimum 2Gbyte of Memory. During update JD starts another instance and then you have up to 3 instances running, 3*2Gbyte Memory -> the new processes fail to start because out of memory. Removing this parameter or reduce it should solve it for your setup
__________________
JD-Dev & Server-Admin |
#811
|
||||
|
||||
Or buy more memory for your computer. I have 64 GB.
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep. |
#812
|
|||
|
|||
Really, do not need a lot of physical memory, my 12GB, it seems to be optimal. Many people have even less physical memory, 32-64GB is for advanced and hardcore people who will not actually use that much physical memory. Who is it for? Physical memory can be replaced with virtual memory, and this does not slow down the operation of the computer and programs when you have a very fast SOLID STATE DRIVE (Tested!) Is something changed in the long run? I've been using JD2 for a long time and I have not had any problems for a long time, now it seems that JD2 needs more and more memory to run JD2, but it does not need a lot RAM while downloading. |
#813
|
||||
|
||||
The more links you've got in list, the more memory is required.
It highly depends on link/host type if a link requires less/more memory.
__________________
JD-Dev & Server-Admin |
#814
|
||||
|
||||
I'm sorry but NO it can not! But I already gave up about this
__________________
JD-Dev & Server-Admin |
#815
|
||||
|
||||
my thoughts, under Jiaz explanation.
why does the update module need to start with the same vm parameters as main program? Surely it should not not have the same memory requirements. You would only have 2*3GB and say 64MB for the update requirements. and if the original instance is still running at end of updating, maybe it should wait until the original pid is cleared? or at least an option to do so. Doing so would only ever mean one instance of the higher memory allocation running at any time. raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#816
|
||||
|
||||
@raztoki: for sure we could *filter out* some parameters but in that case the parameters are lost for the *after update* process.
and the first process will shutdown once the 2nd proccess has validated the pending update.
__________________
JD-Dev & Server-Admin |
#817
|
|||
|
|||
Yes and no.
It depends on the type of program / application you use. WEB browsers, movie and music players, text editor, simple programs do not require the need of having large physical memory. Maybe for professionals who render the film or nobody knows what else. There is an editor that can open 248 GB of text data, but still uses a small amount of RAM, and uses disk storage, if a very large amount of memory is required. I have the most soundcloud.com host links I do not know if it matters. It's not much, anyway ... especially when in the distant past I had 10 times more links, and it was very good (And the usage was in a similar range of RAM) Decrease the value of -Xms0,5G to see the effects. |
#818
|
||||
|
||||
You can leave out the -Xms parameter
__________________
JD-Dev & Server-Admin |
#819
|
||||
|
||||
I don't know why a filesize should be connected to application? video player also playback gbyte of video without using that much memory.
__________________
JD-Dev & Server-Admin |
#820
|
||||
|
||||
correct, and when you tell Java to start with 2 Gbyte of memory (-Xms2g) then it will allocate 2gbyte of memory and either the os is able to provide that much memory or not. In your case, it doesn't have enough memory left.
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|